[2025-02-02 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:00:07 [end_date_ymd] => 2025-02-02 00:00:07 [RateCDR] => 1 ) [2025-02-02 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-01 21:00:07' and `end` < '2025-02-02 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-02 00:00:21] Production.INFO: count ==880 [2025-02-02 00:00:21] Production.ERROR: pbx CDR StartTime 2025-02-01 21:00:07 - End Time 2025-02-02 00:00:07 [2025-02-02 00:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381865', 'tblTempUsageDetail_20' ) start [2025-02-02 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381865', 'tblTempUsageDetail_20' ) end [2025-02-02 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381865', 'tblTempVendorCDR_20' ) start [2025-02-02 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381865', 'tblTempVendorCDR_20' ) end [2025-02-02 00:00:22] Production.INFO: ProcessCDR(1,14381865,1,1,2) [2025-02-02 00:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381865', 'tblTempUsageDetail_20' ) start [2025-02-02 00:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381865', 'tblTempUsageDetail_20' ) end [2025-02-02 00:00:27] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:00:27] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:00:27] Production.INFO: ==3103== Releasing lock... [2025-02-02 00:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:00:27] Production.INFO: 35 MB #Memory Used# [2025-02-02 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:01:06 [end_date_ymd] => 2025-02-02 00:01:06 [RateCDR] => 1 ) [2025-02-02 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-01 21:01:06' and `end` < '2025-02-02 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-02 00:01:19] Production.INFO: count ==852 [2025-02-02 00:01:19] Production.ERROR: pbx CDR StartTime 2025-02-01 21:01:06 - End Time 2025-02-02 00:01:06 [2025-02-02 00:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381871', 'tblTempUsageDetail_20' ) start [2025-02-02 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381871', 'tblTempUsageDetail_20' ) end [2025-02-02 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381871', 'tblTempVendorCDR_20' ) start [2025-02-02 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381871', 'tblTempVendorCDR_20' ) end [2025-02-02 00:01:19] Production.INFO: ProcessCDR(1,14381871,1,1,2) [2025-02-02 00:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381871', 'tblTempUsageDetail_20' ) start [2025-02-02 00:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381871', 'tblTempUsageDetail_20' ) end [2025-02-02 00:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:01:22] Production.INFO: ==3217== Releasing lock... [2025-02-02 00:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:01:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-02 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:02:05 [end_date_ymd] => 2025-02-02 00:02:05 [RateCDR] => 1 ) [2025-02-02 00:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 21:02:05' and `end` < '2025-02-02 00:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 00:02:23] Production.INFO: count ==185 [2025-02-02 00:02:23] Production.ERROR: pbx CDR StartTime 2025-02-01 21:02:05 - End Time 2025-02-02 00:02:05 [2025-02-02 00:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381876', 'tblTempUsageDetail_20' ) start [2025-02-02 00:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381876', 'tblTempUsageDetail_20' ) end [2025-02-02 00:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381876', 'tblTempVendorCDR_20' ) start [2025-02-02 00:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381876', 'tblTempVendorCDR_20' ) end [2025-02-02 00:02:23] Production.INFO: ProcessCDR(1,14381876,1,1,2) [2025-02-02 00:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381876', 'tblTempUsageDetail_20' ) start [2025-02-02 00:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381876', 'tblTempUsageDetail_20' ) end [2025-02-02 00:02:26] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:02:26] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:02:26] Production.INFO: ==3320== Releasing lock... [2025-02-02 00:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:02:26] Production.INFO: 31.25 MB #Memory Used# [2025-02-02 00:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:03:06 [end_date_ymd] => 2025-02-02 00:03:06 [RateCDR] => 1 ) [2025-02-02 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-01 21:03:06' and `end` < '2025-02-02 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-02 00:03:29] Production.INFO: count ==185 [2025-02-02 00:03:29] Production.ERROR: pbx CDR StartTime 2025-02-01 21:03:06 - End Time 2025-02-02 00:03:06 [2025-02-02 00:03:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381881', 'tblTempUsageDetail_20' ) start [2025-02-02 00:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381881', 'tblTempUsageDetail_20' ) end [2025-02-02 00:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381881', 'tblTempVendorCDR_20' ) start [2025-02-02 00:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381881', 'tblTempVendorCDR_20' ) end [2025-02-02 00:03:29] Production.INFO: ProcessCDR(1,14381881,1,1,2) [2025-02-02 00:03:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:03:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:03:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:03:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381881', 'tblTempUsageDetail_20' ) start [2025-02-02 00:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381881', 'tblTempUsageDetail_20' ) end [2025-02-02 00:03:32] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:03:32] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:03:32] Production.INFO: ==3426== Releasing lock... [2025-02-02 00:03:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:03:32] Production.INFO: 31.25 MB #Memory Used# [2025-02-02 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:04:05 [end_date_ymd] => 2025-02-02 00:04:05 [RateCDR] => 1 ) [2025-02-02 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-01 21:04:05' and `end` < '2025-02-02 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-02 00:04:28] Production.INFO: count ==185 [2025-02-02 00:04:28] Production.ERROR: pbx CDR StartTime 2025-02-01 21:04:05 - End Time 2025-02-02 00:04:05 [2025-02-02 00:04:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381886', 'tblTempUsageDetail_20' ) start [2025-02-02 00:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381886', 'tblTempUsageDetail_20' ) end [2025-02-02 00:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381886', 'tblTempVendorCDR_20' ) start [2025-02-02 00:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381886', 'tblTempVendorCDR_20' ) end [2025-02-02 00:04:28] Production.INFO: ProcessCDR(1,14381886,1,1,2) [2025-02-02 00:04:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:04:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:04:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:04:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381886', 'tblTempUsageDetail_20' ) start [2025-02-02 00:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381886', 'tblTempUsageDetail_20' ) end [2025-02-02 00:04:32] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:04:32] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:04:32] Production.INFO: ==3530== Releasing lock... [2025-02-02 00:04:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:04:32] Production.INFO: 31.25 MB #Memory Used# [2025-02-02 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:05:05 [end_date_ymd] => 2025-02-02 00:05:05 [RateCDR] => 1 ) [2025-02-02 00:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 21:05:05' and `end` < '2025-02-02 00:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 00:05:28] Production.INFO: count ==188 [2025-02-02 00:05:28] Production.ERROR: pbx CDR StartTime 2025-02-01 21:05:05 - End Time 2025-02-02 00:05:05 [2025-02-02 00:05:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381891', 'tblTempUsageDetail_20' ) start [2025-02-02 00:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381891', 'tblTempUsageDetail_20' ) end [2025-02-02 00:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381891', 'tblTempVendorCDR_20' ) start [2025-02-02 00:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381891', 'tblTempVendorCDR_20' ) end [2025-02-02 00:05:28] Production.INFO: ProcessCDR(1,14381891,1,1,2) [2025-02-02 00:05:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:05:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:05:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:05:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381891', 'tblTempUsageDetail_20' ) start [2025-02-02 00:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381891', 'tblTempUsageDetail_20' ) end [2025-02-02 00:05:31] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:05:31] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:05:31] Production.INFO: ==3677== Releasing lock... [2025-02-02 00:05:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:05:31] Production.INFO: 31.5 MB #Memory Used# [2025-02-02 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:06:05 [end_date_ymd] => 2025-02-02 00:06:05 [RateCDR] => 1 ) [2025-02-02 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-01 21:06:05' and `end` < '2025-02-02 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-02 00:06:18] Production.INFO: count ==188 [2025-02-02 00:06:18] Production.ERROR: pbx CDR StartTime 2025-02-01 21:06:05 - End Time 2025-02-02 00:06:05 [2025-02-02 00:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381896', 'tblTempUsageDetail_20' ) start [2025-02-02 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381896', 'tblTempUsageDetail_20' ) end [2025-02-02 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381896', 'tblTempVendorCDR_20' ) start [2025-02-02 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381896', 'tblTempVendorCDR_20' ) end [2025-02-02 00:06:18] Production.INFO: ProcessCDR(1,14381896,1,1,2) [2025-02-02 00:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381896', 'tblTempUsageDetail_20' ) start [2025-02-02 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381896', 'tblTempUsageDetail_20' ) end [2025-02-02 00:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:06:23] Production.INFO: ==3788== Releasing lock... [2025-02-02 00:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:06:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-02 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:07:05 [end_date_ymd] => 2025-02-02 00:07:05 [RateCDR] => 1 ) [2025-02-02 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-01 21:07:05' and `end` < '2025-02-02 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-02 00:07:20] Production.INFO: count ==188 [2025-02-02 00:07:20] Production.ERROR: pbx CDR StartTime 2025-02-01 21:07:05 - End Time 2025-02-02 00:07:05 [2025-02-02 00:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381901', 'tblTempUsageDetail_20' ) start [2025-02-02 00:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381901', 'tblTempUsageDetail_20' ) end [2025-02-02 00:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381901', 'tblTempVendorCDR_20' ) start [2025-02-02 00:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381901', 'tblTempVendorCDR_20' ) end [2025-02-02 00:07:20] Production.INFO: ProcessCDR(1,14381901,1,1,2) [2025-02-02 00:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381901', 'tblTempUsageDetail_20' ) start [2025-02-02 00:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381901', 'tblTempUsageDetail_20' ) end [2025-02-02 00:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:07:24] Production.INFO: ==3881== Releasing lock... [2025-02-02 00:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:07:24] Production.INFO: 29.75 MB #Memory Used# [2025-02-02 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:08:05 [end_date_ymd] => 2025-02-02 00:08:05 [RateCDR] => 1 ) [2025-02-02 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-01 21:08:05' and `end` < '2025-02-02 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-02 00:08:24] Production.INFO: count ==186 [2025-02-02 00:08:24] Production.ERROR: pbx CDR StartTime 2025-02-01 21:08:05 - End Time 2025-02-02 00:08:05 [2025-02-02 00:08:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381906', 'tblTempUsageDetail_20' ) start [2025-02-02 00:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381906', 'tblTempUsageDetail_20' ) end [2025-02-02 00:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381906', 'tblTempVendorCDR_20' ) start [2025-02-02 00:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381906', 'tblTempVendorCDR_20' ) end [2025-02-02 00:08:24] Production.INFO: ProcessCDR(1,14381906,1,1,2) [2025-02-02 00:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381906', 'tblTempUsageDetail_20' ) start [2025-02-02 00:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381906', 'tblTempUsageDetail_20' ) end [2025-02-02 00:08:27] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:08:27] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:08:27] Production.INFO: ==3967== Releasing lock... [2025-02-02 00:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:08:27] Production.INFO: 29.75 MB #Memory Used# [2025-02-02 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:09:05 [end_date_ymd] => 2025-02-02 00:09:05 [RateCDR] => 1 ) [2025-02-02 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-01 21:09:05' and `end` < '2025-02-02 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-02 00:09:19] Production.INFO: count ==186 [2025-02-02 00:09:19] Production.ERROR: pbx CDR StartTime 2025-02-01 21:09:05 - End Time 2025-02-02 00:09:05 [2025-02-02 00:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381911', 'tblTempUsageDetail_20' ) start [2025-02-02 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381911', 'tblTempUsageDetail_20' ) end [2025-02-02 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381911', 'tblTempVendorCDR_20' ) start [2025-02-02 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381911', 'tblTempVendorCDR_20' ) end [2025-02-02 00:09:19] Production.INFO: ProcessCDR(1,14381911,1,1,2) [2025-02-02 00:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381911', 'tblTempUsageDetail_20' ) start [2025-02-02 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381911', 'tblTempUsageDetail_20' ) end [2025-02-02 00:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:09:22] Production.INFO: ==4058== Releasing lock... [2025-02-02 00:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:09:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-02 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:10:06 [end_date_ymd] => 2025-02-02 00:10:06 [RateCDR] => 1 ) [2025-02-02 00:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 21:10:06' and `end` < '2025-02-02 00:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 00:10:29] Production.INFO: count ==191 [2025-02-02 00:10:29] Production.ERROR: pbx CDR StartTime 2025-02-01 21:10:06 - End Time 2025-02-02 00:10:06 [2025-02-02 00:10:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381916', 'tblTempUsageDetail_20' ) start [2025-02-02 00:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381916', 'tblTempUsageDetail_20' ) end [2025-02-02 00:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381916', 'tblTempVendorCDR_20' ) start [2025-02-02 00:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381916', 'tblTempVendorCDR_20' ) end [2025-02-02 00:10:29] Production.INFO: ProcessCDR(1,14381916,1,1,2) [2025-02-02 00:10:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:10:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:10:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:10:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381916', 'tblTempUsageDetail_20' ) start [2025-02-02 00:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381916', 'tblTempUsageDetail_20' ) end [2025-02-02 00:10:32] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:10:32] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:10:32] Production.INFO: ==4158== Releasing lock... [2025-02-02 00:10:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:10:32] Production.INFO: 29.75 MB #Memory Used# [2025-02-02 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:11:05 [end_date_ymd] => 2025-02-02 00:11:05 [RateCDR] => 1 ) [2025-02-02 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-01 21:11:05' and `end` < '2025-02-02 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-02 00:11:39] Production.INFO: count ==203 [2025-02-02 00:11:39] Production.ERROR: pbx CDR StartTime 2025-02-01 21:11:05 - End Time 2025-02-02 00:11:05 [2025-02-02 00:11:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:11:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381922', 'tblTempUsageDetail_20' ) start [2025-02-02 00:11:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381922', 'tblTempUsageDetail_20' ) end [2025-02-02 00:11:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381922', 'tblTempVendorCDR_20' ) start [2025-02-02 00:11:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381922', 'tblTempVendorCDR_20' ) end [2025-02-02 00:11:39] Production.INFO: ProcessCDR(1,14381922,1,1,2) [2025-02-02 00:11:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:11:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:11:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:11:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:11:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381922', 'tblTempUsageDetail_20' ) start [2025-02-02 00:11:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381922', 'tblTempUsageDetail_20' ) end [2025-02-02 00:11:43] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:11:43] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:11:43] Production.INFO: ==4247== Releasing lock... [2025-02-02 00:11:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:11:43] Production.INFO: 30 MB #Memory Used# [2025-02-02 00:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:12:06 [end_date_ymd] => 2025-02-02 00:12:06 [RateCDR] => 1 ) [2025-02-02 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-01 21:12:06' and `end` < '2025-02-02 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-02 00:12:27] Production.INFO: count ==206 [2025-02-02 00:12:27] Production.ERROR: pbx CDR StartTime 2025-02-01 21:12:06 - End Time 2025-02-02 00:12:06 [2025-02-02 00:12:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381927', 'tblTempUsageDetail_20' ) start [2025-02-02 00:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381927', 'tblTempUsageDetail_20' ) end [2025-02-02 00:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381927', 'tblTempVendorCDR_20' ) start [2025-02-02 00:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381927', 'tblTempVendorCDR_20' ) end [2025-02-02 00:12:27] Production.INFO: ProcessCDR(1,14381927,1,1,2) [2025-02-02 00:12:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:12:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:12:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:12:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:12:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381927', 'tblTempUsageDetail_20' ) start [2025-02-02 00:12:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381927', 'tblTempUsageDetail_20' ) end [2025-02-02 00:12:31] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:12:31] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:12:31] Production.INFO: ==4331== Releasing lock... [2025-02-02 00:12:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:12:31] Production.INFO: 30 MB #Memory Used# [2025-02-02 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:13:05 [end_date_ymd] => 2025-02-02 00:13:05 [RateCDR] => 1 ) [2025-02-02 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-01 21:13:05' and `end` < '2025-02-02 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-02 00:13:19] Production.INFO: count ==204 [2025-02-02 00:13:19] Production.ERROR: pbx CDR StartTime 2025-02-01 21:13:05 - End Time 2025-02-02 00:13:05 [2025-02-02 00:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381932', 'tblTempUsageDetail_20' ) start [2025-02-02 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381932', 'tblTempUsageDetail_20' ) end [2025-02-02 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381932', 'tblTempVendorCDR_20' ) start [2025-02-02 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381932', 'tblTempVendorCDR_20' ) end [2025-02-02 00:13:19] Production.INFO: ProcessCDR(1,14381932,1,1,2) [2025-02-02 00:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381932', 'tblTempUsageDetail_20' ) start [2025-02-02 00:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381932', 'tblTempUsageDetail_20' ) end [2025-02-02 00:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:13:23] Production.INFO: ==4420== Releasing lock... [2025-02-02 00:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:13:23] Production.INFO: 30 MB #Memory Used# [2025-02-02 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:14:05 [end_date_ymd] => 2025-02-02 00:14:05 [RateCDR] => 1 ) [2025-02-02 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-01 21:14:05' and `end` < '2025-02-02 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-02 00:14:19] Production.INFO: count ==204 [2025-02-02 00:14:19] Production.ERROR: pbx CDR StartTime 2025-02-01 21:14:05 - End Time 2025-02-02 00:14:05 [2025-02-02 00:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381937', 'tblTempUsageDetail_20' ) start [2025-02-02 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381937', 'tblTempUsageDetail_20' ) end [2025-02-02 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381937', 'tblTempVendorCDR_20' ) start [2025-02-02 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381937', 'tblTempVendorCDR_20' ) end [2025-02-02 00:14:19] Production.INFO: ProcessCDR(1,14381937,1,1,2) [2025-02-02 00:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381937', 'tblTempUsageDetail_20' ) start [2025-02-02 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381937', 'tblTempUsageDetail_20' ) end [2025-02-02 00:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:14:22] Production.INFO: ==4508== Releasing lock... [2025-02-02 00:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:14:22] Production.INFO: 30 MB #Memory Used# [2025-02-02 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:15:05 [end_date_ymd] => 2025-02-02 00:15:05 [RateCDR] => 1 ) [2025-02-02 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-01 21:15:05' and `end` < '2025-02-02 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-02 00:15:18] Production.INFO: count ==204 [2025-02-02 00:15:18] Production.ERROR: pbx CDR StartTime 2025-02-01 21:15:05 - End Time 2025-02-02 00:15:05 [2025-02-02 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381942', 'tblTempUsageDetail_20' ) start [2025-02-02 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381942', 'tblTempUsageDetail_20' ) end [2025-02-02 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381942', 'tblTempVendorCDR_20' ) start [2025-02-02 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381942', 'tblTempVendorCDR_20' ) end [2025-02-02 00:15:18] Production.INFO: ProcessCDR(1,14381942,1,1,2) [2025-02-02 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381942', 'tblTempUsageDetail_20' ) start [2025-02-02 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381942', 'tblTempUsageDetail_20' ) end [2025-02-02 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:15:21] Production.INFO: ==4599== Releasing lock... [2025-02-02 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:15:21] Production.INFO: 30 MB #Memory Used# [2025-02-02 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:16:05 [end_date_ymd] => 2025-02-02 00:16:05 [RateCDR] => 1 ) [2025-02-02 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-01 21:16:05' and `end` < '2025-02-02 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-02 00:16:18] Production.INFO: count ==214 [2025-02-02 00:16:18] Production.ERROR: pbx CDR StartTime 2025-02-01 21:16:05 - End Time 2025-02-02 00:16:05 [2025-02-02 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381947', 'tblTempUsageDetail_20' ) start [2025-02-02 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381947', 'tblTempUsageDetail_20' ) end [2025-02-02 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381947', 'tblTempVendorCDR_20' ) start [2025-02-02 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381947', 'tblTempVendorCDR_20' ) end [2025-02-02 00:16:18] Production.INFO: ProcessCDR(1,14381947,1,1,2) [2025-02-02 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381947', 'tblTempUsageDetail_20' ) start [2025-02-02 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381947', 'tblTempUsageDetail_20' ) end [2025-02-02 00:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:16:21] Production.INFO: ==4673== Releasing lock... [2025-02-02 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:16:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-02 00:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:17:04 [end_date_ymd] => 2025-02-02 00:17:04 [RateCDR] => 1 ) [2025-02-02 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-01 21:17:04' and `end` < '2025-02-02 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-02 00:17:20] Production.INFO: count ==236 [2025-02-02 00:17:20] Production.ERROR: pbx CDR StartTime 2025-02-01 21:17:04 - End Time 2025-02-02 00:17:04 [2025-02-02 00:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381952', 'tblTempUsageDetail_20' ) start [2025-02-02 00:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381952', 'tblTempUsageDetail_20' ) end [2025-02-02 00:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381952', 'tblTempVendorCDR_20' ) start [2025-02-02 00:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381952', 'tblTempVendorCDR_20' ) end [2025-02-02 00:17:20] Production.INFO: ProcessCDR(1,14381952,1,1,2) [2025-02-02 00:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381952', 'tblTempUsageDetail_20' ) start [2025-02-02 00:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381952', 'tblTempUsageDetail_20' ) end [2025-02-02 00:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:17:23] Production.INFO: ==4746== Releasing lock... [2025-02-02 00:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:17:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-02 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:18:05 [end_date_ymd] => 2025-02-02 00:18:05 [RateCDR] => 1 ) [2025-02-02 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-01 21:18:05' and `end` < '2025-02-02 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-02 00:18:18] Production.INFO: count ==236 [2025-02-02 00:18:18] Production.ERROR: pbx CDR StartTime 2025-02-01 21:18:05 - End Time 2025-02-02 00:18:05 [2025-02-02 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381957', 'tblTempUsageDetail_20' ) start [2025-02-02 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381957', 'tblTempUsageDetail_20' ) end [2025-02-02 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381957', 'tblTempVendorCDR_20' ) start [2025-02-02 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381957', 'tblTempVendorCDR_20' ) end [2025-02-02 00:18:18] Production.INFO: ProcessCDR(1,14381957,1,1,2) [2025-02-02 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381957', 'tblTempUsageDetail_20' ) start [2025-02-02 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381957', 'tblTempUsageDetail_20' ) end [2025-02-02 00:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:18:21] Production.INFO: ==4832== Releasing lock... [2025-02-02 00:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:18:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-02 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:19:05 [end_date_ymd] => 2025-02-02 00:19:05 [RateCDR] => 1 ) [2025-02-02 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-01 21:19:05' and `end` < '2025-02-02 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-02 00:19:17] Production.INFO: count ==249 [2025-02-02 00:19:17] Production.ERROR: pbx CDR StartTime 2025-02-01 21:19:05 - End Time 2025-02-02 00:19:05 [2025-02-02 00:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381962', 'tblTempUsageDetail_20' ) start [2025-02-02 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381962', 'tblTempUsageDetail_20' ) end [2025-02-02 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381962', 'tblTempVendorCDR_20' ) start [2025-02-02 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381962', 'tblTempVendorCDR_20' ) end [2025-02-02 00:19:17] Production.INFO: ProcessCDR(1,14381962,1,1,2) [2025-02-02 00:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381962', 'tblTempUsageDetail_20' ) start [2025-02-02 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381962', 'tblTempUsageDetail_20' ) end [2025-02-02 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:19:21] Production.INFO: ==4905== Releasing lock... [2025-02-02 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:19:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-02 00:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:20:05 [end_date_ymd] => 2025-02-02 00:20:05 [RateCDR] => 1 ) [2025-02-02 00:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 21:20:05' and `end` < '2025-02-02 00:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 00:20:18] Production.INFO: count ==261 [2025-02-02 00:20:18] Production.ERROR: pbx CDR StartTime 2025-02-01 21:20:05 - End Time 2025-02-02 00:20:05 [2025-02-02 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381967', 'tblTempUsageDetail_20' ) start [2025-02-02 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381967', 'tblTempUsageDetail_20' ) end [2025-02-02 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381967', 'tblTempVendorCDR_20' ) start [2025-02-02 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381967', 'tblTempVendorCDR_20' ) end [2025-02-02 00:20:18] Production.INFO: ProcessCDR(1,14381967,1,1,2) [2025-02-02 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381967', 'tblTempUsageDetail_20' ) start [2025-02-02 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381967', 'tblTempUsageDetail_20' ) end [2025-02-02 00:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:20:21] Production.INFO: ==4978== Releasing lock... [2025-02-02 00:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:20:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-02 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:21:05 [end_date_ymd] => 2025-02-02 00:21:05 [RateCDR] => 1 ) [2025-02-02 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-01 21:21:05' and `end` < '2025-02-02 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-02 00:21:18] Production.INFO: count ==294 [2025-02-02 00:21:19] Production.ERROR: pbx CDR StartTime 2025-02-01 21:21:05 - End Time 2025-02-02 00:21:05 [2025-02-02 00:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381973', 'tblTempUsageDetail_20' ) start [2025-02-02 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381973', 'tblTempUsageDetail_20' ) end [2025-02-02 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381973', 'tblTempVendorCDR_20' ) start [2025-02-02 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381973', 'tblTempVendorCDR_20' ) end [2025-02-02 00:21:19] Production.INFO: ProcessCDR(1,14381973,1,1,2) [2025-02-02 00:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381973', 'tblTempUsageDetail_20' ) start [2025-02-02 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381973', 'tblTempUsageDetail_20' ) end [2025-02-02 00:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:21:22] Production.INFO: ==5096== Releasing lock... [2025-02-02 00:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:21:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-02 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:22:05 [end_date_ymd] => 2025-02-02 00:22:05 [RateCDR] => 1 ) [2025-02-02 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-01 21:22:05' and `end` < '2025-02-02 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-02 00:22:19] Production.INFO: count ==301 [2025-02-02 00:22:19] Production.ERROR: pbx CDR StartTime 2025-02-01 21:22:05 - End Time 2025-02-02 00:22:05 [2025-02-02 00:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381978', 'tblTempUsageDetail_20' ) start [2025-02-02 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381978', 'tblTempUsageDetail_20' ) end [2025-02-02 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381978', 'tblTempVendorCDR_20' ) start [2025-02-02 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381978', 'tblTempVendorCDR_20' ) end [2025-02-02 00:22:19] Production.INFO: ProcessCDR(1,14381978,1,1,2) [2025-02-02 00:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381978', 'tblTempUsageDetail_20' ) start [2025-02-02 00:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381978', 'tblTempUsageDetail_20' ) end [2025-02-02 00:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:22:24] Production.INFO: ==5171== Releasing lock... [2025-02-02 00:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:22:24] Production.INFO: 30.75 MB #Memory Used# [2025-02-02 00:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:23:06 [end_date_ymd] => 2025-02-02 00:23:06 [RateCDR] => 1 ) [2025-02-02 00:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 21:23:06' and `end` < '2025-02-02 00:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 00:23:20] Production.INFO: count ==302 [2025-02-02 00:23:20] Production.ERROR: pbx CDR StartTime 2025-02-01 21:23:06 - End Time 2025-02-02 00:23:06 [2025-02-02 00:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381983', 'tblTempUsageDetail_20' ) start [2025-02-02 00:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381983', 'tblTempUsageDetail_20' ) end [2025-02-02 00:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381983', 'tblTempVendorCDR_20' ) start [2025-02-02 00:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381983', 'tblTempVendorCDR_20' ) end [2025-02-02 00:23:20] Production.INFO: ProcessCDR(1,14381983,1,1,2) [2025-02-02 00:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381983', 'tblTempUsageDetail_20' ) start [2025-02-02 00:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381983', 'tblTempUsageDetail_20' ) end [2025-02-02 00:23:25] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:23:25] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:23:25] Production.INFO: ==5249== Releasing lock... [2025-02-02 00:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:23:25] Production.INFO: 30.75 MB #Memory Used# [2025-02-02 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:24:05 [end_date_ymd] => 2025-02-02 00:24:05 [RateCDR] => 1 ) [2025-02-02 00:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 21:24:05' and `end` < '2025-02-02 00:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 00:24:18] Production.INFO: count ==302 [2025-02-02 00:24:18] Production.ERROR: pbx CDR StartTime 2025-02-01 21:24:05 - End Time 2025-02-02 00:24:05 [2025-02-02 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381988', 'tblTempUsageDetail_20' ) start [2025-02-02 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381988', 'tblTempUsageDetail_20' ) end [2025-02-02 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381988', 'tblTempVendorCDR_20' ) start [2025-02-02 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381988', 'tblTempVendorCDR_20' ) end [2025-02-02 00:24:18] Production.INFO: ProcessCDR(1,14381988,1,1,2) [2025-02-02 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381988', 'tblTempUsageDetail_20' ) start [2025-02-02 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381988', 'tblTempUsageDetail_20' ) end [2025-02-02 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:24:21] Production.INFO: ==5318== Releasing lock... [2025-02-02 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:24:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-02 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:25:05 [end_date_ymd] => 2025-02-02 00:25:05 [RateCDR] => 1 ) [2025-02-02 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-01 21:25:05' and `end` < '2025-02-02 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-02 00:25:18] Production.INFO: count ==298 [2025-02-02 00:25:18] Production.ERROR: pbx CDR StartTime 2025-02-01 21:25:05 - End Time 2025-02-02 00:25:05 [2025-02-02 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381993', 'tblTempUsageDetail_20' ) start [2025-02-02 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381993', 'tblTempUsageDetail_20' ) end [2025-02-02 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381993', 'tblTempVendorCDR_20' ) start [2025-02-02 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381993', 'tblTempVendorCDR_20' ) end [2025-02-02 00:25:18] Production.INFO: ProcessCDR(1,14381993,1,1,2) [2025-02-02 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381993', 'tblTempUsageDetail_20' ) start [2025-02-02 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381993', 'tblTempUsageDetail_20' ) end [2025-02-02 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:25:21] Production.INFO: ==5390== Releasing lock... [2025-02-02 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:25:21] Production.INFO: 31 MB #Memory Used# [2025-02-02 00:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:26:04 [end_date_ymd] => 2025-02-02 00:26:04 [RateCDR] => 1 ) [2025-02-02 00: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-01 21:26:04' and `end` < '2025-02-02 00: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-02 00:26:17] Production.INFO: count ==298 [2025-02-02 00:26:17] Production.ERROR: pbx CDR StartTime 2025-02-01 21:26:04 - End Time 2025-02-02 00:26:04 [2025-02-02 00:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381998', 'tblTempUsageDetail_20' ) start [2025-02-02 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381998', 'tblTempUsageDetail_20' ) end [2025-02-02 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381998', 'tblTempVendorCDR_20' ) start [2025-02-02 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381998', 'tblTempVendorCDR_20' ) end [2025-02-02 00:26:17] Production.INFO: ProcessCDR(1,14381998,1,1,2) [2025-02-02 00:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381998', 'tblTempUsageDetail_20' ) start [2025-02-02 00:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381998', 'tblTempUsageDetail_20' ) end [2025-02-02 00:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:26:20] Production.INFO: ==5464== Releasing lock... [2025-02-02 00:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:26:20] Production.INFO: 31 MB #Memory Used# [2025-02-02 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:27:05 [end_date_ymd] => 2025-02-02 00:27:05 [RateCDR] => 1 ) [2025-02-02 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-01 21:27:05' and `end` < '2025-02-02 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-02 00:27:17] Production.INFO: count ==296 [2025-02-02 00:27:18] Production.ERROR: pbx CDR StartTime 2025-02-01 21:27:05 - End Time 2025-02-02 00:27:05 [2025-02-02 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382003', 'tblTempUsageDetail_20' ) start [2025-02-02 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382003', 'tblTempUsageDetail_20' ) end [2025-02-02 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382003', 'tblTempVendorCDR_20' ) start [2025-02-02 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382003', 'tblTempVendorCDR_20' ) end [2025-02-02 00:27:18] Production.INFO: ProcessCDR(1,14382003,1,1,2) [2025-02-02 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382003', 'tblTempUsageDetail_20' ) start [2025-02-02 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382003', 'tblTempUsageDetail_20' ) end [2025-02-02 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:27:21] Production.INFO: ==5536== Releasing lock... [2025-02-02 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:27:21] Production.INFO: 31 MB #Memory Used# [2025-02-02 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:28:05 [end_date_ymd] => 2025-02-02 00:28:05 [RateCDR] => 1 ) [2025-02-02 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-01 21:28:05' and `end` < '2025-02-02 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-02 00:28:18] Production.INFO: count ==297 [2025-02-02 00:28:18] Production.ERROR: pbx CDR StartTime 2025-02-01 21:28:05 - End Time 2025-02-02 00:28:05 [2025-02-02 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382008', 'tblTempUsageDetail_20' ) start [2025-02-02 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382008', 'tblTempUsageDetail_20' ) end [2025-02-02 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382008', 'tblTempVendorCDR_20' ) start [2025-02-02 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382008', 'tblTempVendorCDR_20' ) end [2025-02-02 00:28:18] Production.INFO: ProcessCDR(1,14382008,1,1,2) [2025-02-02 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382008', 'tblTempUsageDetail_20' ) start [2025-02-02 00:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382008', 'tblTempUsageDetail_20' ) end [2025-02-02 00:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:28:23] Production.INFO: ==5606== Releasing lock... [2025-02-02 00:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:28:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-02 00:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:29:04 [end_date_ymd] => 2025-02-02 00:29:04 [RateCDR] => 1 ) [2025-02-02 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-01 21:29:04' and `end` < '2025-02-02 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-02 00:29:17] Production.INFO: count ==298 [2025-02-02 00:29:17] Production.ERROR: pbx CDR StartTime 2025-02-01 21:29:04 - End Time 2025-02-02 00:29:04 [2025-02-02 00:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382013', 'tblTempUsageDetail_20' ) start [2025-02-02 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382013', 'tblTempUsageDetail_20' ) end [2025-02-02 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382013', 'tblTempVendorCDR_20' ) start [2025-02-02 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382013', 'tblTempVendorCDR_20' ) end [2025-02-02 00:29:17] Production.INFO: ProcessCDR(1,14382013,1,1,2) [2025-02-02 00:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382013', 'tblTempUsageDetail_20' ) start [2025-02-02 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382013', 'tblTempUsageDetail_20' ) end [2025-02-02 00:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:29:22] Production.INFO: ==5684== Releasing lock... [2025-02-02 00:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:29:22] Production.INFO: 31 MB #Memory Used# [2025-02-02 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:30:06 [end_date_ymd] => 2025-02-02 00:30:06 [RateCDR] => 1 ) [2025-02-02 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-01 21:30:06' and `end` < '2025-02-02 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-02 00:30:19] Production.INFO: count ==309 [2025-02-02 00:30:19] Production.ERROR: pbx CDR StartTime 2025-02-01 21:30:06 - End Time 2025-02-02 00:30:06 [2025-02-02 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382018', 'tblTempUsageDetail_20' ) start [2025-02-02 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382018', 'tblTempUsageDetail_20' ) end [2025-02-02 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382018', 'tblTempVendorCDR_20' ) start [2025-02-02 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382018', 'tblTempVendorCDR_20' ) end [2025-02-02 00:30:19] Production.INFO: ProcessCDR(1,14382018,1,1,2) [2025-02-02 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382018', 'tblTempUsageDetail_20' ) start [2025-02-02 00:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382018', 'tblTempUsageDetail_20' ) end [2025-02-02 00:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:30:24] Production.INFO: ==5761== Releasing lock... [2025-02-02 00:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:30:24] Production.INFO: 30.75 MB #Memory Used# [2025-02-02 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:31:05 [end_date_ymd] => 2025-02-02 00:31:05 [RateCDR] => 1 ) [2025-02-02 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-01 21:31:05' and `end` < '2025-02-02 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-02 00:31:18] Production.INFO: count ==339 [2025-02-02 00:31:18] Production.ERROR: pbx CDR StartTime 2025-02-01 21:31:05 - End Time 2025-02-02 00:31:05 [2025-02-02 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382024', 'tblTempUsageDetail_20' ) start [2025-02-02 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382024', 'tblTempUsageDetail_20' ) end [2025-02-02 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382024', 'tblTempVendorCDR_20' ) start [2025-02-02 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382024', 'tblTempVendorCDR_20' ) end [2025-02-02 00:31:18] Production.INFO: ProcessCDR(1,14382024,1,1,2) [2025-02-02 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382024', 'tblTempUsageDetail_20' ) start [2025-02-02 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382024', 'tblTempUsageDetail_20' ) end [2025-02-02 00:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:31:21] Production.INFO: ==5838== Releasing lock... [2025-02-02 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:31:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-02 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:32:05 [end_date_ymd] => 2025-02-02 00:32:05 [RateCDR] => 1 ) [2025-02-02 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-01 21:32:05' and `end` < '2025-02-02 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-02 00:32:18] Production.INFO: count ==338 [2025-02-02 00:32:18] Production.ERROR: pbx CDR StartTime 2025-02-01 21:32:05 - End Time 2025-02-02 00:32:05 [2025-02-02 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382029', 'tblTempUsageDetail_20' ) start [2025-02-02 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382029', 'tblTempUsageDetail_20' ) end [2025-02-02 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382029', 'tblTempVendorCDR_20' ) start [2025-02-02 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382029', 'tblTempVendorCDR_20' ) end [2025-02-02 00:32:18] Production.INFO: ProcessCDR(1,14382029,1,1,2) [2025-02-02 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382029', 'tblTempUsageDetail_20' ) start [2025-02-02 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382029', 'tblTempUsageDetail_20' ) end [2025-02-02 00:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:32:22] Production.INFO: ==5913== Releasing lock... [2025-02-02 00:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:32:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-02 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:33:05 [end_date_ymd] => 2025-02-02 00:33:05 [RateCDR] => 1 ) [2025-02-02 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-01 21:33:05' and `end` < '2025-02-02 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-02 00:33:18] Production.INFO: count ==338 [2025-02-02 00:33:18] Production.ERROR: pbx CDR StartTime 2025-02-01 21:33:05 - End Time 2025-02-02 00:33:05 [2025-02-02 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382034', 'tblTempUsageDetail_20' ) start [2025-02-02 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382034', 'tblTempUsageDetail_20' ) end [2025-02-02 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382034', 'tblTempVendorCDR_20' ) start [2025-02-02 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382034', 'tblTempVendorCDR_20' ) end [2025-02-02 00:33:18] Production.INFO: ProcessCDR(1,14382034,1,1,2) [2025-02-02 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382034', 'tblTempUsageDetail_20' ) start [2025-02-02 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382034', 'tblTempUsageDetail_20' ) end [2025-02-02 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:33:21] Production.INFO: ==5990== Releasing lock... [2025-02-02 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:33:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-02 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:34:05 [end_date_ymd] => 2025-02-02 00:34:05 [RateCDR] => 1 ) [2025-02-02 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-01 21:34:05' and `end` < '2025-02-02 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-02 00:34:18] Production.INFO: count ==338 [2025-02-02 00:34:18] Production.ERROR: pbx CDR StartTime 2025-02-01 21:34:05 - End Time 2025-02-02 00:34:05 [2025-02-02 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382039', 'tblTempUsageDetail_20' ) start [2025-02-02 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382039', 'tblTempUsageDetail_20' ) end [2025-02-02 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382039', 'tblTempVendorCDR_20' ) start [2025-02-02 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382039', 'tblTempVendorCDR_20' ) end [2025-02-02 00:34:18] Production.INFO: ProcessCDR(1,14382039,1,1,2) [2025-02-02 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382039', 'tblTempUsageDetail_20' ) start [2025-02-02 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382039', 'tblTempUsageDetail_20' ) end [2025-02-02 00:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:34:21] Production.INFO: ==6071== Releasing lock... [2025-02-02 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:34:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-02 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:35:05 [end_date_ymd] => 2025-02-02 00:35:05 [RateCDR] => 1 ) [2025-02-02 00:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 21:35:05' and `end` < '2025-02-02 00:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 00:35:18] Production.INFO: count ==340 [2025-02-02 00:35:18] Production.ERROR: pbx CDR StartTime 2025-02-01 21:35:05 - End Time 2025-02-02 00:35:05 [2025-02-02 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382044', 'tblTempUsageDetail_20' ) start [2025-02-02 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382044', 'tblTempUsageDetail_20' ) end [2025-02-02 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382044', 'tblTempVendorCDR_20' ) start [2025-02-02 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382044', 'tblTempVendorCDR_20' ) end [2025-02-02 00:35:18] Production.INFO: ProcessCDR(1,14382044,1,1,2) [2025-02-02 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382044', 'tblTempUsageDetail_20' ) start [2025-02-02 00:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382044', 'tblTempUsageDetail_20' ) end [2025-02-02 00:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:35:23] Production.INFO: ==6152== Releasing lock... [2025-02-02 00:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:35:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-02 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:36:05 [end_date_ymd] => 2025-02-02 00:36:05 [RateCDR] => 1 ) [2025-02-02 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-01 21:36:05' and `end` < '2025-02-02 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-02 00:36:18] Production.INFO: count ==341 [2025-02-02 00:36:18] Production.ERROR: pbx CDR StartTime 2025-02-01 21:36:05 - End Time 2025-02-02 00:36:05 [2025-02-02 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382049', 'tblTempUsageDetail_20' ) start [2025-02-02 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382049', 'tblTempUsageDetail_20' ) end [2025-02-02 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382049', 'tblTempVendorCDR_20' ) start [2025-02-02 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382049', 'tblTempVendorCDR_20' ) end [2025-02-02 00:36:18] Production.INFO: ProcessCDR(1,14382049,1,1,2) [2025-02-02 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382049', 'tblTempUsageDetail_20' ) start [2025-02-02 00:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382049', 'tblTempUsageDetail_20' ) end [2025-02-02 00:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:36:23] Production.INFO: ==6272== Releasing lock... [2025-02-02 00:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:36:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-02 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:37:05 [end_date_ymd] => 2025-02-02 00:37:05 [RateCDR] => 1 ) [2025-02-02 00:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 21:37:05' and `end` < '2025-02-02 00:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 00:37:18] Production.INFO: count ==340 [2025-02-02 00:37:19] Production.ERROR: pbx CDR StartTime 2025-02-01 21:37:05 - End Time 2025-02-02 00:37:05 [2025-02-02 00:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382054', 'tblTempUsageDetail_20' ) start [2025-02-02 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382054', 'tblTempUsageDetail_20' ) end [2025-02-02 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382054', 'tblTempVendorCDR_20' ) start [2025-02-02 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382054', 'tblTempVendorCDR_20' ) end [2025-02-02 00:37:19] Production.INFO: ProcessCDR(1,14382054,1,1,2) [2025-02-02 00:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382054', 'tblTempUsageDetail_20' ) start [2025-02-02 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382054', 'tblTempUsageDetail_20' ) end [2025-02-02 00:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:37:22] Production.INFO: ==6356== Releasing lock... [2025-02-02 00:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:37:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-02 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:38:05 [end_date_ymd] => 2025-02-02 00:38:05 [RateCDR] => 1 ) [2025-02-02 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-01 21:38:05' and `end` < '2025-02-02 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-02 00:38:18] Production.INFO: count ==340 [2025-02-02 00:38:18] Production.ERROR: pbx CDR StartTime 2025-02-01 21:38:05 - End Time 2025-02-02 00:38:05 [2025-02-02 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382059', 'tblTempUsageDetail_20' ) start [2025-02-02 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382059', 'tblTempUsageDetail_20' ) end [2025-02-02 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382059', 'tblTempVendorCDR_20' ) start [2025-02-02 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382059', 'tblTempVendorCDR_20' ) end [2025-02-02 00:38:18] Production.INFO: ProcessCDR(1,14382059,1,1,2) [2025-02-02 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382059', 'tblTempUsageDetail_20' ) start [2025-02-02 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382059', 'tblTempUsageDetail_20' ) end [2025-02-02 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:38:21] Production.INFO: ==6438== Releasing lock... [2025-02-02 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:38:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-02 00:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:39:06 [end_date_ymd] => 2025-02-02 00:39:06 [RateCDR] => 1 ) [2025-02-02 00: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-01 21:39:06' and `end` < '2025-02-02 00: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-02 00:39:19] Production.INFO: count ==340 [2025-02-02 00:39:19] Production.ERROR: pbx CDR StartTime 2025-02-01 21:39:06 - End Time 2025-02-02 00:39:06 [2025-02-02 00:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382064', 'tblTempUsageDetail_20' ) start [2025-02-02 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382064', 'tblTempUsageDetail_20' ) end [2025-02-02 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382064', 'tblTempVendorCDR_20' ) start [2025-02-02 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382064', 'tblTempVendorCDR_20' ) end [2025-02-02 00:39:19] Production.INFO: ProcessCDR(1,14382064,1,1,2) [2025-02-02 00:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382064', 'tblTempUsageDetail_20' ) start [2025-02-02 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382064', 'tblTempUsageDetail_20' ) end [2025-02-02 00:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:39:22] Production.INFO: ==6522== Releasing lock... [2025-02-02 00:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:39:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-02 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:40:06 [end_date_ymd] => 2025-02-02 00:40:06 [RateCDR] => 1 ) [2025-02-02 00:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 21:40:06' and `end` < '2025-02-02 00:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 00:40:19] Production.INFO: count ==351 [2025-02-02 00:40:19] Production.ERROR: pbx CDR StartTime 2025-02-01 21:40:06 - End Time 2025-02-02 00:40:06 [2025-02-02 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382069', 'tblTempUsageDetail_20' ) start [2025-02-02 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382069', 'tblTempUsageDetail_20' ) end [2025-02-02 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382069', 'tblTempVendorCDR_20' ) start [2025-02-02 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382069', 'tblTempVendorCDR_20' ) end [2025-02-02 00:40:19] Production.INFO: ProcessCDR(1,14382069,1,1,2) [2025-02-02 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382069', 'tblTempUsageDetail_20' ) start [2025-02-02 00:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382069', 'tblTempUsageDetail_20' ) end [2025-02-02 00:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:40:23] Production.INFO: ==6595== Releasing lock... [2025-02-02 00:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:40:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-02 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:41:05 [end_date_ymd] => 2025-02-02 00:41:05 [RateCDR] => 1 ) [2025-02-02 00:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 21:41:05' and `end` < '2025-02-02 00:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 00:41:18] Production.INFO: count ==374 [2025-02-02 00:41:18] Production.ERROR: pbx CDR StartTime 2025-02-01 21:41:05 - End Time 2025-02-02 00:41:05 [2025-02-02 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382075', 'tblTempUsageDetail_20' ) start [2025-02-02 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382075', 'tblTempUsageDetail_20' ) end [2025-02-02 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382075', 'tblTempVendorCDR_20' ) start [2025-02-02 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382075', 'tblTempVendorCDR_20' ) end [2025-02-02 00:41:18] Production.INFO: ProcessCDR(1,14382075,1,1,2) [2025-02-02 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382075', 'tblTempUsageDetail_20' ) start [2025-02-02 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382075', 'tblTempUsageDetail_20' ) end [2025-02-02 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:41:21] Production.INFO: ==6669== Releasing lock... [2025-02-02 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:41:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-02 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:42:05 [end_date_ymd] => 2025-02-02 00:42:05 [RateCDR] => 1 ) [2025-02-02 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-01 21:42:05' and `end` < '2025-02-02 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-02 00:42:19] Production.INFO: count ==382 [2025-02-02 00:42:19] Production.ERROR: pbx CDR StartTime 2025-02-01 21:42:05 - End Time 2025-02-02 00:42:05 [2025-02-02 00:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382080', 'tblTempUsageDetail_20' ) start [2025-02-02 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382080', 'tblTempUsageDetail_20' ) end [2025-02-02 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382080', 'tblTempVendorCDR_20' ) start [2025-02-02 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382080', 'tblTempVendorCDR_20' ) end [2025-02-02 00:42:19] Production.INFO: ProcessCDR(1,14382080,1,1,2) [2025-02-02 00:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382080', 'tblTempUsageDetail_20' ) start [2025-02-02 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382080', 'tblTempUsageDetail_20' ) end [2025-02-02 00:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:42:22] Production.INFO: ==6738== Releasing lock... [2025-02-02 00:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:42:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-02 00:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:43:06 [end_date_ymd] => 2025-02-02 00:43:06 [RateCDR] => 1 ) [2025-02-02 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-01 21:43:06' and `end` < '2025-02-02 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-02 00:43:19] Production.INFO: count ==383 [2025-02-02 00:43:19] Production.ERROR: pbx CDR StartTime 2025-02-01 21:43:06 - End Time 2025-02-02 00:43:06 [2025-02-02 00:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382085', 'tblTempUsageDetail_20' ) start [2025-02-02 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382085', 'tblTempUsageDetail_20' ) end [2025-02-02 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382085', 'tblTempVendorCDR_20' ) start [2025-02-02 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382085', 'tblTempVendorCDR_20' ) end [2025-02-02 00:43:19] Production.INFO: ProcessCDR(1,14382085,1,1,2) [2025-02-02 00:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382085', 'tblTempUsageDetail_20' ) start [2025-02-02 00:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382085', 'tblTempUsageDetail_20' ) end [2025-02-02 00:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:43:23] Production.INFO: ==6809== Releasing lock... [2025-02-02 00:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:43:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-02 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:44:05 [end_date_ymd] => 2025-02-02 00:44:05 [RateCDR] => 1 ) [2025-02-02 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-01 21:44:05' and `end` < '2025-02-02 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-02 00:44:22] Production.INFO: count ==385 [2025-02-02 00:44:22] Production.ERROR: pbx CDR StartTime 2025-02-01 21:44:05 - End Time 2025-02-02 00:44:05 [2025-02-02 00:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382090', 'tblTempUsageDetail_20' ) start [2025-02-02 00:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382090', 'tblTempUsageDetail_20' ) end [2025-02-02 00:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382090', 'tblTempVendorCDR_20' ) start [2025-02-02 00:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382090', 'tblTempVendorCDR_20' ) end [2025-02-02 00:44:22] Production.INFO: ProcessCDR(1,14382090,1,1,2) [2025-02-02 00:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382090', 'tblTempUsageDetail_20' ) start [2025-02-02 00:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382090', 'tblTempUsageDetail_20' ) end [2025-02-02 00:44:25] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:44:25] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:44:25] Production.INFO: ==6880== Releasing lock... [2025-02-02 00:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:44:25] Production.INFO: 31.5 MB #Memory Used# [2025-02-02 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:45:05 [end_date_ymd] => 2025-02-02 00:45:05 [RateCDR] => 1 ) [2025-02-02 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-01 21:45:05' and `end` < '2025-02-02 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-02 00:45:18] Production.INFO: count ==382 [2025-02-02 00:45:18] Production.ERROR: pbx CDR StartTime 2025-02-01 21:45:05 - End Time 2025-02-02 00:45:05 [2025-02-02 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382095', 'tblTempUsageDetail_20' ) start [2025-02-02 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382095', 'tblTempUsageDetail_20' ) end [2025-02-02 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382095', 'tblTempVendorCDR_20' ) start [2025-02-02 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382095', 'tblTempVendorCDR_20' ) end [2025-02-02 00:45:18] Production.INFO: ProcessCDR(1,14382095,1,1,2) [2025-02-02 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382095', 'tblTempUsageDetail_20' ) start [2025-02-02 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382095', 'tblTempUsageDetail_20' ) end [2025-02-02 00:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:45:22] Production.INFO: ==6950== Releasing lock... [2025-02-02 00:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:45:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-02 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:46:05 [end_date_ymd] => 2025-02-02 00:46:05 [RateCDR] => 1 ) [2025-02-02 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-01 21:46:05' and `end` < '2025-02-02 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-02 00:46:18] Production.INFO: count ==381 [2025-02-02 00:46:18] Production.ERROR: pbx CDR StartTime 2025-02-01 21:46:05 - End Time 2025-02-02 00:46:05 [2025-02-02 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382100', 'tblTempUsageDetail_20' ) start [2025-02-02 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382100', 'tblTempUsageDetail_20' ) end [2025-02-02 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382100', 'tblTempVendorCDR_20' ) start [2025-02-02 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382100', 'tblTempVendorCDR_20' ) end [2025-02-02 00:46:18] Production.INFO: ProcessCDR(1,14382100,1,1,2) [2025-02-02 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382100', 'tblTempUsageDetail_20' ) start [2025-02-02 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382100', 'tblTempUsageDetail_20' ) end [2025-02-02 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:46:21] Production.INFO: ==7022== Releasing lock... [2025-02-02 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:46:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-02 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:47:05 [end_date_ymd] => 2025-02-02 00:47:05 [RateCDR] => 1 ) [2025-02-02 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-01 21:47:05' and `end` < '2025-02-02 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-02 00:47:18] Production.INFO: count ==381 [2025-02-02 00:47:18] Production.ERROR: pbx CDR StartTime 2025-02-01 21:47:05 - End Time 2025-02-02 00:47:05 [2025-02-02 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382105', 'tblTempUsageDetail_20' ) start [2025-02-02 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382105', 'tblTempUsageDetail_20' ) end [2025-02-02 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382105', 'tblTempVendorCDR_20' ) start [2025-02-02 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382105', 'tblTempVendorCDR_20' ) end [2025-02-02 00:47:18] Production.INFO: ProcessCDR(1,14382105,1,1,2) [2025-02-02 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382105', 'tblTempUsageDetail_20' ) start [2025-02-02 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382105', 'tblTempUsageDetail_20' ) end [2025-02-02 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:47:21] Production.INFO: ==7093== Releasing lock... [2025-02-02 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:47:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-02 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:48:05 [end_date_ymd] => 2025-02-02 00:48:05 [RateCDR] => 1 ) [2025-02-02 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-01 21:48:05' and `end` < '2025-02-02 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-02 00:48:18] Production.INFO: count ==381 [2025-02-02 00:48:18] Production.ERROR: pbx CDR StartTime 2025-02-01 21:48:05 - End Time 2025-02-02 00:48:05 [2025-02-02 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382110', 'tblTempUsageDetail_20' ) start [2025-02-02 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382110', 'tblTempUsageDetail_20' ) end [2025-02-02 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382110', 'tblTempVendorCDR_20' ) start [2025-02-02 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382110', 'tblTempVendorCDR_20' ) end [2025-02-02 00:48:18] Production.INFO: ProcessCDR(1,14382110,1,1,2) [2025-02-02 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382110', 'tblTempUsageDetail_20' ) start [2025-02-02 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382110', 'tblTempUsageDetail_20' ) end [2025-02-02 00:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:48:22] Production.INFO: ==7163== Releasing lock... [2025-02-02 00:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:48:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-02 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:49:05 [end_date_ymd] => 2025-02-02 00:49:05 [RateCDR] => 1 ) [2025-02-02 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-01 21:49:05' and `end` < '2025-02-02 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-02 00:49:18] Production.INFO: count ==380 [2025-02-02 00:49:18] Production.ERROR: pbx CDR StartTime 2025-02-01 21:49:05 - End Time 2025-02-02 00:49:05 [2025-02-02 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382115', 'tblTempUsageDetail_20' ) start [2025-02-02 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382115', 'tblTempUsageDetail_20' ) end [2025-02-02 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382115', 'tblTempVendorCDR_20' ) start [2025-02-02 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382115', 'tblTempVendorCDR_20' ) end [2025-02-02 00:49:18] Production.INFO: ProcessCDR(1,14382115,1,1,2) [2025-02-02 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382115', 'tblTempUsageDetail_20' ) start [2025-02-02 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382115', 'tblTempUsageDetail_20' ) end [2025-02-02 00:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:49:22] Production.INFO: ==7239== Releasing lock... [2025-02-02 00:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:49:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-02 00:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:50:05 [end_date_ymd] => 2025-02-02 00:50:05 [RateCDR] => 1 ) [2025-02-02 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-01 21:50:05' and `end` < '2025-02-02 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-02 00:50:18] Production.INFO: count ==390 [2025-02-02 00:50:18] Production.ERROR: pbx CDR StartTime 2025-02-01 21:50:05 - End Time 2025-02-02 00:50:05 [2025-02-02 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382120', 'tblTempUsageDetail_20' ) start [2025-02-02 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382120', 'tblTempUsageDetail_20' ) end [2025-02-02 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382120', 'tblTempVendorCDR_20' ) start [2025-02-02 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382120', 'tblTempVendorCDR_20' ) end [2025-02-02 00:50:18] Production.INFO: ProcessCDR(1,14382120,1,1,2) [2025-02-02 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382120', 'tblTempUsageDetail_20' ) start [2025-02-02 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382120', 'tblTempUsageDetail_20' ) end [2025-02-02 00:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:50:21] Production.INFO: ==7312== Releasing lock... [2025-02-02 00:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:50:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-02 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:51:05 [end_date_ymd] => 2025-02-02 00:51:05 [RateCDR] => 1 ) [2025-02-02 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-01 21:51:05' and `end` < '2025-02-02 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-02 00:51:17] Production.INFO: count ==407 [2025-02-02 00:51:17] Production.ERROR: pbx CDR StartTime 2025-02-01 21:51:05 - End Time 2025-02-02 00:51:05 [2025-02-02 00:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382126', 'tblTempUsageDetail_20' ) start [2025-02-02 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382126', 'tblTempUsageDetail_20' ) end [2025-02-02 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382126', 'tblTempVendorCDR_20' ) start [2025-02-02 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382126', 'tblTempVendorCDR_20' ) end [2025-02-02 00:51:17] Production.INFO: ProcessCDR(1,14382126,1,1,2) [2025-02-02 00:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382126', 'tblTempUsageDetail_20' ) start [2025-02-02 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382126', 'tblTempUsageDetail_20' ) end [2025-02-02 00:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:51:21] Production.INFO: ==7390== Releasing lock... [2025-02-02 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:51:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-02 00:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:52:06 [end_date_ymd] => 2025-02-02 00:52:06 [RateCDR] => 1 ) [2025-02-02 00:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 21:52:06' and `end` < '2025-02-02 00:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 00:52:18] Production.INFO: count ==403 [2025-02-02 00:52:19] Production.ERROR: pbx CDR StartTime 2025-02-01 21:52:06 - End Time 2025-02-02 00:52:06 [2025-02-02 00:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382131', 'tblTempUsageDetail_20' ) start [2025-02-02 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382131', 'tblTempUsageDetail_20' ) end [2025-02-02 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382131', 'tblTempVendorCDR_20' ) start [2025-02-02 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382131', 'tblTempVendorCDR_20' ) end [2025-02-02 00:52:19] Production.INFO: ProcessCDR(1,14382131,1,1,2) [2025-02-02 00:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382131', 'tblTempUsageDetail_20' ) start [2025-02-02 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382131', 'tblTempUsageDetail_20' ) end [2025-02-02 00:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:52:22] Production.INFO: ==7507== Releasing lock... [2025-02-02 00:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:52:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-02 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:53:05 [end_date_ymd] => 2025-02-02 00:53:05 [RateCDR] => 1 ) [2025-02-02 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-01 21:53:05' and `end` < '2025-02-02 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-02 00:53:19] Production.INFO: count ==403 [2025-02-02 00:53:19] Production.ERROR: pbx CDR StartTime 2025-02-01 21:53:05 - End Time 2025-02-02 00:53:05 [2025-02-02 00:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382136', 'tblTempUsageDetail_20' ) start [2025-02-02 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382136', 'tblTempUsageDetail_20' ) end [2025-02-02 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382136', 'tblTempVendorCDR_20' ) start [2025-02-02 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382136', 'tblTempVendorCDR_20' ) end [2025-02-02 00:53:19] Production.INFO: ProcessCDR(1,14382136,1,1,2) [2025-02-02 00:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382136', 'tblTempUsageDetail_20' ) start [2025-02-02 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382136', 'tblTempUsageDetail_20' ) end [2025-02-02 00:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:53:22] Production.INFO: ==7587== Releasing lock... [2025-02-02 00:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:53:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-02 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:54:05 [end_date_ymd] => 2025-02-02 00:54:05 [RateCDR] => 1 ) [2025-02-02 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-01 21:54:05' and `end` < '2025-02-02 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-02 00:54:19] Production.INFO: count ==403 [2025-02-02 00:54:19] Production.ERROR: pbx CDR StartTime 2025-02-01 21:54:05 - End Time 2025-02-02 00:54:05 [2025-02-02 00:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382141', 'tblTempUsageDetail_20' ) start [2025-02-02 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382141', 'tblTempUsageDetail_20' ) end [2025-02-02 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382141', 'tblTempVendorCDR_20' ) start [2025-02-02 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382141', 'tblTempVendorCDR_20' ) end [2025-02-02 00:54:19] Production.INFO: ProcessCDR(1,14382141,1,1,2) [2025-02-02 00:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382141', 'tblTempUsageDetail_20' ) start [2025-02-02 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382141', 'tblTempUsageDetail_20' ) end [2025-02-02 00:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:54:22] Production.INFO: ==7668== Releasing lock... [2025-02-02 00:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:54:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-02 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:55:05 [end_date_ymd] => 2025-02-02 00:55:05 [RateCDR] => 1 ) [2025-02-02 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-01 21:55:05' and `end` < '2025-02-02 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-02 00:55:18] Production.INFO: count ==407 [2025-02-02 00:55:18] Production.ERROR: pbx CDR StartTime 2025-02-01 21:55:05 - End Time 2025-02-02 00:55:05 [2025-02-02 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382146', 'tblTempUsageDetail_20' ) start [2025-02-02 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382146', 'tblTempUsageDetail_20' ) end [2025-02-02 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382146', 'tblTempVendorCDR_20' ) start [2025-02-02 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382146', 'tblTempVendorCDR_20' ) end [2025-02-02 00:55:18] Production.INFO: ProcessCDR(1,14382146,1,1,2) [2025-02-02 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382146', 'tblTempUsageDetail_20' ) start [2025-02-02 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382146', 'tblTempUsageDetail_20' ) end [2025-02-02 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:55:21] Production.INFO: ==7743== Releasing lock... [2025-02-02 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:55:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-02 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:56:05 [end_date_ymd] => 2025-02-02 00:56:05 [RateCDR] => 1 ) [2025-02-02 00:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 21:56:05' and `end` < '2025-02-02 00:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 00:56:18] Production.INFO: count ==407 [2025-02-02 00:56:18] Production.ERROR: pbx CDR StartTime 2025-02-01 21:56:05 - End Time 2025-02-02 00:56:05 [2025-02-02 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382151', 'tblTempUsageDetail_20' ) start [2025-02-02 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382151', 'tblTempUsageDetail_20' ) end [2025-02-02 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382151', 'tblTempVendorCDR_20' ) start [2025-02-02 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382151', 'tblTempVendorCDR_20' ) end [2025-02-02 00:56:18] Production.INFO: ProcessCDR(1,14382151,1,1,2) [2025-02-02 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382151', 'tblTempUsageDetail_20' ) start [2025-02-02 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382151', 'tblTempUsageDetail_20' ) end [2025-02-02 00:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:56:22] Production.INFO: ==7819== Releasing lock... [2025-02-02 00:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:56:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-02 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:57:05 [end_date_ymd] => 2025-02-02 00:57:05 [RateCDR] => 1 ) [2025-02-02 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-01 21:57:05' and `end` < '2025-02-02 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-02 00:57:19] Production.INFO: count ==406 [2025-02-02 00:57:19] Production.ERROR: pbx CDR StartTime 2025-02-01 21:57:05 - End Time 2025-02-02 00:57:05 [2025-02-02 00:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382156', 'tblTempUsageDetail_20' ) start [2025-02-02 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382156', 'tblTempUsageDetail_20' ) end [2025-02-02 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382156', 'tblTempVendorCDR_20' ) start [2025-02-02 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382156', 'tblTempVendorCDR_20' ) end [2025-02-02 00:57:19] Production.INFO: ProcessCDR(1,14382156,1,1,2) [2025-02-02 00:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382156', 'tblTempUsageDetail_20' ) start [2025-02-02 00:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382156', 'tblTempUsageDetail_20' ) end [2025-02-02 00:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:57:23] Production.INFO: ==7897== Releasing lock... [2025-02-02 00:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:57:23] Production.INFO: 31 MB #Memory Used# [2025-02-02 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:58:05 [end_date_ymd] => 2025-02-02 00:58:05 [RateCDR] => 1 ) [2025-02-02 00:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 21:58:05' and `end` < '2025-02-02 00:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 00:58:18] Production.INFO: count ==410 [2025-02-02 00:58:18] Production.ERROR: pbx CDR StartTime 2025-02-01 21:58:05 - End Time 2025-02-02 00:58:05 [2025-02-02 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382161', 'tblTempUsageDetail_20' ) start [2025-02-02 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382161', 'tblTempUsageDetail_20' ) end [2025-02-02 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382161', 'tblTempVendorCDR_20' ) start [2025-02-02 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382161', 'tblTempVendorCDR_20' ) end [2025-02-02 00:58:18] Production.INFO: ProcessCDR(1,14382161,1,1,2) [2025-02-02 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382161', 'tblTempUsageDetail_20' ) start [2025-02-02 00:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382161', 'tblTempUsageDetail_20' ) end [2025-02-02 00:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:58:23] Production.INFO: ==7972== Releasing lock... [2025-02-02 00:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:58:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-02 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 21:59:05 [end_date_ymd] => 2025-02-02 00:59:05 [RateCDR] => 1 ) [2025-02-02 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-01 21:59:05' and `end` < '2025-02-02 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-02 00:59:19] Production.INFO: count ==413 [2025-02-02 00:59:19] Production.ERROR: pbx CDR StartTime 2025-02-01 21:59:05 - End Time 2025-02-02 00:59:05 [2025-02-02 00:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382166', 'tblTempUsageDetail_20' ) start [2025-02-02 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382166', 'tblTempUsageDetail_20' ) end [2025-02-02 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382166', 'tblTempVendorCDR_20' ) start [2025-02-02 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382166', 'tblTempVendorCDR_20' ) end [2025-02-02 00:59:19] Production.INFO: ProcessCDR(1,14382166,1,1,2) [2025-02-02 00:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 00:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 00:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382166', 'tblTempUsageDetail_20' ) start [2025-02-02 00:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382166', 'tblTempUsageDetail_20' ) end [2025-02-02 00:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 00:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 00:59:23] Production.INFO: ==8053== Releasing lock... [2025-02-02 00:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 00:59:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-02 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:00:06 [end_date_ymd] => 2025-02-02 01:00:06 [RateCDR] => 1 ) [2025-02-02 01:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 22:00:06' and `end` < '2025-02-02 01:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 01:00:18] Production.INFO: count ==425 [2025-02-02 01:00:18] Production.ERROR: pbx CDR StartTime 2025-02-01 22:00:06 - End Time 2025-02-02 01:00:06 [2025-02-02 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382171', 'tblTempUsageDetail_20' ) start [2025-02-02 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382171', 'tblTempUsageDetail_20' ) end [2025-02-02 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382171', 'tblTempVendorCDR_20' ) start [2025-02-02 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382171', 'tblTempVendorCDR_20' ) end [2025-02-02 01:00:19] Production.INFO: ProcessCDR(1,14382171,1,1,2) [2025-02-02 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382171', 'tblTempUsageDetail_20' ) start [2025-02-02 01:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382171', 'tblTempUsageDetail_20' ) end [2025-02-02 01:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:00:24] Production.INFO: ==8133== Releasing lock... [2025-02-02 01:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:00:24] Production.INFO: 31.75 MB #Memory Used# [2025-02-02 01:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:01:06 [end_date_ymd] => 2025-02-02 01:01:06 [RateCDR] => 1 ) [2025-02-02 01:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 22:01:06' and `end` < '2025-02-02 01:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 01:01:18] Production.INFO: count ==451 [2025-02-02 01:01:19] Production.ERROR: pbx CDR StartTime 2025-02-01 22:01:06 - End Time 2025-02-02 01:01:06 [2025-02-02 01:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382177', 'tblTempUsageDetail_20' ) start [2025-02-02 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382177', 'tblTempUsageDetail_20' ) end [2025-02-02 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382177', 'tblTempVendorCDR_20' ) start [2025-02-02 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382177', 'tblTempVendorCDR_20' ) end [2025-02-02 01:01:19] Production.INFO: ProcessCDR(1,14382177,1,1,2) [2025-02-02 01:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382177', 'tblTempUsageDetail_20' ) start [2025-02-02 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382177', 'tblTempUsageDetail_20' ) end [2025-02-02 01:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:01:22] Production.INFO: ==8230== Releasing lock... [2025-02-02 01:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:01:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-02 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:02:05 [end_date_ymd] => 2025-02-02 01:02:05 [RateCDR] => 1 ) [2025-02-02 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-01 22:02:05' and `end` < '2025-02-02 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-02 01:02:19] Production.INFO: count ==451 [2025-02-02 01:02:19] Production.ERROR: pbx CDR StartTime 2025-02-01 22:02:05 - End Time 2025-02-02 01:02:05 [2025-02-02 01:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382182', 'tblTempUsageDetail_20' ) start [2025-02-02 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382182', 'tblTempUsageDetail_20' ) end [2025-02-02 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382182', 'tblTempVendorCDR_20' ) start [2025-02-02 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382182', 'tblTempVendorCDR_20' ) end [2025-02-02 01:02:19] Production.INFO: ProcessCDR(1,14382182,1,1,2) [2025-02-02 01:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382182', 'tblTempUsageDetail_20' ) start [2025-02-02 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382182', 'tblTempUsageDetail_20' ) end [2025-02-02 01:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:02:22] Production.INFO: ==8311== Releasing lock... [2025-02-02 01:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:02:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-02 01:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:03:06 [end_date_ymd] => 2025-02-02 01:03:06 [RateCDR] => 1 ) [2025-02-02 01:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 22:03:06' and `end` < '2025-02-02 01:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 01:03:19] Production.INFO: count ==450 [2025-02-02 01:03:19] Production.ERROR: pbx CDR StartTime 2025-02-01 22:03:06 - End Time 2025-02-02 01:03:06 [2025-02-02 01:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382187', 'tblTempUsageDetail_20' ) start [2025-02-02 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382187', 'tblTempUsageDetail_20' ) end [2025-02-02 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382187', 'tblTempVendorCDR_20' ) start [2025-02-02 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382187', 'tblTempVendorCDR_20' ) end [2025-02-02 01:03:19] Production.INFO: ProcessCDR(1,14382187,1,1,2) [2025-02-02 01:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382187', 'tblTempUsageDetail_20' ) start [2025-02-02 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382187', 'tblTempUsageDetail_20' ) end [2025-02-02 01:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:03:22] Production.INFO: ==8387== Releasing lock... [2025-02-02 01:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:03:22] Production.INFO: 32 MB #Memory Used# [2025-02-02 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:04:05 [end_date_ymd] => 2025-02-02 01:04:05 [RateCDR] => 1 ) [2025-02-02 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-01 22:04:05' and `end` < '2025-02-02 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-02 01:04:18] Production.INFO: count ==450 [2025-02-02 01:04:18] Production.ERROR: pbx CDR StartTime 2025-02-01 22:04:05 - End Time 2025-02-02 01:04:05 [2025-02-02 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382192', 'tblTempUsageDetail_20' ) start [2025-02-02 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382192', 'tblTempUsageDetail_20' ) end [2025-02-02 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382192', 'tblTempVendorCDR_20' ) start [2025-02-02 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382192', 'tblTempVendorCDR_20' ) end [2025-02-02 01:04:18] Production.INFO: ProcessCDR(1,14382192,1,1,2) [2025-02-02 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382192', 'tblTempUsageDetail_20' ) start [2025-02-02 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382192', 'tblTempUsageDetail_20' ) end [2025-02-02 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:04:21] Production.INFO: ==8466== Releasing lock... [2025-02-02 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:04:21] Production.INFO: 32 MB #Memory Used# [2025-02-02 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:05:05 [end_date_ymd] => 2025-02-02 01:05:05 [RateCDR] => 1 ) [2025-02-02 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-01 22:05:05' and `end` < '2025-02-02 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-02 01:05:18] Production.INFO: count ==450 [2025-02-02 01:05:18] Production.ERROR: pbx CDR StartTime 2025-02-01 22:05:05 - End Time 2025-02-02 01:05:05 [2025-02-02 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382197', 'tblTempUsageDetail_20' ) start [2025-02-02 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382197', 'tblTempUsageDetail_20' ) end [2025-02-02 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382197', 'tblTempVendorCDR_20' ) start [2025-02-02 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382197', 'tblTempVendorCDR_20' ) end [2025-02-02 01:05:18] Production.INFO: ProcessCDR(1,14382197,1,1,2) [2025-02-02 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382197', 'tblTempUsageDetail_20' ) start [2025-02-02 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382197', 'tblTempUsageDetail_20' ) end [2025-02-02 01:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:05:22] Production.INFO: ==8541== Releasing lock... [2025-02-02 01:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:05:22] Production.INFO: 32 MB #Memory Used# [2025-02-02 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:06:05 [end_date_ymd] => 2025-02-02 01:06:05 [RateCDR] => 1 ) [2025-02-02 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-01 22:06:05' and `end` < '2025-02-02 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-02 01:06:18] Production.INFO: count ==450 [2025-02-02 01:06:18] Production.ERROR: pbx CDR StartTime 2025-02-01 22:06:05 - End Time 2025-02-02 01:06:05 [2025-02-02 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382202', 'tblTempUsageDetail_20' ) start [2025-02-02 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382202', 'tblTempUsageDetail_20' ) end [2025-02-02 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382202', 'tblTempVendorCDR_20' ) start [2025-02-02 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382202', 'tblTempVendorCDR_20' ) end [2025-02-02 01:06:18] Production.INFO: ProcessCDR(1,14382202,1,1,2) [2025-02-02 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382202', 'tblTempUsageDetail_20' ) start [2025-02-02 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382202', 'tblTempUsageDetail_20' ) end [2025-02-02 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:06:21] Production.INFO: ==8625== Releasing lock... [2025-02-02 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:06:21] Production.INFO: 32 MB #Memory Used# [2025-02-02 01:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:07:06 [end_date_ymd] => 2025-02-02 01:07:06 [RateCDR] => 1 ) [2025-02-02 01: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-01 22:07:06' and `end` < '2025-02-02 01: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-02 01:07:19] Production.INFO: count ==454 [2025-02-02 01:07:19] Production.ERROR: pbx CDR StartTime 2025-02-01 22:07:06 - End Time 2025-02-02 01:07:06 [2025-02-02 01:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382207', 'tblTempUsageDetail_20' ) start [2025-02-02 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382207', 'tblTempUsageDetail_20' ) end [2025-02-02 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382207', 'tblTempVendorCDR_20' ) start [2025-02-02 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382207', 'tblTempVendorCDR_20' ) end [2025-02-02 01:07:19] Production.INFO: ProcessCDR(1,14382207,1,1,2) [2025-02-02 01:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382207', 'tblTempUsageDetail_20' ) start [2025-02-02 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382207', 'tblTempUsageDetail_20' ) end [2025-02-02 01:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:07:22] Production.INFO: ==8743== Releasing lock... [2025-02-02 01:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:07:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-02 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:08:05 [end_date_ymd] => 2025-02-02 01:08:05 [RateCDR] => 1 ) [2025-02-02 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-01 22:08:05' and `end` < '2025-02-02 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-02 01:08:19] Production.INFO: count ==457 [2025-02-02 01:08:19] Production.ERROR: pbx CDR StartTime 2025-02-01 22:08:05 - End Time 2025-02-02 01:08:05 [2025-02-02 01:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382212', 'tblTempUsageDetail_20' ) start [2025-02-02 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382212', 'tblTempUsageDetail_20' ) end [2025-02-02 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382212', 'tblTempVendorCDR_20' ) start [2025-02-02 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382212', 'tblTempVendorCDR_20' ) end [2025-02-02 01:08:19] Production.INFO: ProcessCDR(1,14382212,1,1,2) [2025-02-02 01:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382212', 'tblTempUsageDetail_20' ) start [2025-02-02 01:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382212', 'tblTempUsageDetail_20' ) end [2025-02-02 01:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:08:23] Production.INFO: ==8829== Releasing lock... [2025-02-02 01:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:08:23] Production.INFO: 32 MB #Memory Used# [2025-02-02 01:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:09:06 [end_date_ymd] => 2025-02-02 01:09:06 [RateCDR] => 1 ) [2025-02-02 01: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-01 22:09:06' and `end` < '2025-02-02 01: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-02 01:09:18] Production.INFO: count ==456 [2025-02-02 01:09:19] Production.ERROR: pbx CDR StartTime 2025-02-01 22:09:06 - End Time 2025-02-02 01:09:06 [2025-02-02 01:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382217', 'tblTempUsageDetail_20' ) start [2025-02-02 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382217', 'tblTempUsageDetail_20' ) end [2025-02-02 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382217', 'tblTempVendorCDR_20' ) start [2025-02-02 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382217', 'tblTempVendorCDR_20' ) end [2025-02-02 01:09:19] Production.INFO: ProcessCDR(1,14382217,1,1,2) [2025-02-02 01:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382217', 'tblTempUsageDetail_20' ) start [2025-02-02 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382217', 'tblTempUsageDetail_20' ) end [2025-02-02 01:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:09:22] Production.INFO: ==8910== Releasing lock... [2025-02-02 01:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:09:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-02 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:10:06 [end_date_ymd] => 2025-02-02 01:10:06 [RateCDR] => 1 ) [2025-02-02 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-01 22:10:06' and `end` < '2025-02-02 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-02 01:10:18] Production.INFO: count ==464 [2025-02-02 01:10:19] Production.ERROR: pbx CDR StartTime 2025-02-01 22:10:06 - End Time 2025-02-02 01:10:06 [2025-02-02 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382222', 'tblTempUsageDetail_20' ) start [2025-02-02 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382222', 'tblTempUsageDetail_20' ) end [2025-02-02 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382222', 'tblTempVendorCDR_20' ) start [2025-02-02 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382222', 'tblTempVendorCDR_20' ) end [2025-02-02 01:10:19] Production.INFO: ProcessCDR(1,14382222,1,1,2) [2025-02-02 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382222', 'tblTempUsageDetail_20' ) start [2025-02-02 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382222', 'tblTempUsageDetail_20' ) end [2025-02-02 01:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:10:23] Production.INFO: ==8988== Releasing lock... [2025-02-02 01:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:10:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-02 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:11:05 [end_date_ymd] => 2025-02-02 01:11:05 [RateCDR] => 1 ) [2025-02-02 01: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-01 22:11:05' and `end` < '2025-02-02 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-02 01:11:21] Production.INFO: count ==479 [2025-02-02 01:11:21] Production.ERROR: pbx CDR StartTime 2025-02-01 22:11:05 - End Time 2025-02-02 01:11:05 [2025-02-02 01:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382228', 'tblTempUsageDetail_20' ) start [2025-02-02 01:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382228', 'tblTempUsageDetail_20' ) end [2025-02-02 01:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382228', 'tblTempVendorCDR_20' ) start [2025-02-02 01:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382228', 'tblTempVendorCDR_20' ) end [2025-02-02 01:11:21] Production.INFO: ProcessCDR(1,14382228,1,1,2) [2025-02-02 01:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382228', 'tblTempUsageDetail_20' ) start [2025-02-02 01:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382228', 'tblTempUsageDetail_20' ) end [2025-02-02 01:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:11:25] Production.INFO: ==9067== Releasing lock... [2025-02-02 01:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:11:25] Production.INFO: 32.25 MB #Memory Used# [2025-02-02 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:12:05 [end_date_ymd] => 2025-02-02 01:12:05 [RateCDR] => 1 ) [2025-02-02 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-01 22:12:05' and `end` < '2025-02-02 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-02 01:12:18] Production.INFO: count ==479 [2025-02-02 01:12:18] Production.ERROR: pbx CDR StartTime 2025-02-01 22:12:05 - End Time 2025-02-02 01:12:05 [2025-02-02 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382233', 'tblTempUsageDetail_20' ) start [2025-02-02 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382233', 'tblTempUsageDetail_20' ) end [2025-02-02 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382233', 'tblTempVendorCDR_20' ) start [2025-02-02 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382233', 'tblTempVendorCDR_20' ) end [2025-02-02 01:12:18] Production.INFO: ProcessCDR(1,14382233,1,1,2) [2025-02-02 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382233', 'tblTempUsageDetail_20' ) start [2025-02-02 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382233', 'tblTempUsageDetail_20' ) end [2025-02-02 01:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:12:22] Production.INFO: ==9149== Releasing lock... [2025-02-02 01:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:12:22] Production.INFO: 32 MB #Memory Used# [2025-02-02 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:13:05 [end_date_ymd] => 2025-02-02 01:13:05 [RateCDR] => 1 ) [2025-02-02 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-01 22:13:05' and `end` < '2025-02-02 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-02 01:13:18] Production.INFO: count ==478 [2025-02-02 01:13:18] Production.ERROR: pbx CDR StartTime 2025-02-01 22:13:05 - End Time 2025-02-02 01:13:05 [2025-02-02 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382238', 'tblTempUsageDetail_20' ) start [2025-02-02 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382238', 'tblTempUsageDetail_20' ) end [2025-02-02 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382238', 'tblTempVendorCDR_20' ) start [2025-02-02 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382238', 'tblTempVendorCDR_20' ) end [2025-02-02 01:13:18] Production.INFO: ProcessCDR(1,14382238,1,1,2) [2025-02-02 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382238', 'tblTempUsageDetail_20' ) start [2025-02-02 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382238', 'tblTempUsageDetail_20' ) end [2025-02-02 01:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:13:21] Production.INFO: ==9223== Releasing lock... [2025-02-02 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:13:21] Production.INFO: 32 MB #Memory Used# [2025-02-02 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:14:05 [end_date_ymd] => 2025-02-02 01:14:05 [RateCDR] => 1 ) [2025-02-02 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-01 22:14:05' and `end` < '2025-02-02 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-02 01:14:20] Production.INFO: count ==476 [2025-02-02 01:14:20] Production.ERROR: pbx CDR StartTime 2025-02-01 22:14:05 - End Time 2025-02-02 01:14:05 [2025-02-02 01:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382243', 'tblTempUsageDetail_20' ) start [2025-02-02 01:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382243', 'tblTempUsageDetail_20' ) end [2025-02-02 01:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382243', 'tblTempVendorCDR_20' ) start [2025-02-02 01:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382243', 'tblTempVendorCDR_20' ) end [2025-02-02 01:14:20] Production.INFO: ProcessCDR(1,14382243,1,1,2) [2025-02-02 01:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382243', 'tblTempUsageDetail_20' ) start [2025-02-02 01:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382243', 'tblTempUsageDetail_20' ) end [2025-02-02 01:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:14:24] Production.INFO: ==9294== Releasing lock... [2025-02-02 01:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:14:24] Production.INFO: 32 MB #Memory Used# [2025-02-02 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:15:05 [end_date_ymd] => 2025-02-02 01:15:05 [RateCDR] => 1 ) [2025-02-02 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-01 22:15:05' and `end` < '2025-02-02 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-02 01:15:18] Production.INFO: count ==474 [2025-02-02 01:15:18] Production.ERROR: pbx CDR StartTime 2025-02-01 22:15:05 - End Time 2025-02-02 01:15:05 [2025-02-02 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382248', 'tblTempUsageDetail_20' ) start [2025-02-02 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382248', 'tblTempUsageDetail_20' ) end [2025-02-02 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382248', 'tblTempVendorCDR_20' ) start [2025-02-02 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382248', 'tblTempVendorCDR_20' ) end [2025-02-02 01:15:18] Production.INFO: ProcessCDR(1,14382248,1,1,2) [2025-02-02 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382248', 'tblTempUsageDetail_20' ) start [2025-02-02 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382248', 'tblTempUsageDetail_20' ) end [2025-02-02 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:15:21] Production.INFO: ==9372== Releasing lock... [2025-02-02 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:15:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-02 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:16:05 [end_date_ymd] => 2025-02-02 01:16:05 [RateCDR] => 1 ) [2025-02-02 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-01 22:16:05' and `end` < '2025-02-02 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-02 01:16:18] Production.INFO: count ==474 [2025-02-02 01:16:18] Production.ERROR: pbx CDR StartTime 2025-02-01 22:16:05 - End Time 2025-02-02 01:16:05 [2025-02-02 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382253', 'tblTempUsageDetail_20' ) start [2025-02-02 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382253', 'tblTempUsageDetail_20' ) end [2025-02-02 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382253', 'tblTempVendorCDR_20' ) start [2025-02-02 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382253', 'tblTempVendorCDR_20' ) end [2025-02-02 01:16:18] Production.INFO: ProcessCDR(1,14382253,1,1,2) [2025-02-02 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382253', 'tblTempUsageDetail_20' ) start [2025-02-02 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382253', 'tblTempUsageDetail_20' ) end [2025-02-02 01:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:16:21] Production.INFO: ==9449== Releasing lock... [2025-02-02 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:16:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-02 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:17:05 [end_date_ymd] => 2025-02-02 01:17:05 [RateCDR] => 1 ) [2025-02-02 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-01 22:17:05' and `end` < '2025-02-02 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-02 01:17:18] Production.INFO: count ==469 [2025-02-02 01:17:18] Production.ERROR: pbx CDR StartTime 2025-02-01 22:17:05 - End Time 2025-02-02 01:17:05 [2025-02-02 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382258', 'tblTempUsageDetail_20' ) start [2025-02-02 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382258', 'tblTempUsageDetail_20' ) end [2025-02-02 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382258', 'tblTempVendorCDR_20' ) start [2025-02-02 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382258', 'tblTempVendorCDR_20' ) end [2025-02-02 01:17:18] Production.INFO: ProcessCDR(1,14382258,1,1,2) [2025-02-02 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382258', 'tblTempUsageDetail_20' ) start [2025-02-02 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382258', 'tblTempUsageDetail_20' ) end [2025-02-02 01:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:17:22] Production.INFO: ==9527== Releasing lock... [2025-02-02 01:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:17:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-02 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:18:05 [end_date_ymd] => 2025-02-02 01:18:05 [RateCDR] => 1 ) [2025-02-02 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-01 22:18:05' and `end` < '2025-02-02 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-02 01:18:19] Production.INFO: count ==471 [2025-02-02 01:18:19] Production.ERROR: pbx CDR StartTime 2025-02-01 22:18:05 - End Time 2025-02-02 01:18:05 [2025-02-02 01:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382263', 'tblTempUsageDetail_20' ) start [2025-02-02 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382263', 'tblTempUsageDetail_20' ) end [2025-02-02 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382263', 'tblTempVendorCDR_20' ) start [2025-02-02 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382263', 'tblTempVendorCDR_20' ) end [2025-02-02 01:18:19] Production.INFO: ProcessCDR(1,14382263,1,1,2) [2025-02-02 01:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382263', 'tblTempUsageDetail_20' ) start [2025-02-02 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382263', 'tblTempUsageDetail_20' ) end [2025-02-02 01:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:18:22] Production.INFO: ==9610== Releasing lock... [2025-02-02 01:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:18:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-02 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:19:05 [end_date_ymd] => 2025-02-02 01:19:05 [RateCDR] => 1 ) [2025-02-02 01:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 22:19:05' and `end` < '2025-02-02 01:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 01:19:18] Production.INFO: count ==471 [2025-02-02 01:19:18] Production.ERROR: pbx CDR StartTime 2025-02-01 22:19:05 - End Time 2025-02-02 01:19:05 [2025-02-02 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382268', 'tblTempUsageDetail_20' ) start [2025-02-02 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382268', 'tblTempUsageDetail_20' ) end [2025-02-02 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382268', 'tblTempVendorCDR_20' ) start [2025-02-02 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382268', 'tblTempVendorCDR_20' ) end [2025-02-02 01:19:18] Production.INFO: ProcessCDR(1,14382268,1,1,2) [2025-02-02 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382268', 'tblTempUsageDetail_20' ) start [2025-02-02 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382268', 'tblTempUsageDetail_20' ) end [2025-02-02 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:19:21] Production.INFO: ==9684== Releasing lock... [2025-02-02 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:19:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-02 01:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:20:07 [end_date_ymd] => 2025-02-02 01:20:07 [RateCDR] => 1 ) [2025-02-02 01:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 22:20:07' and `end` < '2025-02-02 01:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 01:20:19] Production.INFO: count ==479 [2025-02-02 01:20:19] Production.ERROR: pbx CDR StartTime 2025-02-01 22:20:07 - End Time 2025-02-02 01:20:07 [2025-02-02 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382273', 'tblTempUsageDetail_20' ) start [2025-02-02 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382273', 'tblTempUsageDetail_20' ) end [2025-02-02 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382273', 'tblTempVendorCDR_20' ) start [2025-02-02 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382273', 'tblTempVendorCDR_20' ) end [2025-02-02 01:20:19] Production.INFO: ProcessCDR(1,14382273,1,1,2) [2025-02-02 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382273', 'tblTempUsageDetail_20' ) start [2025-02-02 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382273', 'tblTempUsageDetail_20' ) end [2025-02-02 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:20:23] Production.INFO: ==9761== Releasing lock... [2025-02-02 01:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:20:23] Production.INFO: 32 MB #Memory Used# [2025-02-02 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:21:05 [end_date_ymd] => 2025-02-02 01:21:05 [RateCDR] => 1 ) [2025-02-02 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-01 22:21:05' and `end` < '2025-02-02 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-02 01:21:17] Production.INFO: count ==511 [2025-02-02 01:21:17] Production.ERROR: pbx CDR StartTime 2025-02-01 22:21:05 - End Time 2025-02-02 01:21:05 [2025-02-02 01:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382279', 'tblTempUsageDetail_20' ) start [2025-02-02 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382279', 'tblTempUsageDetail_20' ) end [2025-02-02 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382279', 'tblTempVendorCDR_20' ) start [2025-02-02 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382279', 'tblTempVendorCDR_20' ) end [2025-02-02 01:21:17] Production.INFO: ProcessCDR(1,14382279,1,1,2) [2025-02-02 01:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382279', 'tblTempUsageDetail_20' ) start [2025-02-02 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382279', 'tblTempUsageDetail_20' ) end [2025-02-02 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:21:21] Production.INFO: ==9848== Releasing lock... [2025-02-02 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:21:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-02 01:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:22:06 [end_date_ymd] => 2025-02-02 01:22:06 [RateCDR] => 1 ) [2025-02-02 01: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-01 22:22:06' and `end` < '2025-02-02 01: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-02 01:22:19] Production.INFO: count ==511 [2025-02-02 01:22:19] Production.ERROR: pbx CDR StartTime 2025-02-01 22:22:06 - End Time 2025-02-02 01:22:06 [2025-02-02 01:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382284', 'tblTempUsageDetail_20' ) start [2025-02-02 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382284', 'tblTempUsageDetail_20' ) end [2025-02-02 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382284', 'tblTempVendorCDR_20' ) start [2025-02-02 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382284', 'tblTempVendorCDR_20' ) end [2025-02-02 01:22:19] Production.INFO: ProcessCDR(1,14382284,1,1,2) [2025-02-02 01:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382284', 'tblTempUsageDetail_20' ) start [2025-02-02 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382284', 'tblTempUsageDetail_20' ) end [2025-02-02 01:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:22:22] Production.INFO: ==9966== Releasing lock... [2025-02-02 01:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:22:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-02 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:23:05 [end_date_ymd] => 2025-02-02 01:23:05 [RateCDR] => 1 ) [2025-02-02 01:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 22:23:05' and `end` < '2025-02-02 01:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 01:23:19] Production.INFO: count ==512 [2025-02-02 01:23:19] Production.ERROR: pbx CDR StartTime 2025-02-01 22:23:05 - End Time 2025-02-02 01:23:05 [2025-02-02 01:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382289', 'tblTempUsageDetail_20' ) start [2025-02-02 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382289', 'tblTempUsageDetail_20' ) end [2025-02-02 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382289', 'tblTempVendorCDR_20' ) start [2025-02-02 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382289', 'tblTempVendorCDR_20' ) end [2025-02-02 01:23:19] Production.INFO: ProcessCDR(1,14382289,1,1,2) [2025-02-02 01:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382289', 'tblTempUsageDetail_20' ) start [2025-02-02 01:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382289', 'tblTempUsageDetail_20' ) end [2025-02-02 01:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:23:24] Production.INFO: ==10075== Releasing lock... [2025-02-02 01:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:23:24] Production.INFO: 31.75 MB #Memory Used# [2025-02-02 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:24:05 [end_date_ymd] => 2025-02-02 01:24:05 [RateCDR] => 1 ) [2025-02-02 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-01 22:24:05' and `end` < '2025-02-02 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-02 01:24:18] Production.INFO: count ==509 [2025-02-02 01:24:18] Production.ERROR: pbx CDR StartTime 2025-02-01 22:24:05 - End Time 2025-02-02 01:24:05 [2025-02-02 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382294', 'tblTempUsageDetail_20' ) start [2025-02-02 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382294', 'tblTempUsageDetail_20' ) end [2025-02-02 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382294', 'tblTempVendorCDR_20' ) start [2025-02-02 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382294', 'tblTempVendorCDR_20' ) end [2025-02-02 01:24:18] Production.INFO: ProcessCDR(1,14382294,1,1,2) [2025-02-02 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382294', 'tblTempUsageDetail_20' ) start [2025-02-02 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382294', 'tblTempUsageDetail_20' ) end [2025-02-02 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:24:21] Production.INFO: ==10193== Releasing lock... [2025-02-02 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:24:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-02 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:25:05 [end_date_ymd] => 2025-02-02 01:25:05 [RateCDR] => 1 ) [2025-02-02 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 22:25:05' and `end` < '2025-02-02 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 01:25:18] Production.INFO: count ==507 [2025-02-02 01:25:18] Production.ERROR: pbx CDR StartTime 2025-02-01 22:25:05 - End Time 2025-02-02 01:25:05 [2025-02-02 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382299', 'tblTempUsageDetail_20' ) start [2025-02-02 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382299', 'tblTempUsageDetail_20' ) end [2025-02-02 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382299', 'tblTempVendorCDR_20' ) start [2025-02-02 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382299', 'tblTempVendorCDR_20' ) end [2025-02-02 01:25:18] Production.INFO: ProcessCDR(1,14382299,1,1,2) [2025-02-02 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382299', 'tblTempUsageDetail_20' ) start [2025-02-02 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382299', 'tblTempUsageDetail_20' ) end [2025-02-02 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:25:21] Production.INFO: ==10301== Releasing lock... [2025-02-02 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:25:21] Production.INFO: 32 MB #Memory Used# [2025-02-02 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:26:05 [end_date_ymd] => 2025-02-02 01:26:05 [RateCDR] => 1 ) [2025-02-02 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-01 22:26:05' and `end` < '2025-02-02 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-02 01:26:19] Production.INFO: count ==506 [2025-02-02 01:26:19] Production.ERROR: pbx CDR StartTime 2025-02-01 22:26:05 - End Time 2025-02-02 01:26:05 [2025-02-02 01:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382304', 'tblTempUsageDetail_20' ) start [2025-02-02 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382304', 'tblTempUsageDetail_20' ) end [2025-02-02 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382304', 'tblTempVendorCDR_20' ) start [2025-02-02 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382304', 'tblTempVendorCDR_20' ) end [2025-02-02 01:26:19] Production.INFO: ProcessCDR(1,14382304,1,1,2) [2025-02-02 01:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382304', 'tblTempUsageDetail_20' ) start [2025-02-02 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382304', 'tblTempUsageDetail_20' ) end [2025-02-02 01:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:26:22] Production.INFO: ==10407== Releasing lock... [2025-02-02 01:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:26:22] Production.INFO: 32 MB #Memory Used# [2025-02-02 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:27:05 [end_date_ymd] => 2025-02-02 01:27:05 [RateCDR] => 1 ) [2025-02-02 01:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 22:27:05' and `end` < '2025-02-02 01:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 01:27:19] Production.INFO: count ==519 [2025-02-02 01:27:19] Production.ERROR: pbx CDR StartTime 2025-02-01 22:27:05 - End Time 2025-02-02 01:27:05 [2025-02-02 01:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382309', 'tblTempUsageDetail_20' ) start [2025-02-02 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382309', 'tblTempUsageDetail_20' ) end [2025-02-02 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382309', 'tblTempVendorCDR_20' ) start [2025-02-02 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382309', 'tblTempVendorCDR_20' ) end [2025-02-02 01:27:19] Production.INFO: ProcessCDR(1,14382309,1,1,2) [2025-02-02 01:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382309', 'tblTempUsageDetail_20' ) start [2025-02-02 01:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382309', 'tblTempUsageDetail_20' ) end [2025-02-02 01:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:27:24] Production.INFO: ==10484== Releasing lock... [2025-02-02 01:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:27:24] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:28:05 [end_date_ymd] => 2025-02-02 01:28:05 [RateCDR] => 1 ) [2025-02-02 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-01 22:28:05' and `end` < '2025-02-02 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-02 01:28:18] Production.INFO: count ==519 [2025-02-02 01:28:18] Production.ERROR: pbx CDR StartTime 2025-02-01 22:28:05 - End Time 2025-02-02 01:28:05 [2025-02-02 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382314', 'tblTempUsageDetail_20' ) start [2025-02-02 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382314', 'tblTempUsageDetail_20' ) end [2025-02-02 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382314', 'tblTempVendorCDR_20' ) start [2025-02-02 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382314', 'tblTempVendorCDR_20' ) end [2025-02-02 01:28:18] Production.INFO: ProcessCDR(1,14382314,1,1,2) [2025-02-02 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382314', 'tblTempUsageDetail_20' ) start [2025-02-02 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382314', 'tblTempUsageDetail_20' ) end [2025-02-02 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:28:21] Production.INFO: ==10563== Releasing lock... [2025-02-02 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:28:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:29:05 [end_date_ymd] => 2025-02-02 01:29:05 [RateCDR] => 1 ) [2025-02-02 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-01 22:29:05' and `end` < '2025-02-02 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-02 01:29:17] Production.INFO: count ==522 [2025-02-02 01:29:17] Production.ERROR: pbx CDR StartTime 2025-02-01 22:29:05 - End Time 2025-02-02 01:29:05 [2025-02-02 01:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382319', 'tblTempUsageDetail_20' ) start [2025-02-02 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382319', 'tblTempUsageDetail_20' ) end [2025-02-02 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382319', 'tblTempVendorCDR_20' ) start [2025-02-02 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382319', 'tblTempVendorCDR_20' ) end [2025-02-02 01:29:18] Production.INFO: ProcessCDR(1,14382319,1,1,2) [2025-02-02 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382319', 'tblTempUsageDetail_20' ) start [2025-02-02 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382319', 'tblTempUsageDetail_20' ) end [2025-02-02 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:29:21] Production.INFO: ==10640== Releasing lock... [2025-02-02 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:29:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:30:06 [end_date_ymd] => 2025-02-02 01:30:06 [RateCDR] => 1 ) [2025-02-02 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-01 22:30:06' and `end` < '2025-02-02 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-02 01:30:18] Production.INFO: count ==534 [2025-02-02 01:30:19] Production.ERROR: pbx CDR StartTime 2025-02-01 22:30:06 - End Time 2025-02-02 01:30:06 [2025-02-02 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382325', 'tblTempUsageDetail_20' ) start [2025-02-02 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382325', 'tblTempUsageDetail_20' ) end [2025-02-02 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382325', 'tblTempVendorCDR_20' ) start [2025-02-02 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382325', 'tblTempVendorCDR_20' ) end [2025-02-02 01:30:19] Production.INFO: ProcessCDR(1,14382325,1,1,2) [2025-02-02 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382325', 'tblTempUsageDetail_20' ) start [2025-02-02 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382325', 'tblTempUsageDetail_20' ) end [2025-02-02 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:30:22] Production.INFO: ==10715== Releasing lock... [2025-02-02 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:30:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:31:05 [end_date_ymd] => 2025-02-02 01:31:05 [RateCDR] => 1 ) [2025-02-02 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-01 22:31:05' and `end` < '2025-02-02 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-02 01:31:18] Production.INFO: count ==557 [2025-02-02 01:31:18] Production.ERROR: pbx CDR StartTime 2025-02-01 22:31:05 - End Time 2025-02-02 01:31:05 [2025-02-02 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382330', 'tblTempUsageDetail_20' ) start [2025-02-02 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382330', 'tblTempUsageDetail_20' ) end [2025-02-02 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382330', 'tblTempVendorCDR_20' ) start [2025-02-02 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382330', 'tblTempVendorCDR_20' ) end [2025-02-02 01:31:18] Production.INFO: ProcessCDR(1,14382330,1,1,2) [2025-02-02 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382330', 'tblTempUsageDetail_20' ) start [2025-02-02 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382330', 'tblTempUsageDetail_20' ) end [2025-02-02 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:31:21] Production.INFO: ==10806== Releasing lock... [2025-02-02 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:31:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 01:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:32:06 [end_date_ymd] => 2025-02-02 01:32:06 [RateCDR] => 1 ) [2025-02-02 01: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-01 22:32:06' and `end` < '2025-02-02 01: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-02 01:32:18] Production.INFO: count ==557 [2025-02-02 01:32:19] Production.ERROR: pbx CDR StartTime 2025-02-01 22:32:06 - End Time 2025-02-02 01:32:06 [2025-02-02 01:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382335', 'tblTempUsageDetail_20' ) start [2025-02-02 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382335', 'tblTempUsageDetail_20' ) end [2025-02-02 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382335', 'tblTempVendorCDR_20' ) start [2025-02-02 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382335', 'tblTempVendorCDR_20' ) end [2025-02-02 01:32:19] Production.INFO: ProcessCDR(1,14382335,1,1,2) [2025-02-02 01:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382335', 'tblTempUsageDetail_20' ) start [2025-02-02 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382335', 'tblTempUsageDetail_20' ) end [2025-02-02 01:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:32:22] Production.INFO: ==10881== Releasing lock... [2025-02-02 01:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:32:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:33:05 [end_date_ymd] => 2025-02-02 01:33:05 [RateCDR] => 1 ) [2025-02-02 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-01 22:33:05' and `end` < '2025-02-02 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-02 01:33:18] Production.INFO: count ==558 [2025-02-02 01:33:19] Production.ERROR: pbx CDR StartTime 2025-02-01 22:33:05 - End Time 2025-02-02 01:33:05 [2025-02-02 01:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382340', 'tblTempUsageDetail_20' ) start [2025-02-02 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382340', 'tblTempUsageDetail_20' ) end [2025-02-02 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382340', 'tblTempVendorCDR_20' ) start [2025-02-02 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382340', 'tblTempVendorCDR_20' ) end [2025-02-02 01:33:19] Production.INFO: ProcessCDR(1,14382340,1,1,2) [2025-02-02 01:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382340', 'tblTempUsageDetail_20' ) start [2025-02-02 01:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382340', 'tblTempUsageDetail_20' ) end [2025-02-02 01:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:33:24] Production.INFO: ==10950== Releasing lock... [2025-02-02 01:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:33:24] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 01:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:34:06 [end_date_ymd] => 2025-02-02 01:34:06 [RateCDR] => 1 ) [2025-02-02 01:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 22:34:06' and `end` < '2025-02-02 01:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 01:34:19] Production.INFO: count ==556 [2025-02-02 01:34:19] Production.ERROR: pbx CDR StartTime 2025-02-01 22:34:06 - End Time 2025-02-02 01:34:06 [2025-02-02 01:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382345', 'tblTempUsageDetail_20' ) start [2025-02-02 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382345', 'tblTempUsageDetail_20' ) end [2025-02-02 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382345', 'tblTempVendorCDR_20' ) start [2025-02-02 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382345', 'tblTempVendorCDR_20' ) end [2025-02-02 01:34:19] Production.INFO: ProcessCDR(1,14382345,1,1,2) [2025-02-02 01:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382345', 'tblTempUsageDetail_20' ) start [2025-02-02 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382345', 'tblTempUsageDetail_20' ) end [2025-02-02 01:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:34:22] Production.INFO: ==11021== Releasing lock... [2025-02-02 01:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:34:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:35:05 [end_date_ymd] => 2025-02-02 01:35:05 [RateCDR] => 1 ) [2025-02-02 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-01 22:35:05' and `end` < '2025-02-02 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-02 01:35:20] Production.INFO: count ==558 [2025-02-02 01:35:20] Production.ERROR: pbx CDR StartTime 2025-02-01 22:35:05 - End Time 2025-02-02 01:35:05 [2025-02-02 01:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382350', 'tblTempUsageDetail_20' ) start [2025-02-02 01:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382350', 'tblTempUsageDetail_20' ) end [2025-02-02 01:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382350', 'tblTempVendorCDR_20' ) start [2025-02-02 01:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382350', 'tblTempVendorCDR_20' ) end [2025-02-02 01:35:20] Production.INFO: ProcessCDR(1,14382350,1,1,2) [2025-02-02 01:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382350', 'tblTempUsageDetail_20' ) start [2025-02-02 01:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382350', 'tblTempUsageDetail_20' ) end [2025-02-02 01:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:35:23] Production.INFO: ==11090== Releasing lock... [2025-02-02 01:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:35:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 01:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:36:06 [end_date_ymd] => 2025-02-02 01:36:06 [RateCDR] => 1 ) [2025-02-02 01: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-01 22:36:06' and `end` < '2025-02-02 01: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-02 01:36:19] Production.INFO: count ==556 [2025-02-02 01:36:19] Production.ERROR: pbx CDR StartTime 2025-02-01 22:36:06 - End Time 2025-02-02 01:36:06 [2025-02-02 01:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382355', 'tblTempUsageDetail_20' ) start [2025-02-02 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382355', 'tblTempUsageDetail_20' ) end [2025-02-02 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382355', 'tblTempVendorCDR_20' ) start [2025-02-02 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382355', 'tblTempVendorCDR_20' ) end [2025-02-02 01:36:19] Production.INFO: ProcessCDR(1,14382355,1,1,2) [2025-02-02 01:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382355', 'tblTempUsageDetail_20' ) start [2025-02-02 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382355', 'tblTempUsageDetail_20' ) end [2025-02-02 01:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:36:22] Production.INFO: ==11165== Releasing lock... [2025-02-02 01:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:36:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 01:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:37:06 [end_date_ymd] => 2025-02-02 01:37:06 [RateCDR] => 1 ) [2025-02-02 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-01 22:37:06' and `end` < '2025-02-02 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-02 01:37:21] Production.INFO: count ==558 [2025-02-02 01:37:21] Production.ERROR: pbx CDR StartTime 2025-02-01 22:37:06 - End Time 2025-02-02 01:37:06 [2025-02-02 01:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382360', 'tblTempUsageDetail_20' ) start [2025-02-02 01:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382360', 'tblTempUsageDetail_20' ) end [2025-02-02 01:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382360', 'tblTempVendorCDR_20' ) start [2025-02-02 01:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382360', 'tblTempVendorCDR_20' ) end [2025-02-02 01:37:21] Production.INFO: ProcessCDR(1,14382360,1,1,2) [2025-02-02 01:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382360', 'tblTempUsageDetail_20' ) start [2025-02-02 01:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382360', 'tblTempUsageDetail_20' ) end [2025-02-02 01:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:37:24] Production.INFO: ==11237== Releasing lock... [2025-02-02 01:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:37:24] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 01:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:38:06 [end_date_ymd] => 2025-02-02 01:38:06 [RateCDR] => 1 ) [2025-02-02 01:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 22:38:06' and `end` < '2025-02-02 01:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 01:38:20] Production.INFO: count ==558 [2025-02-02 01:38:20] Production.ERROR: pbx CDR StartTime 2025-02-01 22:38:06 - End Time 2025-02-02 01:38:06 [2025-02-02 01:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382365', 'tblTempUsageDetail_20' ) start [2025-02-02 01:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382365', 'tblTempUsageDetail_20' ) end [2025-02-02 01:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382365', 'tblTempVendorCDR_20' ) start [2025-02-02 01:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382365', 'tblTempVendorCDR_20' ) end [2025-02-02 01:38:20] Production.INFO: ProcessCDR(1,14382365,1,1,2) [2025-02-02 01:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382365', 'tblTempUsageDetail_20' ) start [2025-02-02 01:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382365', 'tblTempUsageDetail_20' ) end [2025-02-02 01:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:38:24] Production.INFO: ==11348== Releasing lock... [2025-02-02 01:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:38:24] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:39:05 [end_date_ymd] => 2025-02-02 01:39:05 [RateCDR] => 1 ) [2025-02-02 01:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 22:39:05' and `end` < '2025-02-02 01:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 01:39:18] Production.INFO: count ==560 [2025-02-02 01:39:18] Production.ERROR: pbx CDR StartTime 2025-02-01 22:39:05 - End Time 2025-02-02 01:39:05 [2025-02-02 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382370', 'tblTempUsageDetail_20' ) start [2025-02-02 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382370', 'tblTempUsageDetail_20' ) end [2025-02-02 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382370', 'tblTempVendorCDR_20' ) start [2025-02-02 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382370', 'tblTempVendorCDR_20' ) end [2025-02-02 01:39:18] Production.INFO: ProcessCDR(1,14382370,1,1,2) [2025-02-02 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382370', 'tblTempUsageDetail_20' ) start [2025-02-02 01:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382370', 'tblTempUsageDetail_20' ) end [2025-02-02 01:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:39:23] Production.INFO: ==11419== Releasing lock... [2025-02-02 01:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:39:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:40:06 [end_date_ymd] => 2025-02-02 01:40:06 [RateCDR] => 1 ) [2025-02-02 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-01 22:40:06' and `end` < '2025-02-02 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-02 01:40:19] Production.INFO: count ==571 [2025-02-02 01:40:19] Production.ERROR: pbx CDR StartTime 2025-02-01 22:40:06 - End Time 2025-02-02 01:40:06 [2025-02-02 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382376', 'tblTempUsageDetail_20' ) start [2025-02-02 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382376', 'tblTempUsageDetail_20' ) end [2025-02-02 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382376', 'tblTempVendorCDR_20' ) start [2025-02-02 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382376', 'tblTempVendorCDR_20' ) end [2025-02-02 01:40:19] Production.INFO: ProcessCDR(1,14382376,1,1,2) [2025-02-02 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382376', 'tblTempUsageDetail_20' ) start [2025-02-02 01:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382376', 'tblTempUsageDetail_20' ) end [2025-02-02 01:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:40:24] Production.INFO: ==11492== Releasing lock... [2025-02-02 01:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:40:24] Production.INFO: 32.75 MB #Memory Used# [2025-02-02 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:41:05 [end_date_ymd] => 2025-02-02 01:41:05 [RateCDR] => 1 ) [2025-02-02 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-01 22:41:05' and `end` < '2025-02-02 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-02 01:41:18] Production.INFO: count ==576 [2025-02-02 01:41:18] Production.ERROR: pbx CDR StartTime 2025-02-01 22:41:05 - End Time 2025-02-02 01:41:05 [2025-02-02 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382381', 'tblTempUsageDetail_20' ) start [2025-02-02 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382381', 'tblTempUsageDetail_20' ) end [2025-02-02 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382381', 'tblTempVendorCDR_20' ) start [2025-02-02 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382381', 'tblTempVendorCDR_20' ) end [2025-02-02 01:41:18] Production.INFO: ProcessCDR(1,14382381,1,1,2) [2025-02-02 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382381', 'tblTempUsageDetail_20' ) start [2025-02-02 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382381', 'tblTempUsageDetail_20' ) end [2025-02-02 01:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:41:22] Production.INFO: ==11569== Releasing lock... [2025-02-02 01:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:41:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-02 01:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:42:06 [end_date_ymd] => 2025-02-02 01:42:06 [RateCDR] => 1 ) [2025-02-02 01:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 22:42:06' and `end` < '2025-02-02 01:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 01:42:19] Production.INFO: count ==575 [2025-02-02 01:42:19] Production.ERROR: pbx CDR StartTime 2025-02-01 22:42:06 - End Time 2025-02-02 01:42:06 [2025-02-02 01:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382386', 'tblTempUsageDetail_20' ) start [2025-02-02 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382386', 'tblTempUsageDetail_20' ) end [2025-02-02 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382386', 'tblTempVendorCDR_20' ) start [2025-02-02 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382386', 'tblTempVendorCDR_20' ) end [2025-02-02 01:42:19] Production.INFO: ProcessCDR(1,14382386,1,1,2) [2025-02-02 01:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382386', 'tblTempUsageDetail_20' ) start [2025-02-02 01:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382386', 'tblTempUsageDetail_20' ) end [2025-02-02 01:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:42:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:42:24] Production.INFO: ==11640== Releasing lock... [2025-02-02 01:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:42:24] Production.INFO: 32.75 MB #Memory Used# [2025-02-02 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:43:05 [end_date_ymd] => 2025-02-02 01:43:05 [RateCDR] => 1 ) [2025-02-02 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-01 22:43:05' and `end` < '2025-02-02 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-02 01:43:18] Production.INFO: count ==575 [2025-02-02 01:43:18] Production.ERROR: pbx CDR StartTime 2025-02-01 22:43:05 - End Time 2025-02-02 01:43:05 [2025-02-02 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382391', 'tblTempUsageDetail_20' ) start [2025-02-02 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382391', 'tblTempUsageDetail_20' ) end [2025-02-02 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382391', 'tblTempVendorCDR_20' ) start [2025-02-02 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382391', 'tblTempVendorCDR_20' ) end [2025-02-02 01:43:18] Production.INFO: ProcessCDR(1,14382391,1,1,2) [2025-02-02 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382391', 'tblTempUsageDetail_20' ) start [2025-02-02 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382391', 'tblTempUsageDetail_20' ) end [2025-02-02 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:43:22] Production.INFO: ==11714== Releasing lock... [2025-02-02 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:43:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-02 01:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:44:06 [end_date_ymd] => 2025-02-02 01:44:06 [RateCDR] => 1 ) [2025-02-02 01:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 22:44:06' and `end` < '2025-02-02 01:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 01:44:20] Production.INFO: count ==571 [2025-02-02 01:44:20] Production.ERROR: pbx CDR StartTime 2025-02-01 22:44:06 - End Time 2025-02-02 01:44:06 [2025-02-02 01:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382396', 'tblTempUsageDetail_20' ) start [2025-02-02 01:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382396', 'tblTempUsageDetail_20' ) end [2025-02-02 01:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382396', 'tblTempVendorCDR_20' ) start [2025-02-02 01:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382396', 'tblTempVendorCDR_20' ) end [2025-02-02 01:44:20] Production.INFO: ProcessCDR(1,14382396,1,1,2) [2025-02-02 01:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382396', 'tblTempUsageDetail_20' ) start [2025-02-02 01:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382396', 'tblTempUsageDetail_20' ) end [2025-02-02 01:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:44:23] Production.INFO: ==11788== Releasing lock... [2025-02-02 01:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:44:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:45:05 [end_date_ymd] => 2025-02-02 01:45:05 [RateCDR] => 1 ) [2025-02-02 01:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 22:45:05' and `end` < '2025-02-02 01:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 01:45:18] Production.INFO: count ==572 [2025-02-02 01:45:18] Production.ERROR: pbx CDR StartTime 2025-02-01 22:45:05 - End Time 2025-02-02 01:45:05 [2025-02-02 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382401', 'tblTempUsageDetail_20' ) start [2025-02-02 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382401', 'tblTempUsageDetail_20' ) end [2025-02-02 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382401', 'tblTempVendorCDR_20' ) start [2025-02-02 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382401', 'tblTempVendorCDR_20' ) end [2025-02-02 01:45:18] Production.INFO: ProcessCDR(1,14382401,1,1,2) [2025-02-02 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382401', 'tblTempUsageDetail_20' ) start [2025-02-02 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382401', 'tblTempUsageDetail_20' ) end [2025-02-02 01:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:45:22] Production.INFO: ==11861== Releasing lock... [2025-02-02 01:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:45:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 01:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:46:06 [end_date_ymd] => 2025-02-02 01:46:06 [RateCDR] => 1 ) [2025-02-02 01:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 22:46:06' and `end` < '2025-02-02 01:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 01:46:19] Production.INFO: count ==570 [2025-02-02 01:46:19] Production.ERROR: pbx CDR StartTime 2025-02-01 22:46:06 - End Time 2025-02-02 01:46:06 [2025-02-02 01:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382406', 'tblTempUsageDetail_20' ) start [2025-02-02 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382406', 'tblTempUsageDetail_20' ) end [2025-02-02 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382406', 'tblTempVendorCDR_20' ) start [2025-02-02 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382406', 'tblTempVendorCDR_20' ) end [2025-02-02 01:46:19] Production.INFO: ProcessCDR(1,14382406,1,1,2) [2025-02-02 01:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382406', 'tblTempUsageDetail_20' ) start [2025-02-02 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382406', 'tblTempUsageDetail_20' ) end [2025-02-02 01:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:46:22] Production.INFO: ==11936== Releasing lock... [2025-02-02 01:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:46:22] Production.INFO: 33 MB #Memory Used# [2025-02-02 01:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:47:06 [end_date_ymd] => 2025-02-02 01:47:06 [RateCDR] => 1 ) [2025-02-02 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-01 22:47:06' and `end` < '2025-02-02 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-02 01:47:20] Production.INFO: count ==573 [2025-02-02 01:47:20] Production.ERROR: pbx CDR StartTime 2025-02-01 22:47:06 - End Time 2025-02-02 01:47:06 [2025-02-02 01:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382411', 'tblTempUsageDetail_20' ) start [2025-02-02 01:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382411', 'tblTempUsageDetail_20' ) end [2025-02-02 01:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382411', 'tblTempVendorCDR_20' ) start [2025-02-02 01:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382411', 'tblTempVendorCDR_20' ) end [2025-02-02 01:47:20] Production.INFO: ProcessCDR(1,14382411,1,1,2) [2025-02-02 01:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382411', 'tblTempUsageDetail_20' ) start [2025-02-02 01:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382411', 'tblTempUsageDetail_20' ) end [2025-02-02 01:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:47:24] Production.INFO: ==12011== Releasing lock... [2025-02-02 01:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:47:24] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 01:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:48:06 [end_date_ymd] => 2025-02-02 01:48:06 [RateCDR] => 1 ) [2025-02-02 01:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 22:48:06' and `end` < '2025-02-02 01:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 01:48:20] Production.INFO: count ==578 [2025-02-02 01:48:20] Production.ERROR: pbx CDR StartTime 2025-02-01 22:48:06 - End Time 2025-02-02 01:48:06 [2025-02-02 01:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382416', 'tblTempUsageDetail_20' ) start [2025-02-02 01:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382416', 'tblTempUsageDetail_20' ) end [2025-02-02 01:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382416', 'tblTempVendorCDR_20' ) start [2025-02-02 01:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382416', 'tblTempVendorCDR_20' ) end [2025-02-02 01:48:20] Production.INFO: ProcessCDR(1,14382416,1,1,2) [2025-02-02 01:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382416', 'tblTempUsageDetail_20' ) start [2025-02-02 01:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382416', 'tblTempUsageDetail_20' ) end [2025-02-02 01:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:48:24] Production.INFO: ==12083== Releasing lock... [2025-02-02 01:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:48:24] Production.INFO: 32.75 MB #Memory Used# [2025-02-02 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:49:05 [end_date_ymd] => 2025-02-02 01:49:05 [RateCDR] => 1 ) [2025-02-02 01:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 22:49:05' and `end` < '2025-02-02 01:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 01:49:18] Production.INFO: count ==578 [2025-02-02 01:49:18] Production.ERROR: pbx CDR StartTime 2025-02-01 22:49:05 - End Time 2025-02-02 01:49:05 [2025-02-02 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382421', 'tblTempUsageDetail_20' ) start [2025-02-02 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382421', 'tblTempUsageDetail_20' ) end [2025-02-02 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382421', 'tblTempVendorCDR_20' ) start [2025-02-02 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382421', 'tblTempVendorCDR_20' ) end [2025-02-02 01:49:18] Production.INFO: ProcessCDR(1,14382421,1,1,2) [2025-02-02 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382421', 'tblTempUsageDetail_20' ) start [2025-02-02 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382421', 'tblTempUsageDetail_20' ) end [2025-02-02 01:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:49:22] Production.INFO: ==12153== Releasing lock... [2025-02-02 01:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:49:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-02 01:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:50:07 [end_date_ymd] => 2025-02-02 01:50:07 [RateCDR] => 1 ) [2025-02-02 01: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-01 22:50:07' and `end` < '2025-02-02 01: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-02 01:50:21] Production.INFO: count ==588 [2025-02-02 01:50:21] Production.ERROR: pbx CDR StartTime 2025-02-01 22:50:07 - End Time 2025-02-02 01:50:07 [2025-02-02 01:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382427', 'tblTempUsageDetail_20' ) start [2025-02-02 01:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382427', 'tblTempUsageDetail_20' ) end [2025-02-02 01:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382427', 'tblTempVendorCDR_20' ) start [2025-02-02 01:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382427', 'tblTempVendorCDR_20' ) end [2025-02-02 01:50:21] Production.INFO: ProcessCDR(1,14382427,1,1,2) [2025-02-02 01:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382427', 'tblTempUsageDetail_20' ) start [2025-02-02 01:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382427', 'tblTempUsageDetail_20' ) end [2025-02-02 01:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:50:25] Production.INFO: ==12228== Releasing lock... [2025-02-02 01:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:50:25] Production.INFO: 32.25 MB #Memory Used# [2025-02-02 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:51:05 [end_date_ymd] => 2025-02-02 01:51:05 [RateCDR] => 1 ) [2025-02-02 01:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 22:51:05' and `end` < '2025-02-02 01:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 01:51:18] Production.INFO: count ==590 [2025-02-02 01:51:19] Production.ERROR: pbx CDR StartTime 2025-02-01 22:51:05 - End Time 2025-02-02 01:51:05 [2025-02-02 01:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382432', 'tblTempUsageDetail_20' ) start [2025-02-02 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382432', 'tblTempUsageDetail_20' ) end [2025-02-02 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382432', 'tblTempVendorCDR_20' ) start [2025-02-02 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382432', 'tblTempVendorCDR_20' ) end [2025-02-02 01:51:19] Production.INFO: ProcessCDR(1,14382432,1,1,2) [2025-02-02 01:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382432', 'tblTempUsageDetail_20' ) start [2025-02-02 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382432', 'tblTempUsageDetail_20' ) end [2025-02-02 01:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:51:22] Production.INFO: ==12301== Releasing lock... [2025-02-02 01:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:51:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-02 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:52:05 [end_date_ymd] => 2025-02-02 01:52:05 [RateCDR] => 1 ) [2025-02-02 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-01 22:52:05' and `end` < '2025-02-02 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-02 01:52:19] Production.INFO: count ==591 [2025-02-02 01:52:19] Production.ERROR: pbx CDR StartTime 2025-02-01 22:52:05 - End Time 2025-02-02 01:52:05 [2025-02-02 01:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382437', 'tblTempUsageDetail_20' ) start [2025-02-02 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382437', 'tblTempUsageDetail_20' ) end [2025-02-02 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382437', 'tblTempVendorCDR_20' ) start [2025-02-02 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382437', 'tblTempVendorCDR_20' ) end [2025-02-02 01:52:19] Production.INFO: ProcessCDR(1,14382437,1,1,2) [2025-02-02 01:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382437', 'tblTempUsageDetail_20' ) start [2025-02-02 01:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382437', 'tblTempUsageDetail_20' ) end [2025-02-02 01:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:52:24] Production.INFO: ==12374== Releasing lock... [2025-02-02 01:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:52:24] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:53:05 [end_date_ymd] => 2025-02-02 01:53:05 [RateCDR] => 1 ) [2025-02-02 01:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 22:53:05' and `end` < '2025-02-02 01:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 01:53:20] Production.INFO: count ==591 [2025-02-02 01:53:20] Production.ERROR: pbx CDR StartTime 2025-02-01 22:53:05 - End Time 2025-02-02 01:53:05 [2025-02-02 01:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382442', 'tblTempUsageDetail_20' ) start [2025-02-02 01:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382442', 'tblTempUsageDetail_20' ) end [2025-02-02 01:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382442', 'tblTempVendorCDR_20' ) start [2025-02-02 01:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382442', 'tblTempVendorCDR_20' ) end [2025-02-02 01:53:20] Production.INFO: ProcessCDR(1,14382442,1,1,2) [2025-02-02 01:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382442', 'tblTempUsageDetail_20' ) start [2025-02-02 01:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382442', 'tblTempUsageDetail_20' ) end [2025-02-02 01:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:53:24] Production.INFO: ==12488== Releasing lock... [2025-02-02 01:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:53:24] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 01:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:54:06 [end_date_ymd] => 2025-02-02 01:54:06 [RateCDR] => 1 ) [2025-02-02 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-01 22:54:06' and `end` < '2025-02-02 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-02 01:54:19] Production.INFO: count ==591 [2025-02-02 01:54:19] Production.ERROR: pbx CDR StartTime 2025-02-01 22:54:06 - End Time 2025-02-02 01:54:06 [2025-02-02 01:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382447', 'tblTempUsageDetail_20' ) start [2025-02-02 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382447', 'tblTempUsageDetail_20' ) end [2025-02-02 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382447', 'tblTempVendorCDR_20' ) start [2025-02-02 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382447', 'tblTempVendorCDR_20' ) end [2025-02-02 01:54:19] Production.INFO: ProcessCDR(1,14382447,1,1,2) [2025-02-02 01:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382447', 'tblTempUsageDetail_20' ) start [2025-02-02 01:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382447', 'tblTempUsageDetail_20' ) end [2025-02-02 01:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:54:23] Production.INFO: ==12561== Releasing lock... [2025-02-02 01:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:54:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 01:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:55:06 [end_date_ymd] => 2025-02-02 01:55:06 [RateCDR] => 1 ) [2025-02-02 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-01 22:55:06' and `end` < '2025-02-02 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-02 01:55:19] Production.INFO: count ==594 [2025-02-02 01:55:19] Production.ERROR: pbx CDR StartTime 2025-02-01 22:55:06 - End Time 2025-02-02 01:55:06 [2025-02-02 01:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382452', 'tblTempUsageDetail_20' ) start [2025-02-02 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382452', 'tblTempUsageDetail_20' ) end [2025-02-02 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382452', 'tblTempVendorCDR_20' ) start [2025-02-02 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382452', 'tblTempVendorCDR_20' ) end [2025-02-02 01:55:19] Production.INFO: ProcessCDR(1,14382452,1,1,2) [2025-02-02 01:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382452', 'tblTempUsageDetail_20' ) start [2025-02-02 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382452', 'tblTempUsageDetail_20' ) end [2025-02-02 01:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:55:22] Production.INFO: ==12632== Releasing lock... [2025-02-02 01:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:55:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-02 01:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:56:06 [end_date_ymd] => 2025-02-02 01:56:06 [RateCDR] => 1 ) [2025-02-02 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-01 22:56:06' and `end` < '2025-02-02 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-02 01:56:20] Production.INFO: count ==594 [2025-02-02 01:56:20] Production.ERROR: pbx CDR StartTime 2025-02-01 22:56:06 - End Time 2025-02-02 01:56:06 [2025-02-02 01:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382457', 'tblTempUsageDetail_20' ) start [2025-02-02 01:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382457', 'tblTempUsageDetail_20' ) end [2025-02-02 01:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382457', 'tblTempVendorCDR_20' ) start [2025-02-02 01:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382457', 'tblTempVendorCDR_20' ) end [2025-02-02 01:56:20] Production.INFO: ProcessCDR(1,14382457,1,1,2) [2025-02-02 01:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382457', 'tblTempUsageDetail_20' ) start [2025-02-02 01:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382457', 'tblTempUsageDetail_20' ) end [2025-02-02 01:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:56:24] Production.INFO: ==12706== Releasing lock... [2025-02-02 01:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:56:24] Production.INFO: 32.75 MB #Memory Used# [2025-02-02 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:57:05 [end_date_ymd] => 2025-02-02 01:57:05 [RateCDR] => 1 ) [2025-02-02 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-01 22:57:05' and `end` < '2025-02-02 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-02 01:57:18] Production.INFO: count ==590 [2025-02-02 01:57:18] Production.ERROR: pbx CDR StartTime 2025-02-01 22:57:05 - End Time 2025-02-02 01:57:05 [2025-02-02 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382462', 'tblTempUsageDetail_20' ) start [2025-02-02 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382462', 'tblTempUsageDetail_20' ) end [2025-02-02 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382462', 'tblTempVendorCDR_20' ) start [2025-02-02 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382462', 'tblTempVendorCDR_20' ) end [2025-02-02 01:57:18] Production.INFO: ProcessCDR(1,14382462,1,1,2) [2025-02-02 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382462', 'tblTempUsageDetail_20' ) start [2025-02-02 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382462', 'tblTempUsageDetail_20' ) end [2025-02-02 01:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:57:22] Production.INFO: ==12776== Releasing lock... [2025-02-02 01:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:57:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-02 01:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:58:06 [end_date_ymd] => 2025-02-02 01:58:06 [RateCDR] => 1 ) [2025-02-02 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-01 22:58:06' and `end` < '2025-02-02 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-02 01:58:20] Production.INFO: count ==590 [2025-02-02 01:58:20] Production.ERROR: pbx CDR StartTime 2025-02-01 22:58:06 - End Time 2025-02-02 01:58:06 [2025-02-02 01:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382467', 'tblTempUsageDetail_20' ) start [2025-02-02 01:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382467', 'tblTempUsageDetail_20' ) end [2025-02-02 01:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382467', 'tblTempVendorCDR_20' ) start [2025-02-02 01:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382467', 'tblTempVendorCDR_20' ) end [2025-02-02 01:58:20] Production.INFO: ProcessCDR(1,14382467,1,1,2) [2025-02-02 01:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382467', 'tblTempUsageDetail_20' ) start [2025-02-02 01:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382467', 'tblTempUsageDetail_20' ) end [2025-02-02 01:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:58:23] Production.INFO: ==12850== Releasing lock... [2025-02-02 01:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:58:23] Production.INFO: 32.75 MB #Memory Used# [2025-02-02 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 22:59:05 [end_date_ymd] => 2025-02-02 01:59:05 [RateCDR] => 1 ) [2025-02-02 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-01 22:59:05' and `end` < '2025-02-02 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-02 01:59:19] Production.INFO: count ==591 [2025-02-02 01:59:19] Production.ERROR: pbx CDR StartTime 2025-02-01 22:59:05 - End Time 2025-02-02 01:59:05 [2025-02-02 01:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382472', 'tblTempUsageDetail_20' ) start [2025-02-02 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382472', 'tblTempUsageDetail_20' ) end [2025-02-02 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382472', 'tblTempVendorCDR_20' ) start [2025-02-02 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382472', 'tblTempVendorCDR_20' ) end [2025-02-02 01:59:19] Production.INFO: ProcessCDR(1,14382472,1,1,2) [2025-02-02 01:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 01:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 01:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382472', 'tblTempUsageDetail_20' ) start [2025-02-02 01:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382472', 'tblTempUsageDetail_20' ) end [2025-02-02 01:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 01:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 01:59:24] Production.INFO: ==12923== Releasing lock... [2025-02-02 01:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 01:59:24] Production.INFO: 32.75 MB #Memory Used# [2025-02-02 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:00:07 [end_date_ymd] => 2025-02-02 02:00:07 [RateCDR] => 1 ) [2025-02-02 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-01 23:00:07' and `end` < '2025-02-02 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-02 02:00:20] Production.INFO: count ==605 [2025-02-02 02:00:20] Production.ERROR: pbx CDR StartTime 2025-02-01 23:00:07 - End Time 2025-02-02 02:00:07 [2025-02-02 02:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382477', 'tblTempUsageDetail_20' ) start [2025-02-02 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382477', 'tblTempUsageDetail_20' ) end [2025-02-02 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382477', 'tblTempVendorCDR_20' ) start [2025-02-02 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382477', 'tblTempVendorCDR_20' ) end [2025-02-02 02:00:20] Production.INFO: ProcessCDR(1,14382477,1,1,2) [2025-02-02 02:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382477', 'tblTempUsageDetail_20' ) start [2025-02-02 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382477', 'tblTempUsageDetail_20' ) end [2025-02-02 02:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:00:24] Production.INFO: ==13002== Releasing lock... [2025-02-02 02:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:00:24] Production.INFO: 32.75 MB #Memory Used# [2025-02-02 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:01:05 [end_date_ymd] => 2025-02-02 02:01:05 [RateCDR] => 1 ) [2025-02-02 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-01 23:01:05' and `end` < '2025-02-02 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-02 02:01:17] Production.INFO: count ==625 [2025-02-02 02:01:18] Production.ERROR: pbx CDR StartTime 2025-02-01 23:01:05 - End Time 2025-02-02 02:01:05 [2025-02-02 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382483', 'tblTempUsageDetail_20' ) start [2025-02-02 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382483', 'tblTempUsageDetail_20' ) end [2025-02-02 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382483', 'tblTempVendorCDR_20' ) start [2025-02-02 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382483', 'tblTempVendorCDR_20' ) end [2025-02-02 02:01:18] Production.INFO: ProcessCDR(1,14382483,1,1,2) [2025-02-02 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382483', 'tblTempUsageDetail_20' ) start [2025-02-02 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382483', 'tblTempUsageDetail_20' ) end [2025-02-02 02:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:01:21] Production.INFO: ==13181== Releasing lock... [2025-02-02 02:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:01:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 02:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:02:06 [end_date_ymd] => 2025-02-02 02:02:06 [RateCDR] => 1 ) [2025-02-02 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-01 23:02:06' and `end` < '2025-02-02 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-02 02:02:20] Production.INFO: count ==625 [2025-02-02 02:02:20] Production.ERROR: pbx CDR StartTime 2025-02-01 23:02:06 - End Time 2025-02-02 02:02:06 [2025-02-02 02:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382488', 'tblTempUsageDetail_20' ) start [2025-02-02 02:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382488', 'tblTempUsageDetail_20' ) end [2025-02-02 02:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382488', 'tblTempVendorCDR_20' ) start [2025-02-02 02:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382488', 'tblTempVendorCDR_20' ) end [2025-02-02 02:02:20] Production.INFO: ProcessCDR(1,14382488,1,1,2) [2025-02-02 02:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382488', 'tblTempUsageDetail_20' ) start [2025-02-02 02:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382488', 'tblTempUsageDetail_20' ) end [2025-02-02 02:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:02:23] Production.INFO: ==13254== Releasing lock... [2025-02-02 02:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:02:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 02:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:03:06 [end_date_ymd] => 2025-02-02 02:03:06 [RateCDR] => 1 ) [2025-02-02 02:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 23:03:06' and `end` < '2025-02-02 02:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 02:03:18] Production.INFO: count ==625 [2025-02-02 02:03:19] Production.ERROR: pbx CDR StartTime 2025-02-01 23:03:06 - End Time 2025-02-02 02:03:06 [2025-02-02 02:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382493', 'tblTempUsageDetail_20' ) start [2025-02-02 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382493', 'tblTempUsageDetail_20' ) end [2025-02-02 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382493', 'tblTempVendorCDR_20' ) start [2025-02-02 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382493', 'tblTempVendorCDR_20' ) end [2025-02-02 02:03:19] Production.INFO: ProcessCDR(1,14382493,1,1,2) [2025-02-02 02:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382493', 'tblTempUsageDetail_20' ) start [2025-02-02 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382493', 'tblTempUsageDetail_20' ) end [2025-02-02 02:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:03:22] Production.INFO: ==13339== Releasing lock... [2025-02-02 02:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:03:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 02:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:04:06 [end_date_ymd] => 2025-02-02 02:04:06 [RateCDR] => 1 ) [2025-02-02 02:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 23:04:06' and `end` < '2025-02-02 02: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-02 02:04:21] Production.INFO: count ==625 [2025-02-02 02:04:21] Production.ERROR: pbx CDR StartTime 2025-02-01 23:04:06 - End Time 2025-02-02 02:04:06 [2025-02-02 02:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382498', 'tblTempUsageDetail_20' ) start [2025-02-02 02:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382498', 'tblTempUsageDetail_20' ) end [2025-02-02 02:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382498', 'tblTempVendorCDR_20' ) start [2025-02-02 02:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382498', 'tblTempVendorCDR_20' ) end [2025-02-02 02:04:21] Production.INFO: ProcessCDR(1,14382498,1,1,2) [2025-02-02 02:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382498', 'tblTempUsageDetail_20' ) start [2025-02-02 02:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382498', 'tblTempUsageDetail_20' ) end [2025-02-02 02:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:04:24] Production.INFO: ==13420== Releasing lock... [2025-02-02 02:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:04:24] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:05:05 [end_date_ymd] => 2025-02-02 02:05:05 [RateCDR] => 1 ) [2025-02-02 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-01 23:05:05' and `end` < '2025-02-02 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-02 02:05:19] Production.INFO: count ==617 [2025-02-02 02:05:19] Production.ERROR: pbx CDR StartTime 2025-02-01 23:05:05 - End Time 2025-02-02 02:05:05 [2025-02-02 02:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382503', 'tblTempUsageDetail_20' ) start [2025-02-02 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382503', 'tblTempUsageDetail_20' ) end [2025-02-02 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382503', 'tblTempVendorCDR_20' ) start [2025-02-02 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382503', 'tblTempVendorCDR_20' ) end [2025-02-02 02:05:19] Production.INFO: ProcessCDR(1,14382503,1,1,2) [2025-02-02 02:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382503', 'tblTempUsageDetail_20' ) start [2025-02-02 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382503', 'tblTempUsageDetail_20' ) end [2025-02-02 02:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:05:22] Production.INFO: ==13506== Releasing lock... [2025-02-02 02:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:05:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 02:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:06:06 [end_date_ymd] => 2025-02-02 02:06:06 [RateCDR] => 1 ) [2025-02-02 02:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 23:06:06' and `end` < '2025-02-02 02:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 02:06:18] Production.INFO: count ==614 [2025-02-02 02:06:18] Production.ERROR: pbx CDR StartTime 2025-02-01 23:06:06 - End Time 2025-02-02 02:06:06 [2025-02-02 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382508', 'tblTempUsageDetail_20' ) start [2025-02-02 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382508', 'tblTempUsageDetail_20' ) end [2025-02-02 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382508', 'tblTempVendorCDR_20' ) start [2025-02-02 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382508', 'tblTempVendorCDR_20' ) end [2025-02-02 02:06:18] Production.INFO: ProcessCDR(1,14382508,1,1,2) [2025-02-02 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382508', 'tblTempUsageDetail_20' ) start [2025-02-02 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382508', 'tblTempUsageDetail_20' ) end [2025-02-02 02:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:06:22] Production.INFO: ==13587== Releasing lock... [2025-02-02 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:06:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:07:05 [end_date_ymd] => 2025-02-02 02:07:05 [RateCDR] => 1 ) [2025-02-02 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-01 23:07:05' and `end` < '2025-02-02 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-02 02:07:20] Production.INFO: count ==614 [2025-02-02 02:07:20] Production.ERROR: pbx CDR StartTime 2025-02-01 23:07:05 - End Time 2025-02-02 02:07:05 [2025-02-02 02:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382513', 'tblTempUsageDetail_20' ) start [2025-02-02 02:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382513', 'tblTempUsageDetail_20' ) end [2025-02-02 02:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382513', 'tblTempVendorCDR_20' ) start [2025-02-02 02:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382513', 'tblTempVendorCDR_20' ) end [2025-02-02 02:07:20] Production.INFO: ProcessCDR(1,14382513,1,1,2) [2025-02-02 02:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382513', 'tblTempUsageDetail_20' ) start [2025-02-02 02:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382513', 'tblTempUsageDetail_20' ) end [2025-02-02 02:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:07:23] Production.INFO: ==13663== Releasing lock... [2025-02-02 02:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:07:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 02:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:08:05 [end_date_ymd] => 2025-02-02 02:08:05 [RateCDR] => 1 ) [2025-02-02 02:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 23:08:05' and `end` < '2025-02-02 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-02 02:08:18] Production.INFO: count ==614 [2025-02-02 02:08:18] Production.ERROR: pbx CDR StartTime 2025-02-01 23:08:05 - End Time 2025-02-02 02:08:05 [2025-02-02 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382518', 'tblTempUsageDetail_20' ) start [2025-02-02 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382518', 'tblTempUsageDetail_20' ) end [2025-02-02 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382518', 'tblTempVendorCDR_20' ) start [2025-02-02 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382518', 'tblTempVendorCDR_20' ) end [2025-02-02 02:08:19] Production.INFO: ProcessCDR(1,14382518,1,1,2) [2025-02-02 02:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382518', 'tblTempUsageDetail_20' ) start [2025-02-02 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382518', 'tblTempUsageDetail_20' ) end [2025-02-02 02:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:08:22] Production.INFO: ==13736== Releasing lock... [2025-02-02 02:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:08:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:09:05 [end_date_ymd] => 2025-02-02 02:09:05 [RateCDR] => 1 ) [2025-02-02 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-01 23:09:05' and `end` < '2025-02-02 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-02 02:09:19] Production.INFO: count ==614 [2025-02-02 02:09:19] Production.ERROR: pbx CDR StartTime 2025-02-01 23:09:05 - End Time 2025-02-02 02:09:05 [2025-02-02 02:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382523', 'tblTempUsageDetail_20' ) start [2025-02-02 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382523', 'tblTempUsageDetail_20' ) end [2025-02-02 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382523', 'tblTempVendorCDR_20' ) start [2025-02-02 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382523', 'tblTempVendorCDR_20' ) end [2025-02-02 02:09:19] Production.INFO: ProcessCDR(1,14382523,1,1,2) [2025-02-02 02:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382523', 'tblTempUsageDetail_20' ) start [2025-02-02 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382523', 'tblTempUsageDetail_20' ) end [2025-02-02 02:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:09:22] Production.INFO: ==13848== Releasing lock... [2025-02-02 02:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:09:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:10:06 [end_date_ymd] => 2025-02-02 02:10:06 [RateCDR] => 1 ) [2025-02-02 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-01 23:10:06' and `end` < '2025-02-02 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-02 02:10:19] Production.INFO: count ==622 [2025-02-02 02:10:19] Production.ERROR: pbx CDR StartTime 2025-02-01 23:10:06 - End Time 2025-02-02 02:10:06 [2025-02-02 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382528', 'tblTempUsageDetail_20' ) start [2025-02-02 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382528', 'tblTempUsageDetail_20' ) end [2025-02-02 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382528', 'tblTempVendorCDR_20' ) start [2025-02-02 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382528', 'tblTempVendorCDR_20' ) end [2025-02-02 02:10:19] Production.INFO: ProcessCDR(1,14382528,1,1,2) [2025-02-02 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382528', 'tblTempUsageDetail_20' ) start [2025-02-02 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382528', 'tblTempUsageDetail_20' ) end [2025-02-02 02:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:10:22] Production.INFO: ==13922== Releasing lock... [2025-02-02 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:10:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:11:05 [end_date_ymd] => 2025-02-02 02:11:05 [RateCDR] => 1 ) [2025-02-02 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-01 23:11:05' and `end` < '2025-02-02 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-02 02:11:20] Production.INFO: count ==626 [2025-02-02 02:11:20] Production.ERROR: pbx CDR StartTime 2025-02-01 23:11:05 - End Time 2025-02-02 02:11:05 [2025-02-02 02:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382534', 'tblTempUsageDetail_20' ) start [2025-02-02 02:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382534', 'tblTempUsageDetail_20' ) end [2025-02-02 02:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382534', 'tblTempVendorCDR_20' ) start [2025-02-02 02:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382534', 'tblTempVendorCDR_20' ) end [2025-02-02 02:11:20] Production.INFO: ProcessCDR(1,14382534,1,1,2) [2025-02-02 02:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382534', 'tblTempUsageDetail_20' ) start [2025-02-02 02:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382534', 'tblTempUsageDetail_20' ) end [2025-02-02 02:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:11:23] Production.INFO: ==13998== Releasing lock... [2025-02-02 02:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:11:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:12:05 [end_date_ymd] => 2025-02-02 02:12:05 [RateCDR] => 1 ) [2025-02-02 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-01 23:12:05' and `end` < '2025-02-02 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-02 02:12:18] Production.INFO: count ==626 [2025-02-02 02:12:18] Production.ERROR: pbx CDR StartTime 2025-02-01 23:12:05 - End Time 2025-02-02 02:12:05 [2025-02-02 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382539', 'tblTempUsageDetail_20' ) start [2025-02-02 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382539', 'tblTempUsageDetail_20' ) end [2025-02-02 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382539', 'tblTempVendorCDR_20' ) start [2025-02-02 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382539', 'tblTempVendorCDR_20' ) end [2025-02-02 02:12:18] Production.INFO: ProcessCDR(1,14382539,1,1,2) [2025-02-02 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382539', 'tblTempUsageDetail_20' ) start [2025-02-02 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382539', 'tblTempUsageDetail_20' ) end [2025-02-02 02:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:12:22] Production.INFO: ==14069== Releasing lock... [2025-02-02 02:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:12:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:13:05 [end_date_ymd] => 2025-02-02 02:13:05 [RateCDR] => 1 ) [2025-02-02 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-01 23:13:05' and `end` < '2025-02-02 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-02 02:13:17] Production.INFO: count ==626 [2025-02-02 02:13:17] Production.ERROR: pbx CDR StartTime 2025-02-01 23:13:05 - End Time 2025-02-02 02:13:05 [2025-02-02 02:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382544', 'tblTempUsageDetail_20' ) start [2025-02-02 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382544', 'tblTempUsageDetail_20' ) end [2025-02-02 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382544', 'tblTempVendorCDR_20' ) start [2025-02-02 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382544', 'tblTempVendorCDR_20' ) end [2025-02-02 02:13:18] Production.INFO: ProcessCDR(1,14382544,1,1,2) [2025-02-02 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382544', 'tblTempUsageDetail_20' ) start [2025-02-02 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382544', 'tblTempUsageDetail_20' ) end [2025-02-02 02:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:13:21] Production.INFO: ==14140== Releasing lock... [2025-02-02 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:13:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:14:05 [end_date_ymd] => 2025-02-02 02:14:05 [RateCDR] => 1 ) [2025-02-02 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-01 23:14:05' and `end` < '2025-02-02 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-02 02:14:18] Production.INFO: count ==626 [2025-02-02 02:14:18] Production.ERROR: pbx CDR StartTime 2025-02-01 23:14:05 - End Time 2025-02-02 02:14:05 [2025-02-02 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382549', 'tblTempUsageDetail_20' ) start [2025-02-02 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382549', 'tblTempUsageDetail_20' ) end [2025-02-02 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382549', 'tblTempVendorCDR_20' ) start [2025-02-02 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382549', 'tblTempVendorCDR_20' ) end [2025-02-02 02:14:18] Production.INFO: ProcessCDR(1,14382549,1,1,2) [2025-02-02 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382549', 'tblTempUsageDetail_20' ) start [2025-02-02 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382549', 'tblTempUsageDetail_20' ) end [2025-02-02 02:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:14:22] Production.INFO: ==14214== Releasing lock... [2025-02-02 02:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:14:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:15:05 [end_date_ymd] => 2025-02-02 02:15:05 [RateCDR] => 1 ) [2025-02-02 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-01 23:15:05' and `end` < '2025-02-02 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-02 02:15:18] Production.INFO: count ==626 [2025-02-02 02:15:18] Production.ERROR: pbx CDR StartTime 2025-02-01 23:15:05 - End Time 2025-02-02 02:15:05 [2025-02-02 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382554', 'tblTempUsageDetail_20' ) start [2025-02-02 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382554', 'tblTempUsageDetail_20' ) end [2025-02-02 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382554', 'tblTempVendorCDR_20' ) start [2025-02-02 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382554', 'tblTempVendorCDR_20' ) end [2025-02-02 02:15:18] Production.INFO: ProcessCDR(1,14382554,1,1,2) [2025-02-02 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382554', 'tblTempUsageDetail_20' ) start [2025-02-02 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382554', 'tblTempUsageDetail_20' ) end [2025-02-02 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:15:21] Production.INFO: ==14285== Releasing lock... [2025-02-02 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:15:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:16:05 [end_date_ymd] => 2025-02-02 02:16:05 [RateCDR] => 1 ) [2025-02-02 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-01 23:16:05' and `end` < '2025-02-02 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-02 02:16:18] Production.INFO: count ==623 [2025-02-02 02:16:18] Production.ERROR: pbx CDR StartTime 2025-02-01 23:16:05 - End Time 2025-02-02 02:16:05 [2025-02-02 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382559', 'tblTempUsageDetail_20' ) start [2025-02-02 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382559', 'tblTempUsageDetail_20' ) end [2025-02-02 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382559', 'tblTempVendorCDR_20' ) start [2025-02-02 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382559', 'tblTempVendorCDR_20' ) end [2025-02-02 02:16:18] Production.INFO: ProcessCDR(1,14382559,1,1,2) [2025-02-02 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382559', 'tblTempUsageDetail_20' ) start [2025-02-02 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382559', 'tblTempUsageDetail_20' ) end [2025-02-02 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:16:21] Production.INFO: ==14359== Releasing lock... [2025-02-02 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:16:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 02:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:17:06 [end_date_ymd] => 2025-02-02 02:17:06 [RateCDR] => 1 ) [2025-02-02 02:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 23:17:06' and `end` < '2025-02-02 02:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 02:17:19] Production.INFO: count ==623 [2025-02-02 02:17:19] Production.ERROR: pbx CDR StartTime 2025-02-01 23:17:06 - End Time 2025-02-02 02:17:06 [2025-02-02 02:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382564', 'tblTempUsageDetail_20' ) start [2025-02-02 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382564', 'tblTempUsageDetail_20' ) end [2025-02-02 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382564', 'tblTempVendorCDR_20' ) start [2025-02-02 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382564', 'tblTempVendorCDR_20' ) end [2025-02-02 02:17:19] Production.INFO: ProcessCDR(1,14382564,1,1,2) [2025-02-02 02:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382564', 'tblTempUsageDetail_20' ) start [2025-02-02 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382564', 'tblTempUsageDetail_20' ) end [2025-02-02 02:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:17:22] Production.INFO: ==14428== Releasing lock... [2025-02-02 02:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:17:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:18:05 [end_date_ymd] => 2025-02-02 02:18:05 [RateCDR] => 1 ) [2025-02-02 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-01 23:18:05' and `end` < '2025-02-02 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-02 02:18:19] Production.INFO: count ==622 [2025-02-02 02:18:19] Production.ERROR: pbx CDR StartTime 2025-02-01 23:18:05 - End Time 2025-02-02 02:18:05 [2025-02-02 02:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382569', 'tblTempUsageDetail_20' ) start [2025-02-02 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382569', 'tblTempUsageDetail_20' ) end [2025-02-02 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382569', 'tblTempVendorCDR_20' ) start [2025-02-02 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382569', 'tblTempVendorCDR_20' ) end [2025-02-02 02:18:19] Production.INFO: ProcessCDR(1,14382569,1,1,2) [2025-02-02 02:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382569', 'tblTempUsageDetail_20' ) start [2025-02-02 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382569', 'tblTempUsageDetail_20' ) end [2025-02-02 02:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:18:22] Production.INFO: ==14501== Releasing lock... [2025-02-02 02:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:18:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-02 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:19:05 [end_date_ymd] => 2025-02-02 02:19:05 [RateCDR] => 1 ) [2025-02-02 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-01 23:19:05' and `end` < '2025-02-02 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-02 02:19:18] Production.INFO: count ==621 [2025-02-02 02:19:18] Production.ERROR: pbx CDR StartTime 2025-02-01 23:19:05 - End Time 2025-02-02 02:19:05 [2025-02-02 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382574', 'tblTempUsageDetail_20' ) start [2025-02-02 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382574', 'tblTempUsageDetail_20' ) end [2025-02-02 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382574', 'tblTempVendorCDR_20' ) start [2025-02-02 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382574', 'tblTempVendorCDR_20' ) end [2025-02-02 02:19:18] Production.INFO: ProcessCDR(1,14382574,1,1,2) [2025-02-02 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382574', 'tblTempUsageDetail_20' ) start [2025-02-02 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382574', 'tblTempUsageDetail_20' ) end [2025-02-02 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:19:21] Production.INFO: ==14573== Releasing lock... [2025-02-02 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:19:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-02 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:20:06 [end_date_ymd] => 2025-02-02 02:20:06 [RateCDR] => 1 ) [2025-02-02 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-01 23:20:06' and `end` < '2025-02-02 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-02 02:20:18] Production.INFO: count ==629 [2025-02-02 02:20:18] Production.ERROR: pbx CDR StartTime 2025-02-01 23:20:06 - End Time 2025-02-02 02:20:06 [2025-02-02 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382580', 'tblTempUsageDetail_20' ) start [2025-02-02 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382580', 'tblTempUsageDetail_20' ) end [2025-02-02 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382580', 'tblTempVendorCDR_20' ) start [2025-02-02 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382580', 'tblTempVendorCDR_20' ) end [2025-02-02 02:20:19] Production.INFO: ProcessCDR(1,14382580,1,1,2) [2025-02-02 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382580', 'tblTempUsageDetail_20' ) start [2025-02-02 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382580', 'tblTempUsageDetail_20' ) end [2025-02-02 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:20:22] Production.INFO: ==14646== Releasing lock... [2025-02-02 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:20:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:21:05 [end_date_ymd] => 2025-02-02 02:21:05 [RateCDR] => 1 ) [2025-02-02 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-01 23:21:05' and `end` < '2025-02-02 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-02 02:21:18] Production.INFO: count ==639 [2025-02-02 02:21:18] Production.ERROR: pbx CDR StartTime 2025-02-01 23:21:05 - End Time 2025-02-02 02:21:05 [2025-02-02 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382585', 'tblTempUsageDetail_20' ) start [2025-02-02 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382585', 'tblTempUsageDetail_20' ) end [2025-02-02 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382585', 'tblTempVendorCDR_20' ) start [2025-02-02 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382585', 'tblTempVendorCDR_20' ) end [2025-02-02 02:21:18] Production.INFO: ProcessCDR(1,14382585,1,1,2) [2025-02-02 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382585', 'tblTempUsageDetail_20' ) start [2025-02-02 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382585', 'tblTempUsageDetail_20' ) end [2025-02-02 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:21:21] Production.INFO: ==14722== Releasing lock... [2025-02-02 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:21:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-02 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:22:05 [end_date_ymd] => 2025-02-02 02:22:05 [RateCDR] => 1 ) [2025-02-02 02:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 23:22:05' and `end` < '2025-02-02 02:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 02:22:17] Production.INFO: count ==635 [2025-02-02 02:22:18] Production.ERROR: pbx CDR StartTime 2025-02-01 23:22:05 - End Time 2025-02-02 02:22:05 [2025-02-02 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382590', 'tblTempUsageDetail_20' ) start [2025-02-02 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382590', 'tblTempUsageDetail_20' ) end [2025-02-02 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382590', 'tblTempVendorCDR_20' ) start [2025-02-02 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382590', 'tblTempVendorCDR_20' ) end [2025-02-02 02:22:18] Production.INFO: ProcessCDR(1,14382590,1,1,2) [2025-02-02 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382590', 'tblTempUsageDetail_20' ) start [2025-02-02 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382590', 'tblTempUsageDetail_20' ) end [2025-02-02 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:22:21] Production.INFO: ==14794== Releasing lock... [2025-02-02 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:22:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-02 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:23:05 [end_date_ymd] => 2025-02-02 02:23:05 [RateCDR] => 1 ) [2025-02-02 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-01 23:23:05' and `end` < '2025-02-02 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-02 02:23:19] Production.INFO: count ==633 [2025-02-02 02:23:19] Production.ERROR: pbx CDR StartTime 2025-02-01 23:23:05 - End Time 2025-02-02 02:23:05 [2025-02-02 02:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382595', 'tblTempUsageDetail_20' ) start [2025-02-02 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382595', 'tblTempUsageDetail_20' ) end [2025-02-02 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382595', 'tblTempVendorCDR_20' ) start [2025-02-02 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382595', 'tblTempVendorCDR_20' ) end [2025-02-02 02:23:19] Production.INFO: ProcessCDR(1,14382595,1,1,2) [2025-02-02 02:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382595', 'tblTempUsageDetail_20' ) start [2025-02-02 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382595', 'tblTempUsageDetail_20' ) end [2025-02-02 02:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:23:22] Production.INFO: ==14866== Releasing lock... [2025-02-02 02:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:23:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-02 02:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:24:06 [end_date_ymd] => 2025-02-02 02:24:06 [RateCDR] => 1 ) [2025-02-02 02:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 23:24:06' and `end` < '2025-02-02 02:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 02:24:18] Production.INFO: count ==632 [2025-02-02 02:24:18] Production.ERROR: pbx CDR StartTime 2025-02-01 23:24:06 - End Time 2025-02-02 02:24:06 [2025-02-02 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382600', 'tblTempUsageDetail_20' ) start [2025-02-02 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382600', 'tblTempUsageDetail_20' ) end [2025-02-02 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382600', 'tblTempVendorCDR_20' ) start [2025-02-02 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382600', 'tblTempVendorCDR_20' ) end [2025-02-02 02:24:19] Production.INFO: ProcessCDR(1,14382600,1,1,2) [2025-02-02 02:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382600', 'tblTempUsageDetail_20' ) start [2025-02-02 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382600', 'tblTempUsageDetail_20' ) end [2025-02-02 02:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:24:22] Production.INFO: ==14978== Releasing lock... [2025-02-02 02:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:24:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-02 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:25:05 [end_date_ymd] => 2025-02-02 02:25:05 [RateCDR] => 1 ) [2025-02-02 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-01 23:25:05' and `end` < '2025-02-02 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-02 02:25:17] Production.INFO: count ==633 [2025-02-02 02:25:17] Production.ERROR: pbx CDR StartTime 2025-02-01 23:25:05 - End Time 2025-02-02 02:25:05 [2025-02-02 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382604', 'tblTempUsageDetail_20' ) start [2025-02-02 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382604', 'tblTempUsageDetail_20' ) end [2025-02-02 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382604', 'tblTempVendorCDR_20' ) start [2025-02-02 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382604', 'tblTempVendorCDR_20' ) end [2025-02-02 02:25:18] Production.INFO: ProcessCDR(1,14382604,1,1,2) [2025-02-02 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382604', 'tblTempUsageDetail_20' ) start [2025-02-02 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382604', 'tblTempUsageDetail_20' ) end [2025-02-02 02:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:25:22] Production.INFO: ==15049== Releasing lock... [2025-02-02 02:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:25:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-02 02:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:26:06 [end_date_ymd] => 2025-02-02 02:26:06 [RateCDR] => 1 ) [2025-02-02 02:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 23:26:06' and `end` < '2025-02-02 02:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 02:26:21] Production.INFO: count ==633 [2025-02-02 02:26:21] Production.ERROR: pbx CDR StartTime 2025-02-01 23:26:06 - End Time 2025-02-02 02:26:06 [2025-02-02 02:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382610', 'tblTempUsageDetail_20' ) start [2025-02-02 02:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382610', 'tblTempUsageDetail_20' ) end [2025-02-02 02:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382610', 'tblTempVendorCDR_20' ) start [2025-02-02 02:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382610', 'tblTempVendorCDR_20' ) end [2025-02-02 02:26:21] Production.INFO: ProcessCDR(1,14382610,1,1,2) [2025-02-02 02:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382610', 'tblTempUsageDetail_20' ) start [2025-02-02 02:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382610', 'tblTempUsageDetail_20' ) end [2025-02-02 02:26:25] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:26:25] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:26:26] Production.INFO: ==15127== Releasing lock... [2025-02-02 02:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:26:26] Production.INFO: 32.25 MB #Memory Used# [2025-02-02 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:27:05 [end_date_ymd] => 2025-02-02 02:27:05 [RateCDR] => 1 ) [2025-02-02 02:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 23:27:05' and `end` < '2025-02-02 02:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 02:27:18] Production.INFO: count ==630 [2025-02-02 02:27:18] Production.ERROR: pbx CDR StartTime 2025-02-01 23:27:05 - End Time 2025-02-02 02:27:05 [2025-02-02 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382614', 'tblTempUsageDetail_20' ) start [2025-02-02 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382614', 'tblTempUsageDetail_20' ) end [2025-02-02 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382614', 'tblTempVendorCDR_20' ) start [2025-02-02 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382614', 'tblTempVendorCDR_20' ) end [2025-02-02 02:27:18] Production.INFO: ProcessCDR(1,14382614,1,1,2) [2025-02-02 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382614', 'tblTempUsageDetail_20' ) start [2025-02-02 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382614', 'tblTempUsageDetail_20' ) end [2025-02-02 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:27:21] Production.INFO: ==15257== Releasing lock... [2025-02-02 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:27:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-02 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:28:05 [end_date_ymd] => 2025-02-02 02:28:05 [RateCDR] => 1 ) [2025-02-02 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-01 23:28:05' and `end` < '2025-02-02 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-02 02:28:18] Production.INFO: count ==629 [2025-02-02 02:28:19] Production.ERROR: pbx CDR StartTime 2025-02-01 23:28:05 - End Time 2025-02-02 02:28:05 [2025-02-02 02:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382620', 'tblTempUsageDetail_20' ) start [2025-02-02 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382620', 'tblTempUsageDetail_20' ) end [2025-02-02 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382620', 'tblTempVendorCDR_20' ) start [2025-02-02 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382620', 'tblTempVendorCDR_20' ) end [2025-02-02 02:28:19] Production.INFO: ProcessCDR(1,14382620,1,1,2) [2025-02-02 02:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382620', 'tblTempUsageDetail_20' ) start [2025-02-02 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382620', 'tblTempUsageDetail_20' ) end [2025-02-02 02:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:28:22] Production.INFO: ==15433== Releasing lock... [2025-02-02 02:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:28:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-02 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:29:05 [end_date_ymd] => 2025-02-02 02:29:05 [RateCDR] => 1 ) [2025-02-02 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-01 23:29:05' and `end` < '2025-02-02 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-02 02:29:19] Production.INFO: count ==630 [2025-02-02 02:29:19] Production.ERROR: pbx CDR StartTime 2025-02-01 23:29:05 - End Time 2025-02-02 02:29:05 [2025-02-02 02:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382625', 'tblTempUsageDetail_20' ) start [2025-02-02 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382625', 'tblTempUsageDetail_20' ) end [2025-02-02 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382625', 'tblTempVendorCDR_20' ) start [2025-02-02 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382625', 'tblTempVendorCDR_20' ) end [2025-02-02 02:29:19] Production.INFO: ProcessCDR(1,14382625,1,1,2) [2025-02-02 02:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382625', 'tblTempUsageDetail_20' ) start [2025-02-02 02:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382625', 'tblTempUsageDetail_20' ) end [2025-02-02 02:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:29:24] Production.INFO: ==15529== Releasing lock... [2025-02-02 02:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:29:24] Production.INFO: 32.25 MB #Memory Used# [2025-02-02 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:30:06 [end_date_ymd] => 2025-02-02 02:30:06 [RateCDR] => 1 ) [2025-02-02 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-01 23:30:06' and `end` < '2025-02-02 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-02 02:30:19] Production.INFO: count ==645 [2025-02-02 02:30:19] Production.ERROR: pbx CDR StartTime 2025-02-01 23:30:06 - End Time 2025-02-02 02:30:06 [2025-02-02 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382630', 'tblTempUsageDetail_20' ) start [2025-02-02 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382630', 'tblTempUsageDetail_20' ) end [2025-02-02 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382630', 'tblTempVendorCDR_20' ) start [2025-02-02 02:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382630', 'tblTempVendorCDR_20' ) end [2025-02-02 02:30:20] Production.INFO: ProcessCDR(1,14382630,1,1,2) [2025-02-02 02:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382630', 'tblTempUsageDetail_20' ) start [2025-02-02 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382630', 'tblTempUsageDetail_20' ) end [2025-02-02 02:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:30:23] Production.INFO: ==15606== Releasing lock... [2025-02-02 02:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:30:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-02 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:31:05 [end_date_ymd] => 2025-02-02 02:31:05 [RateCDR] => 1 ) [2025-02-02 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-01 23:31:05' and `end` < '2025-02-02 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-02 02:31:18] Production.INFO: count ==647 [2025-02-02 02:31:18] Production.ERROR: pbx CDR StartTime 2025-02-01 23:31:05 - End Time 2025-02-02 02:31:05 [2025-02-02 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382636', 'tblTempUsageDetail_20' ) start [2025-02-02 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382636', 'tblTempUsageDetail_20' ) end [2025-02-02 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382636', 'tblTempVendorCDR_20' ) start [2025-02-02 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382636', 'tblTempVendorCDR_20' ) end [2025-02-02 02:31:18] Production.INFO: ProcessCDR(1,14382636,1,1,2) [2025-02-02 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382636', 'tblTempUsageDetail_20' ) start [2025-02-02 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382636', 'tblTempUsageDetail_20' ) end [2025-02-02 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:31:21] Production.INFO: ==15681== Releasing lock... [2025-02-02 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:31:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:32:05 [end_date_ymd] => 2025-02-02 02:32:05 [RateCDR] => 1 ) [2025-02-02 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-01 23:32:05' and `end` < '2025-02-02 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-02 02:32:18] Production.INFO: count ==647 [2025-02-02 02:32:18] Production.ERROR: pbx CDR StartTime 2025-02-01 23:32:05 - End Time 2025-02-02 02:32:05 [2025-02-02 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382640', 'tblTempUsageDetail_20' ) start [2025-02-02 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382640', 'tblTempUsageDetail_20' ) end [2025-02-02 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382640', 'tblTempVendorCDR_20' ) start [2025-02-02 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382640', 'tblTempVendorCDR_20' ) end [2025-02-02 02:32:18] Production.INFO: ProcessCDR(1,14382640,1,1,2) [2025-02-02 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382640', 'tblTempUsageDetail_20' ) start [2025-02-02 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382640', 'tblTempUsageDetail_20' ) end [2025-02-02 02:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:32:22] Production.INFO: ==15751== Releasing lock... [2025-02-02 02:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:32:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:33:05 [end_date_ymd] => 2025-02-02 02:33:05 [RateCDR] => 1 ) [2025-02-02 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-01 23:33:05' and `end` < '2025-02-02 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-02 02:33:18] Production.INFO: count ==647 [2025-02-02 02:33:19] Production.ERROR: pbx CDR StartTime 2025-02-01 23:33:05 - End Time 2025-02-02 02:33:05 [2025-02-02 02:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382646', 'tblTempUsageDetail_20' ) start [2025-02-02 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382646', 'tblTempUsageDetail_20' ) end [2025-02-02 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382646', 'tblTempVendorCDR_20' ) start [2025-02-02 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382646', 'tblTempVendorCDR_20' ) end [2025-02-02 02:33:19] Production.INFO: ProcessCDR(1,14382646,1,1,2) [2025-02-02 02:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382646', 'tblTempUsageDetail_20' ) start [2025-02-02 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382646', 'tblTempUsageDetail_20' ) end [2025-02-02 02:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:33:22] Production.INFO: ==15824== Releasing lock... [2025-02-02 02:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:33:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:34:05 [end_date_ymd] => 2025-02-02 02:34:05 [RateCDR] => 1 ) [2025-02-02 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-01 23:34:05' and `end` < '2025-02-02 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-02 02:34:18] Production.INFO: count ==647 [2025-02-02 02:34:18] Production.ERROR: pbx CDR StartTime 2025-02-01 23:34:05 - End Time 2025-02-02 02:34:05 [2025-02-02 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382651', 'tblTempUsageDetail_20' ) start [2025-02-02 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382651', 'tblTempUsageDetail_20' ) end [2025-02-02 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382651', 'tblTempVendorCDR_20' ) start [2025-02-02 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382651', 'tblTempVendorCDR_20' ) end [2025-02-02 02:34:18] Production.INFO: ProcessCDR(1,14382651,1,1,2) [2025-02-02 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382651', 'tblTempUsageDetail_20' ) start [2025-02-02 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382651', 'tblTempUsageDetail_20' ) end [2025-02-02 02:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:34:22] Production.INFO: ==15897== Releasing lock... [2025-02-02 02:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:34:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 02:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:35:04 [end_date_ymd] => 2025-02-02 02:35:04 [RateCDR] => 1 ) [2025-02-02 02:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 23:35:04' and `end` < '2025-02-02 02:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 02:35:17] Production.INFO: count ==647 [2025-02-02 02:35:17] Production.ERROR: pbx CDR StartTime 2025-02-01 23:35:04 - End Time 2025-02-02 02:35:04 [2025-02-02 02:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382656', 'tblTempUsageDetail_20' ) start [2025-02-02 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382656', 'tblTempUsageDetail_20' ) end [2025-02-02 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382656', 'tblTempVendorCDR_20' ) start [2025-02-02 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382656', 'tblTempVendorCDR_20' ) end [2025-02-02 02:35:17] Production.INFO: ProcessCDR(1,14382656,1,1,2) [2025-02-02 02:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382656', 'tblTempUsageDetail_20' ) start [2025-02-02 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382656', 'tblTempUsageDetail_20' ) end [2025-02-02 02:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:35:20] Production.INFO: ==15967== Releasing lock... [2025-02-02 02:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:35:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:36:05 [end_date_ymd] => 2025-02-02 02:36:05 [RateCDR] => 1 ) [2025-02-02 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-01 23:36:05' and `end` < '2025-02-02 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-02 02:36:18] Production.INFO: count ==644 [2025-02-02 02:36:18] Production.ERROR: pbx CDR StartTime 2025-02-01 23:36:05 - End Time 2025-02-02 02:36:05 [2025-02-02 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382661', 'tblTempUsageDetail_20' ) start [2025-02-02 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382661', 'tblTempUsageDetail_20' ) end [2025-02-02 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382661', 'tblTempVendorCDR_20' ) start [2025-02-02 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382661', 'tblTempVendorCDR_20' ) end [2025-02-02 02:36:18] Production.INFO: ProcessCDR(1,14382661,1,1,2) [2025-02-02 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382661', 'tblTempUsageDetail_20' ) start [2025-02-02 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382661', 'tblTempUsageDetail_20' ) end [2025-02-02 02:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:36:21] Production.INFO: ==16043== Releasing lock... [2025-02-02 02:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:36:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-02 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:37:05 [end_date_ymd] => 2025-02-02 02:37:05 [RateCDR] => 1 ) [2025-02-02 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-01 23:37:05' and `end` < '2025-02-02 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-02 02:37:18] Production.INFO: count ==644 [2025-02-02 02:37:18] Production.ERROR: pbx CDR StartTime 2025-02-01 23:37:05 - End Time 2025-02-02 02:37:05 [2025-02-02 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382666', 'tblTempUsageDetail_20' ) start [2025-02-02 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382666', 'tblTempUsageDetail_20' ) end [2025-02-02 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382666', 'tblTempVendorCDR_20' ) start [2025-02-02 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382666', 'tblTempVendorCDR_20' ) end [2025-02-02 02:37:18] Production.INFO: ProcessCDR(1,14382666,1,1,2) [2025-02-02 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382666', 'tblTempUsageDetail_20' ) start [2025-02-02 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382666', 'tblTempUsageDetail_20' ) end [2025-02-02 02:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:37:21] Production.INFO: ==16115== Releasing lock... [2025-02-02 02:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:37:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-02 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:38:05 [end_date_ymd] => 2025-02-02 02:38:05 [RateCDR] => 1 ) [2025-02-02 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-01 23:38:05' and `end` < '2025-02-02 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-02 02:38:19] Production.INFO: count ==645 [2025-02-02 02:38:19] Production.ERROR: pbx CDR StartTime 2025-02-01 23:38:05 - End Time 2025-02-02 02:38:05 [2025-02-02 02:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382671', 'tblTempUsageDetail_20' ) start [2025-02-02 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382671', 'tblTempUsageDetail_20' ) end [2025-02-02 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382671', 'tblTempVendorCDR_20' ) start [2025-02-02 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382671', 'tblTempVendorCDR_20' ) end [2025-02-02 02:38:19] Production.INFO: ProcessCDR(1,14382671,1,1,2) [2025-02-02 02:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382671', 'tblTempUsageDetail_20' ) start [2025-02-02 02:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382671', 'tblTempUsageDetail_20' ) end [2025-02-02 02:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:38:24] Production.INFO: ==16187== Releasing lock... [2025-02-02 02:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:38:24] Production.INFO: 32.25 MB #Memory Used# [2025-02-02 02:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:39:06 [end_date_ymd] => 2025-02-02 02:39:06 [RateCDR] => 1 ) [2025-02-02 02: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-01 23:39:06' and `end` < '2025-02-02 02: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-02 02:39:18] Production.INFO: count ==645 [2025-02-02 02:39:18] Production.ERROR: pbx CDR StartTime 2025-02-01 23:39:06 - End Time 2025-02-02 02:39:06 [2025-02-02 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382676', 'tblTempUsageDetail_20' ) start [2025-02-02 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382676', 'tblTempUsageDetail_20' ) end [2025-02-02 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382676', 'tblTempVendorCDR_20' ) start [2025-02-02 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382676', 'tblTempVendorCDR_20' ) end [2025-02-02 02:39:18] Production.INFO: ProcessCDR(1,14382676,1,1,2) [2025-02-02 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382676', 'tblTempUsageDetail_20' ) start [2025-02-02 02:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382676', 'tblTempUsageDetail_20' ) end [2025-02-02 02:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:39:23] Production.INFO: ==16261== Releasing lock... [2025-02-02 02:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:39:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-02 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:40:06 [end_date_ymd] => 2025-02-02 02:40:06 [RateCDR] => 1 ) [2025-02-02 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-01 23:40:06' and `end` < '2025-02-02 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-02 02:40:20] Production.INFO: count ==653 [2025-02-02 02:40:20] Production.ERROR: pbx CDR StartTime 2025-02-01 23:40:06 - End Time 2025-02-02 02:40:06 [2025-02-02 02:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382682', 'tblTempUsageDetail_20' ) start [2025-02-02 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382682', 'tblTempUsageDetail_20' ) end [2025-02-02 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382682', 'tblTempVendorCDR_20' ) start [2025-02-02 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382682', 'tblTempVendorCDR_20' ) end [2025-02-02 02:40:20] Production.INFO: ProcessCDR(1,14382682,1,1,2) [2025-02-02 02:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382682', 'tblTempUsageDetail_20' ) start [2025-02-02 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382682', 'tblTempUsageDetail_20' ) end [2025-02-02 02:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:40:23] Production.INFO: ==16372== Releasing lock... [2025-02-02 02:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:40:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-02 02:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:41:06 [end_date_ymd] => 2025-02-02 02:41:06 [RateCDR] => 1 ) [2025-02-02 02: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-01 23:41:06' and `end` < '2025-02-02 02: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-02 02:41:19] Production.INFO: count ==665 [2025-02-02 02:41:19] Production.ERROR: pbx CDR StartTime 2025-02-01 23:41:06 - End Time 2025-02-02 02:41:06 [2025-02-02 02:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382687', 'tblTempUsageDetail_20' ) start [2025-02-02 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382687', 'tblTempUsageDetail_20' ) end [2025-02-02 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382687', 'tblTempVendorCDR_20' ) start [2025-02-02 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382687', 'tblTempVendorCDR_20' ) end [2025-02-02 02:41:19] Production.INFO: ProcessCDR(1,14382687,1,1,2) [2025-02-02 02:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382687', 'tblTempUsageDetail_20' ) start [2025-02-02 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382687', 'tblTempUsageDetail_20' ) end [2025-02-02 02:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:41:22] Production.INFO: ==16446== Releasing lock... [2025-02-02 02:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:41:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:42:05 [end_date_ymd] => 2025-02-02 02:42:05 [RateCDR] => 1 ) [2025-02-02 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-01 23:42:05' and `end` < '2025-02-02 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-02 02:42:19] Production.INFO: count ==665 [2025-02-02 02:42:19] Production.ERROR: pbx CDR StartTime 2025-02-01 23:42:05 - End Time 2025-02-02 02:42:05 [2025-02-02 02:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382692', 'tblTempUsageDetail_20' ) start [2025-02-02 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382692', 'tblTempUsageDetail_20' ) end [2025-02-02 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382692', 'tblTempVendorCDR_20' ) start [2025-02-02 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382692', 'tblTempVendorCDR_20' ) end [2025-02-02 02:42:19] Production.INFO: ProcessCDR(1,14382692,1,1,2) [2025-02-02 02:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382692', 'tblTempUsageDetail_20' ) start [2025-02-02 02:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382692', 'tblTempUsageDetail_20' ) end [2025-02-02 02:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:42:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:42:24] Production.INFO: ==16515== Releasing lock... [2025-02-02 02:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:42:24] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:43:05 [end_date_ymd] => 2025-02-02 02:43:05 [RateCDR] => 1 ) [2025-02-02 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-01 23:43:05' and `end` < '2025-02-02 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-02 02:43:18] Production.INFO: count ==665 [2025-02-02 02:43:18] Production.ERROR: pbx CDR StartTime 2025-02-01 23:43:05 - End Time 2025-02-02 02:43:05 [2025-02-02 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382697', 'tblTempUsageDetail_20' ) start [2025-02-02 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382697', 'tblTempUsageDetail_20' ) end [2025-02-02 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382697', 'tblTempVendorCDR_20' ) start [2025-02-02 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382697', 'tblTempVendorCDR_20' ) end [2025-02-02 02:43:18] Production.INFO: ProcessCDR(1,14382697,1,1,2) [2025-02-02 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382697', 'tblTempUsageDetail_20' ) start [2025-02-02 02:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382697', 'tblTempUsageDetail_20' ) end [2025-02-02 02:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:43:23] Production.INFO: ==16587== Releasing lock... [2025-02-02 02:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:43:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:44:05 [end_date_ymd] => 2025-02-02 02:44:05 [RateCDR] => 1 ) [2025-02-02 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-01 23:44:05' and `end` < '2025-02-02 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-02 02:44:20] Production.INFO: count ==671 [2025-02-02 02:44:20] Production.ERROR: pbx CDR StartTime 2025-02-01 23:44:05 - End Time 2025-02-02 02:44:05 [2025-02-02 02:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382702', 'tblTempUsageDetail_20' ) start [2025-02-02 02:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382702', 'tblTempUsageDetail_20' ) end [2025-02-02 02:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382702', 'tblTempVendorCDR_20' ) start [2025-02-02 02:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382702', 'tblTempVendorCDR_20' ) end [2025-02-02 02:44:20] Production.INFO: ProcessCDR(1,14382702,1,1,2) [2025-02-02 02:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382702', 'tblTempUsageDetail_20' ) start [2025-02-02 02:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382702', 'tblTempUsageDetail_20' ) end [2025-02-02 02:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:44:24] Production.INFO: ==16658== Releasing lock... [2025-02-02 02:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:44:24] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:45:05 [end_date_ymd] => 2025-02-02 02:45:05 [RateCDR] => 1 ) [2025-02-02 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-01 23:45:05' and `end` < '2025-02-02 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-02 02:45:18] Production.INFO: count ==670 [2025-02-02 02:45:18] Production.ERROR: pbx CDR StartTime 2025-02-01 23:45:05 - End Time 2025-02-02 02:45:05 [2025-02-02 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382707', 'tblTempUsageDetail_20' ) start [2025-02-02 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382707', 'tblTempUsageDetail_20' ) end [2025-02-02 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382707', 'tblTempVendorCDR_20' ) start [2025-02-02 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382707', 'tblTempVendorCDR_20' ) end [2025-02-02 02:45:18] Production.INFO: ProcessCDR(1,14382707,1,1,2) [2025-02-02 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382707', 'tblTempUsageDetail_20' ) start [2025-02-02 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382707', 'tblTempUsageDetail_20' ) end [2025-02-02 02:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:45:21] Production.INFO: ==16733== Releasing lock... [2025-02-02 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:45:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:46:05 [end_date_ymd] => 2025-02-02 02:46:05 [RateCDR] => 1 ) [2025-02-02 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-01 23:46:05' and `end` < '2025-02-02 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-02 02:46:18] Production.INFO: count ==666 [2025-02-02 02:46:19] Production.ERROR: pbx CDR StartTime 2025-02-01 23:46:05 - End Time 2025-02-02 02:46:05 [2025-02-02 02:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382712', 'tblTempUsageDetail_20' ) start [2025-02-02 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382712', 'tblTempUsageDetail_20' ) end [2025-02-02 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382712', 'tblTempVendorCDR_20' ) start [2025-02-02 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382712', 'tblTempVendorCDR_20' ) end [2025-02-02 02:46:19] Production.INFO: ProcessCDR(1,14382712,1,1,2) [2025-02-02 02:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382712', 'tblTempUsageDetail_20' ) start [2025-02-02 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382712', 'tblTempUsageDetail_20' ) end [2025-02-02 02:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:46:22] Production.INFO: ==16805== Releasing lock... [2025-02-02 02:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:46:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:47:05 [end_date_ymd] => 2025-02-02 02:47:05 [RateCDR] => 1 ) [2025-02-02 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-01 23:47:05' and `end` < '2025-02-02 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-02 02:47:19] Production.INFO: count ==665 [2025-02-02 02:47:19] Production.ERROR: pbx CDR StartTime 2025-02-01 23:47:05 - End Time 2025-02-02 02:47:05 [2025-02-02 02:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382717', 'tblTempUsageDetail_20' ) start [2025-02-02 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382717', 'tblTempUsageDetail_20' ) end [2025-02-02 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382717', 'tblTempVendorCDR_20' ) start [2025-02-02 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382717', 'tblTempVendorCDR_20' ) end [2025-02-02 02:47:19] Production.INFO: ProcessCDR(1,14382717,1,1,2) [2025-02-02 02:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382717', 'tblTempUsageDetail_20' ) start [2025-02-02 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382717', 'tblTempUsageDetail_20' ) end [2025-02-02 02:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:47:22] Production.INFO: ==16876== Releasing lock... [2025-02-02 02:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:47:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 02:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:48:04 [end_date_ymd] => 2025-02-02 02:48:04 [RateCDR] => 1 ) [2025-02-02 02:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 23:48:04' and `end` < '2025-02-02 02:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 02:48:18] Production.INFO: count ==663 [2025-02-02 02:48:19] Production.ERROR: pbx CDR StartTime 2025-02-01 23:48:04 - End Time 2025-02-02 02:48:04 [2025-02-02 02:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382722', 'tblTempUsageDetail_20' ) start [2025-02-02 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382722', 'tblTempUsageDetail_20' ) end [2025-02-02 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382722', 'tblTempVendorCDR_20' ) start [2025-02-02 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382722', 'tblTempVendorCDR_20' ) end [2025-02-02 02:48:19] Production.INFO: ProcessCDR(1,14382722,1,1,2) [2025-02-02 02:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382722', 'tblTempUsageDetail_20' ) start [2025-02-02 02:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382722', 'tblTempUsageDetail_20' ) end [2025-02-02 02:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:48:23] Production.INFO: ==16946== Releasing lock... [2025-02-02 02:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:48:23] Production.INFO: 32.75 MB #Memory Used# [2025-02-02 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:49:05 [end_date_ymd] => 2025-02-02 02:49:05 [RateCDR] => 1 ) [2025-02-02 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-01 23:49:05' and `end` < '2025-02-02 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-02 02:49:18] Production.INFO: count ==663 [2025-02-02 02:49:18] Production.ERROR: pbx CDR StartTime 2025-02-01 23:49:05 - End Time 2025-02-02 02:49:05 [2025-02-02 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382727', 'tblTempUsageDetail_20' ) start [2025-02-02 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382727', 'tblTempUsageDetail_20' ) end [2025-02-02 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382727', 'tblTempVendorCDR_20' ) start [2025-02-02 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382727', 'tblTempVendorCDR_20' ) end [2025-02-02 02:49:18] Production.INFO: ProcessCDR(1,14382727,1,1,2) [2025-02-02 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382727', 'tblTempUsageDetail_20' ) start [2025-02-02 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382727', 'tblTempUsageDetail_20' ) end [2025-02-02 02:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:49:21] Production.INFO: ==17018== Releasing lock... [2025-02-02 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:49:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-02 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:50:06 [end_date_ymd] => 2025-02-02 02:50:06 [RateCDR] => 1 ) [2025-02-02 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-01 23:50:06' and `end` < '2025-02-02 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-02 02:50:20] Production.INFO: count ==669 [2025-02-02 02:50:20] Production.ERROR: pbx CDR StartTime 2025-02-01 23:50:06 - End Time 2025-02-02 02:50:06 [2025-02-02 02:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382733', 'tblTempUsageDetail_20' ) start [2025-02-02 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382733', 'tblTempUsageDetail_20' ) end [2025-02-02 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382733', 'tblTempVendorCDR_20' ) start [2025-02-02 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382733', 'tblTempVendorCDR_20' ) end [2025-02-02 02:50:20] Production.INFO: ProcessCDR(1,14382733,1,1,2) [2025-02-02 02:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382733', 'tblTempUsageDetail_20' ) start [2025-02-02 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382733', 'tblTempUsageDetail_20' ) end [2025-02-02 02:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:50:23] Production.INFO: ==17090== Releasing lock... [2025-02-02 02:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:50:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:51:05 [end_date_ymd] => 2025-02-02 02:51:05 [RateCDR] => 1 ) [2025-02-02 02:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 23:51:05' and `end` < '2025-02-02 02:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 02:51:19] Production.INFO: count ==679 [2025-02-02 02:51:19] Production.ERROR: pbx CDR StartTime 2025-02-01 23:51:05 - End Time 2025-02-02 02:51:05 [2025-02-02 02:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382738', 'tblTempUsageDetail_20' ) start [2025-02-02 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382738', 'tblTempUsageDetail_20' ) end [2025-02-02 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382738', 'tblTempVendorCDR_20' ) start [2025-02-02 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382738', 'tblTempVendorCDR_20' ) end [2025-02-02 02:51:19] Production.INFO: ProcessCDR(1,14382738,1,1,2) [2025-02-02 02:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382738', 'tblTempUsageDetail_20' ) start [2025-02-02 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382738', 'tblTempUsageDetail_20' ) end [2025-02-02 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:51:22] Production.INFO: ==17162== Releasing lock... [2025-02-02 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:51:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 02:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:52:06 [end_date_ymd] => 2025-02-02 02:52:06 [RateCDR] => 1 ) [2025-02-02 02:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 23:52:06' and `end` < '2025-02-02 02:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 02:52:18] Production.INFO: count ==679 [2025-02-02 02:52:18] Production.ERROR: pbx CDR StartTime 2025-02-01 23:52:06 - End Time 2025-02-02 02:52:06 [2025-02-02 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382743', 'tblTempUsageDetail_20' ) start [2025-02-02 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382743', 'tblTempUsageDetail_20' ) end [2025-02-02 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382743', 'tblTempVendorCDR_20' ) start [2025-02-02 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382743', 'tblTempVendorCDR_20' ) end [2025-02-02 02:52:18] Production.INFO: ProcessCDR(1,14382743,1,1,2) [2025-02-02 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382743', 'tblTempUsageDetail_20' ) start [2025-02-02 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382743', 'tblTempUsageDetail_20' ) end [2025-02-02 02:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:52:22] Production.INFO: ==17238== Releasing lock... [2025-02-02 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:52:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:53:05 [end_date_ymd] => 2025-02-02 02:53:05 [RateCDR] => 1 ) [2025-02-02 02:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 23:53:05' and `end` < '2025-02-02 02:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 02:53:18] Production.INFO: count ==679 [2025-02-02 02:53:18] Production.ERROR: pbx CDR StartTime 2025-02-01 23:53:05 - End Time 2025-02-02 02:53:05 [2025-02-02 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382748', 'tblTempUsageDetail_20' ) start [2025-02-02 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382748', 'tblTempUsageDetail_20' ) end [2025-02-02 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382748', 'tblTempVendorCDR_20' ) start [2025-02-02 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382748', 'tblTempVendorCDR_20' ) end [2025-02-02 02:53:18] Production.INFO: ProcessCDR(1,14382748,1,1,2) [2025-02-02 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382748', 'tblTempUsageDetail_20' ) start [2025-02-02 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382748', 'tblTempUsageDetail_20' ) end [2025-02-02 02:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:53:21] Production.INFO: ==17310== Releasing lock... [2025-02-02 02:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:53:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 02:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:54:06 [end_date_ymd] => 2025-02-02 02:54:06 [RateCDR] => 1 ) [2025-02-02 02:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 23:54:06' and `end` < '2025-02-02 02:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 02:54:19] Production.INFO: count ==680 [2025-02-02 02:54:19] Production.ERROR: pbx CDR StartTime 2025-02-01 23:54:06 - End Time 2025-02-02 02:54:06 [2025-02-02 02:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382753', 'tblTempUsageDetail_20' ) start [2025-02-02 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382753', 'tblTempUsageDetail_20' ) end [2025-02-02 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382753', 'tblTempVendorCDR_20' ) start [2025-02-02 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382753', 'tblTempVendorCDR_20' ) end [2025-02-02 02:54:19] Production.INFO: ProcessCDR(1,14382753,1,1,2) [2025-02-02 02:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382753', 'tblTempUsageDetail_20' ) start [2025-02-02 02:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382753', 'tblTempUsageDetail_20' ) end [2025-02-02 02:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:54:24] Production.INFO: ==17383== Releasing lock... [2025-02-02 02:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:54:24] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:55:05 [end_date_ymd] => 2025-02-02 02:55:05 [RateCDR] => 1 ) [2025-02-02 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-01 23:55:05' and `end` < '2025-02-02 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-02 02:55:17] Production.INFO: count ==680 [2025-02-02 02:55:17] Production.ERROR: pbx CDR StartTime 2025-02-01 23:55:05 - End Time 2025-02-02 02:55:05 [2025-02-02 02:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382758', 'tblTempUsageDetail_20' ) start [2025-02-02 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382758', 'tblTempUsageDetail_20' ) end [2025-02-02 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382758', 'tblTempVendorCDR_20' ) start [2025-02-02 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382758', 'tblTempVendorCDR_20' ) end [2025-02-02 02:55:18] Production.INFO: ProcessCDR(1,14382758,1,1,2) [2025-02-02 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382758', 'tblTempUsageDetail_20' ) start [2025-02-02 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382758', 'tblTempUsageDetail_20' ) end [2025-02-02 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:55:21] Production.INFO: ==17492== Releasing lock... [2025-02-02 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:55:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 02:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:56:06 [end_date_ymd] => 2025-02-02 02:56:06 [RateCDR] => 1 ) [2025-02-02 02: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-01 23:56:06' and `end` < '2025-02-02 02: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-02 02:56:20] Production.INFO: count ==683 [2025-02-02 02:56:20] Production.ERROR: pbx CDR StartTime 2025-02-01 23:56:06 - End Time 2025-02-02 02:56:06 [2025-02-02 02:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382763', 'tblTempUsageDetail_20' ) start [2025-02-02 02:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382763', 'tblTempUsageDetail_20' ) end [2025-02-02 02:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382763', 'tblTempVendorCDR_20' ) start [2025-02-02 02:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382763', 'tblTempVendorCDR_20' ) end [2025-02-02 02:56:20] Production.INFO: ProcessCDR(1,14382763,1,1,2) [2025-02-02 02:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382763', 'tblTempUsageDetail_20' ) start [2025-02-02 02:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382763', 'tblTempUsageDetail_20' ) end [2025-02-02 02:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:56:23] Production.INFO: ==17564== Releasing lock... [2025-02-02 02:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:56:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:57:05 [end_date_ymd] => 2025-02-02 02:57:05 [RateCDR] => 1 ) [2025-02-02 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-01 23:57:05' and `end` < '2025-02-02 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-02 02:57:18] Production.INFO: count ==682 [2025-02-02 02:57:18] Production.ERROR: pbx CDR StartTime 2025-02-01 23:57:05 - End Time 2025-02-02 02:57:05 [2025-02-02 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382768', 'tblTempUsageDetail_20' ) start [2025-02-02 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382768', 'tblTempUsageDetail_20' ) end [2025-02-02 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382768', 'tblTempVendorCDR_20' ) start [2025-02-02 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382768', 'tblTempVendorCDR_20' ) end [2025-02-02 02:57:18] Production.INFO: ProcessCDR(1,14382768,1,1,2) [2025-02-02 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382768', 'tblTempUsageDetail_20' ) start [2025-02-02 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382768', 'tblTempUsageDetail_20' ) end [2025-02-02 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:57:21] Production.INFO: ==17635== Releasing lock... [2025-02-02 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:57:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:58:05 [end_date_ymd] => 2025-02-02 02:58:05 [RateCDR] => 1 ) [2025-02-02 02:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 23:58:05' and `end` < '2025-02-02 02:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 02:58:18] Production.INFO: count ==682 [2025-02-02 02:58:18] Production.ERROR: pbx CDR StartTime 2025-02-01 23:58:05 - End Time 2025-02-02 02:58:05 [2025-02-02 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382773', 'tblTempUsageDetail_20' ) start [2025-02-02 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382773', 'tblTempUsageDetail_20' ) end [2025-02-02 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382773', 'tblTempVendorCDR_20' ) start [2025-02-02 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382773', 'tblTempVendorCDR_20' ) end [2025-02-02 02:58:18] Production.INFO: ProcessCDR(1,14382773,1,1,2) [2025-02-02 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382773', 'tblTempUsageDetail_20' ) start [2025-02-02 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382773', 'tblTempUsageDetail_20' ) end [2025-02-02 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:58:21] Production.INFO: ==17706== Releasing lock... [2025-02-02 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:58:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 23:59:05 [end_date_ymd] => 2025-02-02 02:59:05 [RateCDR] => 1 ) [2025-02-02 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-01 23:59:05' and `end` < '2025-02-02 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-02 02:59:19] Production.INFO: count ==680 [2025-02-02 02:59:19] Production.ERROR: pbx CDR StartTime 2025-02-01 23:59:05 - End Time 2025-02-02 02:59:05 [2025-02-02 02:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382778', 'tblTempUsageDetail_20' ) start [2025-02-02 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382778', 'tblTempUsageDetail_20' ) end [2025-02-02 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382778', 'tblTempVendorCDR_20' ) start [2025-02-02 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382778', 'tblTempVendorCDR_20' ) end [2025-02-02 02:59:19] Production.INFO: ProcessCDR(1,14382778,1,1,2) [2025-02-02 02:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 02:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382778', 'tblTempUsageDetail_20' ) start [2025-02-02 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382778', 'tblTempUsageDetail_20' ) end [2025-02-02 02:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 02:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 02:59:22] Production.INFO: ==17791== Releasing lock... [2025-02-02 02:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 02:59:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:00:06 [end_date_ymd] => 2025-02-02 03:00:06 [RateCDR] => 1 ) [2025-02-02 03: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-02 00:00:06' and `end` < '2025-02-02 03: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-02 03:00:19] Production.INFO: count ==681 [2025-02-02 03:00:19] Production.ERROR: pbx CDR StartTime 2025-02-02 00:00:06 - End Time 2025-02-02 03:00:06 [2025-02-02 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382784', 'tblTempUsageDetail_20' ) start [2025-02-02 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382784', 'tblTempUsageDetail_20' ) end [2025-02-02 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382784', 'tblTempVendorCDR_20' ) start [2025-02-02 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382784', 'tblTempVendorCDR_20' ) end [2025-02-02 03:00:19] Production.INFO: ProcessCDR(1,14382784,1,1,2) [2025-02-02 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382784', 'tblTempUsageDetail_20' ) start [2025-02-02 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382784', 'tblTempUsageDetail_20' ) end [2025-02-02 03:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:00:22] Production.INFO: ==17867== Releasing lock... [2025-02-02 03:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:00:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:01:05 [end_date_ymd] => 2025-02-02 03:01:05 [RateCDR] => 1 ) [2025-02-02 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-02 00:01:05' and `end` < '2025-02-02 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-02 03:01:17] Production.INFO: count ==699 [2025-02-02 03:01:17] Production.ERROR: pbx CDR StartTime 2025-02-02 00:01:05 - End Time 2025-02-02 03:01:05 [2025-02-02 03:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382789', 'tblTempUsageDetail_20' ) start [2025-02-02 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382789', 'tblTempUsageDetail_20' ) end [2025-02-02 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382789', 'tblTempVendorCDR_20' ) start [2025-02-02 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382789', 'tblTempVendorCDR_20' ) end [2025-02-02 03:01:17] Production.INFO: ProcessCDR(1,14382789,1,1,2) [2025-02-02 03:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382789', 'tblTempUsageDetail_20' ) start [2025-02-02 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382789', 'tblTempUsageDetail_20' ) end [2025-02-02 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:01:21] Production.INFO: ==17955== Releasing lock... [2025-02-02 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:01:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-02 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:02:05 [end_date_ymd] => 2025-02-02 03:02:05 [RateCDR] => 1 ) [2025-02-02 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-02 00:02:05' and `end` < '2025-02-02 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-02 03:02:20] Production.INFO: count ==701 [2025-02-02 03:02:20] Production.ERROR: pbx CDR StartTime 2025-02-02 00:02:05 - End Time 2025-02-02 03:02:05 [2025-02-02 03:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382794', 'tblTempUsageDetail_20' ) start [2025-02-02 03:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382794', 'tblTempUsageDetail_20' ) end [2025-02-02 03:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382794', 'tblTempVendorCDR_20' ) start [2025-02-02 03:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382794', 'tblTempVendorCDR_20' ) end [2025-02-02 03:02:20] Production.INFO: ProcessCDR(1,14382794,1,1,2) [2025-02-02 03:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382794', 'tblTempUsageDetail_20' ) start [2025-02-02 03:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382794', 'tblTempUsageDetail_20' ) end [2025-02-02 03:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:02:23] Production.INFO: ==18102== Releasing lock... [2025-02-02 03:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:02:23] Production.INFO: 33 MB #Memory Used# [2025-02-02 03:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:03:06 [end_date_ymd] => 2025-02-02 03:03:06 [RateCDR] => 1 ) [2025-02-02 03:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 00:03:06' and `end` < '2025-02-02 03:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 03:03:18] Production.INFO: count ==701 [2025-02-02 03:03:18] Production.ERROR: pbx CDR StartTime 2025-02-02 00:03:06 - End Time 2025-02-02 03:03:06 [2025-02-02 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382799', 'tblTempUsageDetail_20' ) start [2025-02-02 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382799', 'tblTempUsageDetail_20' ) end [2025-02-02 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382799', 'tblTempVendorCDR_20' ) start [2025-02-02 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382799', 'tblTempVendorCDR_20' ) end [2025-02-02 03:03:19] Production.INFO: ProcessCDR(1,14382799,1,1,2) [2025-02-02 03:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382799', 'tblTempUsageDetail_20' ) start [2025-02-02 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382799', 'tblTempUsageDetail_20' ) end [2025-02-02 03:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:03:22] Production.INFO: ==18175== Releasing lock... [2025-02-02 03:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:03:22] Production.INFO: 33 MB #Memory Used# [2025-02-02 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:04:05 [end_date_ymd] => 2025-02-02 03:04:05 [RateCDR] => 1 ) [2025-02-02 03:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 00:04:05' and `end` < '2025-02-02 03:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 03:04:19] Production.INFO: count ==701 [2025-02-02 03:04:19] Production.ERROR: pbx CDR StartTime 2025-02-02 00:04:05 - End Time 2025-02-02 03:04:05 [2025-02-02 03:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382804', 'tblTempUsageDetail_20' ) start [2025-02-02 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382804', 'tblTempUsageDetail_20' ) end [2025-02-02 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382804', 'tblTempVendorCDR_20' ) start [2025-02-02 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382804', 'tblTempVendorCDR_20' ) end [2025-02-02 03:04:19] Production.INFO: ProcessCDR(1,14382804,1,1,2) [2025-02-02 03:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382804', 'tblTempUsageDetail_20' ) start [2025-02-02 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382804', 'tblTempUsageDetail_20' ) end [2025-02-02 03:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:04:22] Production.INFO: ==18252== Releasing lock... [2025-02-02 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:04:22] Production.INFO: 33 MB #Memory Used# [2025-02-02 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:05:05 [end_date_ymd] => 2025-02-02 03:05:05 [RateCDR] => 1 ) [2025-02-02 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-02 00:05:05' and `end` < '2025-02-02 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-02 03:05:19] Production.INFO: count ==703 [2025-02-02 03:05:19] Production.ERROR: pbx CDR StartTime 2025-02-02 00:05:05 - End Time 2025-02-02 03:05:05 [2025-02-02 03:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382809', 'tblTempUsageDetail_20' ) start [2025-02-02 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382809', 'tblTempUsageDetail_20' ) end [2025-02-02 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382809', 'tblTempVendorCDR_20' ) start [2025-02-02 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382809', 'tblTempVendorCDR_20' ) end [2025-02-02 03:05:19] Production.INFO: ProcessCDR(1,14382809,1,1,2) [2025-02-02 03:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382809', 'tblTempUsageDetail_20' ) start [2025-02-02 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382809', 'tblTempUsageDetail_20' ) end [2025-02-02 03:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:05:22] Production.INFO: ==18323== Releasing lock... [2025-02-02 03:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:05:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-02 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:06:05 [end_date_ymd] => 2025-02-02 03:06:05 [RateCDR] => 1 ) [2025-02-02 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-02 00:06:05' and `end` < '2025-02-02 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-02 03:06:18] Production.INFO: count ==703 [2025-02-02 03:06:18] Production.ERROR: pbx CDR StartTime 2025-02-02 00:06:05 - End Time 2025-02-02 03:06:05 [2025-02-02 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382814', 'tblTempUsageDetail_20' ) start [2025-02-02 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382814', 'tblTempUsageDetail_20' ) end [2025-02-02 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382814', 'tblTempVendorCDR_20' ) start [2025-02-02 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382814', 'tblTempVendorCDR_20' ) end [2025-02-02 03:06:18] Production.INFO: ProcessCDR(1,14382814,1,1,2) [2025-02-02 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382814', 'tblTempUsageDetail_20' ) start [2025-02-02 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382814', 'tblTempUsageDetail_20' ) end [2025-02-02 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:06:21] Production.INFO: ==18476== Releasing lock... [2025-02-02 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:06:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-02 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:07:05 [end_date_ymd] => 2025-02-02 03:07:05 [RateCDR] => 1 ) [2025-02-02 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-02 00:07:05' and `end` < '2025-02-02 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-02 03:07:18] Production.INFO: count ==702 [2025-02-02 03:07:18] Production.ERROR: pbx CDR StartTime 2025-02-02 00:07:05 - End Time 2025-02-02 03:07:05 [2025-02-02 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382819', 'tblTempUsageDetail_20' ) start [2025-02-02 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382819', 'tblTempUsageDetail_20' ) end [2025-02-02 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382819', 'tblTempVendorCDR_20' ) start [2025-02-02 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382819', 'tblTempVendorCDR_20' ) end [2025-02-02 03:07:18] Production.INFO: ProcessCDR(1,14382819,1,1,2) [2025-02-02 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382819', 'tblTempUsageDetail_20' ) start [2025-02-02 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382819', 'tblTempUsageDetail_20' ) end [2025-02-02 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:07:21] Production.INFO: ==18547== Releasing lock... [2025-02-02 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:07:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-02 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:08:05 [end_date_ymd] => 2025-02-02 03:08:05 [RateCDR] => 1 ) [2025-02-02 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-02 00:08:05' and `end` < '2025-02-02 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-02 03:08:18] Production.INFO: count ==702 [2025-02-02 03:08:19] Production.ERROR: pbx CDR StartTime 2025-02-02 00:08:05 - End Time 2025-02-02 03:08:05 [2025-02-02 03:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382824', 'tblTempUsageDetail_20' ) start [2025-02-02 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382824', 'tblTempUsageDetail_20' ) end [2025-02-02 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382824', 'tblTempVendorCDR_20' ) start [2025-02-02 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382824', 'tblTempVendorCDR_20' ) end [2025-02-02 03:08:19] Production.INFO: ProcessCDR(1,14382824,1,1,2) [2025-02-02 03:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382824', 'tblTempUsageDetail_20' ) start [2025-02-02 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382824', 'tblTempUsageDetail_20' ) end [2025-02-02 03:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:08:22] Production.INFO: ==18620== Releasing lock... [2025-02-02 03:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:08:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-02 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:09:05 [end_date_ymd] => 2025-02-02 03:09:05 [RateCDR] => 1 ) [2025-02-02 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-02 00:09:05' and `end` < '2025-02-02 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-02 03:09:18] Production.INFO: count ==702 [2025-02-02 03:09:18] Production.ERROR: pbx CDR StartTime 2025-02-02 00:09:05 - End Time 2025-02-02 03:09:05 [2025-02-02 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382829', 'tblTempUsageDetail_20' ) start [2025-02-02 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382829', 'tblTempUsageDetail_20' ) end [2025-02-02 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382829', 'tblTempVendorCDR_20' ) start [2025-02-02 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382829', 'tblTempVendorCDR_20' ) end [2025-02-02 03:09:18] Production.INFO: ProcessCDR(1,14382829,1,1,2) [2025-02-02 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382829', 'tblTempUsageDetail_20' ) start [2025-02-02 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382829', 'tblTempUsageDetail_20' ) end [2025-02-02 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:09:21] Production.INFO: ==18774== Releasing lock... [2025-02-02 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:09:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-02 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:10:06 [end_date_ymd] => 2025-02-02 03:10:06 [RateCDR] => 1 ) [2025-02-02 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-02 00:10:06' and `end` < '2025-02-02 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-02 03:10:19] Production.INFO: count ==704 [2025-02-02 03:10:19] Production.ERROR: pbx CDR StartTime 2025-02-02 00:10:06 - End Time 2025-02-02 03:10:06 [2025-02-02 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382835', 'tblTempUsageDetail_20' ) start [2025-02-02 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382835', 'tblTempUsageDetail_20' ) end [2025-02-02 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382835', 'tblTempVendorCDR_20' ) start [2025-02-02 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382835', 'tblTempVendorCDR_20' ) end [2025-02-02 03:10:19] Production.INFO: ProcessCDR(1,14382835,1,1,2) [2025-02-02 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382835', 'tblTempUsageDetail_20' ) start [2025-02-02 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382835', 'tblTempUsageDetail_20' ) end [2025-02-02 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:10:22] Production.INFO: ==18848== Releasing lock... [2025-02-02 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:10:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-02 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:11:05 [end_date_ymd] => 2025-02-02 03:11:05 [RateCDR] => 1 ) [2025-02-02 03:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 00:11:05' and `end` < '2025-02-02 03:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 03:11:19] Production.INFO: count ==677 [2025-02-02 03:11:19] Production.ERROR: pbx CDR StartTime 2025-02-02 00:11:05 - End Time 2025-02-02 03:11:05 [2025-02-02 03:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382840', 'tblTempUsageDetail_20' ) start [2025-02-02 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382840', 'tblTempUsageDetail_20' ) end [2025-02-02 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382840', 'tblTempVendorCDR_20' ) start [2025-02-02 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382840', 'tblTempVendorCDR_20' ) end [2025-02-02 03:11:19] Production.INFO: ProcessCDR(1,14382840,1,1,2) [2025-02-02 03:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382840', 'tblTempUsageDetail_20' ) start [2025-02-02 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382840', 'tblTempUsageDetail_20' ) end [2025-02-02 03:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:11:22] Production.INFO: ==18959== Releasing lock... [2025-02-02 03:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:11:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 03:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:12:06 [end_date_ymd] => 2025-02-02 03:12:06 [RateCDR] => 1 ) [2025-02-02 03:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 00:12:06' and `end` < '2025-02-02 03:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 03:12:18] Production.INFO: count ==669 [2025-02-02 03:12:19] Production.ERROR: pbx CDR StartTime 2025-02-02 00:12:06 - End Time 2025-02-02 03:12:06 [2025-02-02 03:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382845', 'tblTempUsageDetail_20' ) start [2025-02-02 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382845', 'tblTempUsageDetail_20' ) end [2025-02-02 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382845', 'tblTempVendorCDR_20' ) start [2025-02-02 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382845', 'tblTempVendorCDR_20' ) end [2025-02-02 03:12:19] Production.INFO: ProcessCDR(1,14382845,1,1,2) [2025-02-02 03:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382845', 'tblTempUsageDetail_20' ) start [2025-02-02 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382845', 'tblTempUsageDetail_20' ) end [2025-02-02 03:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:12:22] Production.INFO: ==19034== Releasing lock... [2025-02-02 03:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:12:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-02 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:13:05 [end_date_ymd] => 2025-02-02 03:13:05 [RateCDR] => 1 ) [2025-02-02 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-02 00:13:05' and `end` < '2025-02-02 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-02 03:13:18] Production.INFO: count ==669 [2025-02-02 03:13:18] Production.ERROR: pbx CDR StartTime 2025-02-02 00:13:05 - End Time 2025-02-02 03:13:05 [2025-02-02 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382850', 'tblTempUsageDetail_20' ) start [2025-02-02 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382850', 'tblTempUsageDetail_20' ) end [2025-02-02 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382850', 'tblTempVendorCDR_20' ) start [2025-02-02 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382850', 'tblTempVendorCDR_20' ) end [2025-02-02 03:13:18] Production.INFO: ProcessCDR(1,14382850,1,1,2) [2025-02-02 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382850', 'tblTempUsageDetail_20' ) start [2025-02-02 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382850', 'tblTempUsageDetail_20' ) end [2025-02-02 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:13:21] Production.INFO: ==19188== Releasing lock... [2025-02-02 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:13:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-02 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:14:05 [end_date_ymd] => 2025-02-02 03:14:05 [RateCDR] => 1 ) [2025-02-02 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-02 00:14:05' and `end` < '2025-02-02 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-02 03:14:18] Production.INFO: count ==663 [2025-02-02 03:14:18] Production.ERROR: pbx CDR StartTime 2025-02-02 00:14:05 - End Time 2025-02-02 03:14:05 [2025-02-02 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382855', 'tblTempUsageDetail_20' ) start [2025-02-02 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382855', 'tblTempUsageDetail_20' ) end [2025-02-02 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382855', 'tblTempVendorCDR_20' ) start [2025-02-02 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382855', 'tblTempVendorCDR_20' ) end [2025-02-02 03:14:18] Production.INFO: ProcessCDR(1,14382855,1,1,2) [2025-02-02 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382855', 'tblTempUsageDetail_20' ) start [2025-02-02 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382855', 'tblTempUsageDetail_20' ) end [2025-02-02 03:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:14:22] Production.INFO: ==19261== Releasing lock... [2025-02-02 03:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:14:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-02 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:15:05 [end_date_ymd] => 2025-02-02 03:15:05 [RateCDR] => 1 ) [2025-02-02 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-02 00:15:05' and `end` < '2025-02-02 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-02 03:15:17] Production.INFO: count ==663 [2025-02-02 03:15:17] Production.ERROR: pbx CDR StartTime 2025-02-02 00:15:05 - End Time 2025-02-02 03:15:05 [2025-02-02 03:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382860', 'tblTempUsageDetail_20' ) start [2025-02-02 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382860', 'tblTempUsageDetail_20' ) end [2025-02-02 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382860', 'tblTempVendorCDR_20' ) start [2025-02-02 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382860', 'tblTempVendorCDR_20' ) end [2025-02-02 03:15:17] Production.INFO: ProcessCDR(1,14382860,1,1,2) [2025-02-02 03:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382860', 'tblTempUsageDetail_20' ) start [2025-02-02 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382860', 'tblTempUsageDetail_20' ) end [2025-02-02 03:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:15:20] Production.INFO: ==19331== Releasing lock... [2025-02-02 03:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:15:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-02 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:16:05 [end_date_ymd] => 2025-02-02 03:16:05 [RateCDR] => 1 ) [2025-02-02 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-02 00:16:05' and `end` < '2025-02-02 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-02 03:16:18] Production.INFO: count ==650 [2025-02-02 03:16:18] Production.ERROR: pbx CDR StartTime 2025-02-02 00:16:05 - End Time 2025-02-02 03:16:05 [2025-02-02 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382865', 'tblTempUsageDetail_20' ) start [2025-02-02 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382865', 'tblTempUsageDetail_20' ) end [2025-02-02 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382865', 'tblTempVendorCDR_20' ) start [2025-02-02 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382865', 'tblTempVendorCDR_20' ) end [2025-02-02 03:16:18] Production.INFO: ProcessCDR(1,14382865,1,1,2) [2025-02-02 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382865', 'tblTempUsageDetail_20' ) start [2025-02-02 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382865', 'tblTempUsageDetail_20' ) end [2025-02-02 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:16:21] Production.INFO: ==19404== Releasing lock... [2025-02-02 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:16:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-02 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:17:05 [end_date_ymd] => 2025-02-02 03:17:05 [RateCDR] => 1 ) [2025-02-02 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-02 00:17:05' and `end` < '2025-02-02 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-02 03:17:18] Production.INFO: count ==639 [2025-02-02 03:17:18] Production.ERROR: pbx CDR StartTime 2025-02-02 00:17:05 - End Time 2025-02-02 03:17:05 [2025-02-02 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382870', 'tblTempUsageDetail_20' ) start [2025-02-02 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382870', 'tblTempUsageDetail_20' ) end [2025-02-02 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382870', 'tblTempVendorCDR_20' ) start [2025-02-02 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382870', 'tblTempVendorCDR_20' ) end [2025-02-02 03:17:18] Production.INFO: ProcessCDR(1,14382870,1,1,2) [2025-02-02 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382870', 'tblTempUsageDetail_20' ) start [2025-02-02 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382870', 'tblTempUsageDetail_20' ) end [2025-02-02 03:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:17:22] Production.INFO: ==19554== Releasing lock... [2025-02-02 03:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:17:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-02 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:18:05 [end_date_ymd] => 2025-02-02 03:18:05 [RateCDR] => 1 ) [2025-02-02 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-02 00:18:05' and `end` < '2025-02-02 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-02 03:18:18] Production.INFO: count ==635 [2025-02-02 03:18:18] Production.ERROR: pbx CDR StartTime 2025-02-02 00:18:05 - End Time 2025-02-02 03:18:05 [2025-02-02 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382875', 'tblTempUsageDetail_20' ) start [2025-02-02 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382875', 'tblTempUsageDetail_20' ) end [2025-02-02 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382875', 'tblTempVendorCDR_20' ) start [2025-02-02 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382875', 'tblTempVendorCDR_20' ) end [2025-02-02 03:18:18] Production.INFO: ProcessCDR(1,14382875,1,1,2) [2025-02-02 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382875', 'tblTempUsageDetail_20' ) start [2025-02-02 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382875', 'tblTempUsageDetail_20' ) end [2025-02-02 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:18:21] Production.INFO: ==19628== Releasing lock... [2025-02-02 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:18:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-02 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:19:05 [end_date_ymd] => 2025-02-02 03:19:05 [RateCDR] => 1 ) [2025-02-02 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-02 00:19:05' and `end` < '2025-02-02 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-02 03:19:18] Production.INFO: count ==628 [2025-02-02 03:19:18] Production.ERROR: pbx CDR StartTime 2025-02-02 00:19:05 - End Time 2025-02-02 03:19:05 [2025-02-02 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382880', 'tblTempUsageDetail_20' ) start [2025-02-02 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382880', 'tblTempUsageDetail_20' ) end [2025-02-02 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382880', 'tblTempVendorCDR_20' ) start [2025-02-02 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382880', 'tblTempVendorCDR_20' ) end [2025-02-02 03:19:18] Production.INFO: ProcessCDR(1,14382880,1,1,2) [2025-02-02 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382880', 'tblTempUsageDetail_20' ) start [2025-02-02 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382880', 'tblTempUsageDetail_20' ) end [2025-02-02 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:19:21] Production.INFO: ==19700== Releasing lock... [2025-02-02 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:19:21] Production.INFO: 32 MB #Memory Used# [2025-02-02 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:20:06 [end_date_ymd] => 2025-02-02 03:20:06 [RateCDR] => 1 ) [2025-02-02 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-02 00:20:06' and `end` < '2025-02-02 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-02 03:20:19] Production.INFO: count ==626 [2025-02-02 03:20:19] Production.ERROR: pbx CDR StartTime 2025-02-02 00:20:06 - End Time 2025-02-02 03:20:06 [2025-02-02 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382886', 'tblTempUsageDetail_20' ) start [2025-02-02 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382886', 'tblTempUsageDetail_20' ) end [2025-02-02 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382886', 'tblTempVendorCDR_20' ) start [2025-02-02 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382886', 'tblTempVendorCDR_20' ) end [2025-02-02 03:20:19] Production.INFO: ProcessCDR(1,14382886,1,1,2) [2025-02-02 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382886', 'tblTempUsageDetail_20' ) start [2025-02-02 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382886', 'tblTempUsageDetail_20' ) end [2025-02-02 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:20:22] Production.INFO: ==19773== Releasing lock... [2025-02-02 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:20:22] Production.INFO: 32 MB #Memory Used# [2025-02-02 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:21:05 [end_date_ymd] => 2025-02-02 03:21:05 [RateCDR] => 1 ) [2025-02-02 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-02 00:21:05' and `end` < '2025-02-02 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-02 03:21:19] Production.INFO: count ==604 [2025-02-02 03:21:19] Production.ERROR: pbx CDR StartTime 2025-02-02 00:21:05 - End Time 2025-02-02 03:21:05 [2025-02-02 03:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382891', 'tblTempUsageDetail_20' ) start [2025-02-02 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382891', 'tblTempUsageDetail_20' ) end [2025-02-02 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382891', 'tblTempVendorCDR_20' ) start [2025-02-02 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382891', 'tblTempVendorCDR_20' ) end [2025-02-02 03:21:19] Production.INFO: ProcessCDR(1,14382891,1,1,2) [2025-02-02 03:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382891', 'tblTempUsageDetail_20' ) start [2025-02-02 03:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382891', 'tblTempUsageDetail_20' ) end [2025-02-02 03:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:21:22] Production.INFO: ==19852== Releasing lock... [2025-02-02 03:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:21:22] Production.INFO: 32 MB #Memory Used# [2025-02-02 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:22:05 [end_date_ymd] => 2025-02-02 03:22:05 [RateCDR] => 1 ) [2025-02-02 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-02 00:22:05' and `end` < '2025-02-02 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-02 03:22:18] Production.INFO: count ==603 [2025-02-02 03:22:18] Production.ERROR: pbx CDR StartTime 2025-02-02 00:22:05 - End Time 2025-02-02 03:22:05 [2025-02-02 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382896', 'tblTempUsageDetail_20' ) start [2025-02-02 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382896', 'tblTempUsageDetail_20' ) end [2025-02-02 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382896', 'tblTempVendorCDR_20' ) start [2025-02-02 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382896', 'tblTempVendorCDR_20' ) end [2025-02-02 03:22:18] Production.INFO: ProcessCDR(1,14382896,1,1,2) [2025-02-02 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382896', 'tblTempUsageDetail_20' ) start [2025-02-02 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382896', 'tblTempUsageDetail_20' ) end [2025-02-02 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:22:21] Production.INFO: ==19925== Releasing lock... [2025-02-02 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:22:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-02 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:23:05 [end_date_ymd] => 2025-02-02 03:23:05 [RateCDR] => 1 ) [2025-02-02 03:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 00:23:05' and `end` < '2025-02-02 03:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 03:23:18] Production.INFO: count ==602 [2025-02-02 03:23:18] Production.ERROR: pbx CDR StartTime 2025-02-02 00:23:05 - End Time 2025-02-02 03:23:05 [2025-02-02 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382901', 'tblTempUsageDetail_20' ) start [2025-02-02 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382901', 'tblTempUsageDetail_20' ) end [2025-02-02 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382901', 'tblTempVendorCDR_20' ) start [2025-02-02 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382901', 'tblTempVendorCDR_20' ) end [2025-02-02 03:23:18] Production.INFO: ProcessCDR(1,14382901,1,1,2) [2025-02-02 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382901', 'tblTempUsageDetail_20' ) start [2025-02-02 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382901', 'tblTempUsageDetail_20' ) end [2025-02-02 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:23:21] Production.INFO: ==19998== Releasing lock... [2025-02-02 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:23:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-02 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:24:05 [end_date_ymd] => 2025-02-02 03:24:05 [RateCDR] => 1 ) [2025-02-02 03:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 00:24:05' and `end` < '2025-02-02 03:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 03:24:19] Production.INFO: count ==602 [2025-02-02 03:24:19] Production.ERROR: pbx CDR StartTime 2025-02-02 00:24:05 - End Time 2025-02-02 03:24:05 [2025-02-02 03:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382906', 'tblTempUsageDetail_20' ) start [2025-02-02 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382906', 'tblTempUsageDetail_20' ) end [2025-02-02 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382906', 'tblTempVendorCDR_20' ) start [2025-02-02 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382906', 'tblTempVendorCDR_20' ) end [2025-02-02 03:24:19] Production.INFO: ProcessCDR(1,14382906,1,1,2) [2025-02-02 03:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382906', 'tblTempUsageDetail_20' ) start [2025-02-02 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382906', 'tblTempUsageDetail_20' ) end [2025-02-02 03:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:24:22] Production.INFO: ==20075== Releasing lock... [2025-02-02 03:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:24:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-02 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:25:05 [end_date_ymd] => 2025-02-02 03:25:05 [RateCDR] => 1 ) [2025-02-02 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-02 00:25:05' and `end` < '2025-02-02 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-02 03:25:18] Production.INFO: count ==602 [2025-02-02 03:25:18] Production.ERROR: pbx CDR StartTime 2025-02-02 00:25:05 - End Time 2025-02-02 03:25:05 [2025-02-02 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382911', 'tblTempUsageDetail_20' ) start [2025-02-02 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382911', 'tblTempUsageDetail_20' ) end [2025-02-02 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382911', 'tblTempVendorCDR_20' ) start [2025-02-02 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382911', 'tblTempVendorCDR_20' ) end [2025-02-02 03:25:18] Production.INFO: ProcessCDR(1,14382911,1,1,2) [2025-02-02 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382911', 'tblTempUsageDetail_20' ) start [2025-02-02 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382911', 'tblTempUsageDetail_20' ) end [2025-02-02 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:25:21] Production.INFO: ==20149== Releasing lock... [2025-02-02 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:25:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-02 03:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:26:06 [end_date_ymd] => 2025-02-02 03:26:06 [RateCDR] => 1 ) [2025-02-02 03: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-02 00:26:06' and `end` < '2025-02-02 03: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-02 03:26:19] Production.INFO: count ==602 [2025-02-02 03:26:19] Production.ERROR: pbx CDR StartTime 2025-02-02 00:26:06 - End Time 2025-02-02 03:26:06 [2025-02-02 03:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382916', 'tblTempUsageDetail_20' ) start [2025-02-02 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382916', 'tblTempUsageDetail_20' ) end [2025-02-02 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382916', 'tblTempVendorCDR_20' ) start [2025-02-02 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382916', 'tblTempVendorCDR_20' ) end [2025-02-02 03:26:19] Production.INFO: ProcessCDR(1,14382916,1,1,2) [2025-02-02 03:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382916', 'tblTempUsageDetail_20' ) start [2025-02-02 03:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382916', 'tblTempUsageDetail_20' ) end [2025-02-02 03:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:26:23] Production.INFO: ==20220== Releasing lock... [2025-02-02 03:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:26:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-02 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:27:05 [end_date_ymd] => 2025-02-02 03:27:05 [RateCDR] => 1 ) [2025-02-02 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-02 00:27:05' and `end` < '2025-02-02 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-02 03:27:18] Production.INFO: count ==602 [2025-02-02 03:27:18] Production.ERROR: pbx CDR StartTime 2025-02-02 00:27:05 - End Time 2025-02-02 03:27:05 [2025-02-02 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382921', 'tblTempUsageDetail_20' ) start [2025-02-02 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382921', 'tblTempUsageDetail_20' ) end [2025-02-02 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382921', 'tblTempVendorCDR_20' ) start [2025-02-02 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382921', 'tblTempVendorCDR_20' ) end [2025-02-02 03:27:18] Production.INFO: ProcessCDR(1,14382921,1,1,2) [2025-02-02 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382921', 'tblTempUsageDetail_20' ) start [2025-02-02 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382921', 'tblTempUsageDetail_20' ) end [2025-02-02 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:27:21] Production.INFO: ==20331== Releasing lock... [2025-02-02 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:27:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-02 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:28:05 [end_date_ymd] => 2025-02-02 03:28:05 [RateCDR] => 1 ) [2025-02-02 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-02 00:28:05' and `end` < '2025-02-02 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-02 03:28:17] Production.INFO: count ==600 [2025-02-02 03:28:18] Production.ERROR: pbx CDR StartTime 2025-02-02 00:28:05 - End Time 2025-02-02 03:28:05 [2025-02-02 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382926', 'tblTempUsageDetail_20' ) start [2025-02-02 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382926', 'tblTempUsageDetail_20' ) end [2025-02-02 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382926', 'tblTempVendorCDR_20' ) start [2025-02-02 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382926', 'tblTempVendorCDR_20' ) end [2025-02-02 03:28:18] Production.INFO: ProcessCDR(1,14382926,1,1,2) [2025-02-02 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382926', 'tblTempUsageDetail_20' ) start [2025-02-02 03:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382926', 'tblTempUsageDetail_20' ) end [2025-02-02 03:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:28:20] Production.INFO: ==20405== Releasing lock... [2025-02-02 03:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:28:20] Production.INFO: 31.75 MB #Memory Used# [2025-02-02 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:29:05 [end_date_ymd] => 2025-02-02 03:29:05 [RateCDR] => 1 ) [2025-02-02 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-02 00:29:05' and `end` < '2025-02-02 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-02 03:29:18] Production.INFO: count ==598 [2025-02-02 03:29:18] Production.ERROR: pbx CDR StartTime 2025-02-02 00:29:05 - End Time 2025-02-02 03:29:05 [2025-02-02 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382931', 'tblTempUsageDetail_20' ) start [2025-02-02 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382931', 'tblTempUsageDetail_20' ) end [2025-02-02 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382931', 'tblTempVendorCDR_20' ) start [2025-02-02 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382931', 'tblTempVendorCDR_20' ) end [2025-02-02 03:29:18] Production.INFO: ProcessCDR(1,14382931,1,1,2) [2025-02-02 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382931', 'tblTempUsageDetail_20' ) start [2025-02-02 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382931', 'tblTempUsageDetail_20' ) end [2025-02-02 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:29:21] Production.INFO: ==20477== Releasing lock... [2025-02-02 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:29:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-02 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:30:06 [end_date_ymd] => 2025-02-02 03:30:06 [RateCDR] => 1 ) [2025-02-02 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-02 00:30:06' and `end` < '2025-02-02 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-02 03:30:19] Production.INFO: count ==593 [2025-02-02 03:30:19] Production.ERROR: pbx CDR StartTime 2025-02-02 00:30:06 - End Time 2025-02-02 03:30:06 [2025-02-02 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382937', 'tblTempUsageDetail_20' ) start [2025-02-02 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382937', 'tblTempUsageDetail_20' ) end [2025-02-02 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382937', 'tblTempVendorCDR_20' ) start [2025-02-02 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382937', 'tblTempVendorCDR_20' ) end [2025-02-02 03:30:19] Production.INFO: ProcessCDR(1,14382937,1,1,2) [2025-02-02 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382937', 'tblTempUsageDetail_20' ) start [2025-02-02 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382937', 'tblTempUsageDetail_20' ) end [2025-02-02 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:30:22] Production.INFO: ==20550== Releasing lock... [2025-02-02 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:30:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-02 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:31:05 [end_date_ymd] => 2025-02-02 03:31:05 [RateCDR] => 1 ) [2025-02-02 03:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 00:31:05' and `end` < '2025-02-02 03:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 03:31:18] Production.INFO: count ==563 [2025-02-02 03:31:18] Production.ERROR: pbx CDR StartTime 2025-02-02 00:31:05 - End Time 2025-02-02 03:31:05 [2025-02-02 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382942', 'tblTempUsageDetail_20' ) start [2025-02-02 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382942', 'tblTempUsageDetail_20' ) end [2025-02-02 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382942', 'tblTempVendorCDR_20' ) start [2025-02-02 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382942', 'tblTempVendorCDR_20' ) end [2025-02-02 03:31:18] Production.INFO: ProcessCDR(1,14382942,1,1,2) [2025-02-02 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382942', 'tblTempUsageDetail_20' ) start [2025-02-02 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382942', 'tblTempUsageDetail_20' ) end [2025-02-02 03:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:31:21] Production.INFO: ==20627== Releasing lock... [2025-02-02 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:31:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-02 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:32:06 [end_date_ymd] => 2025-02-02 03:32:06 [RateCDR] => 1 ) [2025-02-02 03:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 00:32:06' and `end` < '2025-02-02 03: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-02 03:32:18] Production.INFO: count ==563 [2025-02-02 03:32:18] Production.ERROR: pbx CDR StartTime 2025-02-02 00:32:06 - End Time 2025-02-02 03:32:06 [2025-02-02 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382947', 'tblTempUsageDetail_20' ) start [2025-02-02 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382947', 'tblTempUsageDetail_20' ) end [2025-02-02 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382947', 'tblTempVendorCDR_20' ) start [2025-02-02 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382947', 'tblTempVendorCDR_20' ) end [2025-02-02 03:32:18] Production.INFO: ProcessCDR(1,14382947,1,1,2) [2025-02-02 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382947', 'tblTempUsageDetail_20' ) start [2025-02-02 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382947', 'tblTempUsageDetail_20' ) end [2025-02-02 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:32:22] Production.INFO: ==20700== Releasing lock... [2025-02-02 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:32:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-02 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:33:05 [end_date_ymd] => 2025-02-02 03:33:05 [RateCDR] => 1 ) [2025-02-02 03:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 00:33:05' and `end` < '2025-02-02 03:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 03:33:18] Production.INFO: count ==563 [2025-02-02 03:33:18] Production.ERROR: pbx CDR StartTime 2025-02-02 00:33:05 - End Time 2025-02-02 03:33:05 [2025-02-02 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382952', 'tblTempUsageDetail_20' ) start [2025-02-02 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382952', 'tblTempUsageDetail_20' ) end [2025-02-02 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382952', 'tblTempVendorCDR_20' ) start [2025-02-02 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382952', 'tblTempVendorCDR_20' ) end [2025-02-02 03:33:18] Production.INFO: ProcessCDR(1,14382952,1,1,2) [2025-02-02 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382952', 'tblTempUsageDetail_20' ) start [2025-02-02 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382952', 'tblTempUsageDetail_20' ) end [2025-02-02 03:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:33:22] Production.INFO: ==20770== Releasing lock... [2025-02-02 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:33:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-02 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:34:05 [end_date_ymd] => 2025-02-02 03:34:05 [RateCDR] => 1 ) [2025-02-02 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-02 00:34:05' and `end` < '2025-02-02 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-02 03:34:18] Production.INFO: count ==563 [2025-02-02 03:34:18] Production.ERROR: pbx CDR StartTime 2025-02-02 00:34:05 - End Time 2025-02-02 03:34:05 [2025-02-02 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382957', 'tblTempUsageDetail_20' ) start [2025-02-02 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382957', 'tblTempUsageDetail_20' ) end [2025-02-02 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382957', 'tblTempVendorCDR_20' ) start [2025-02-02 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382957', 'tblTempVendorCDR_20' ) end [2025-02-02 03:34:18] Production.INFO: ProcessCDR(1,14382957,1,1,2) [2025-02-02 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382957', 'tblTempUsageDetail_20' ) start [2025-02-02 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382957', 'tblTempUsageDetail_20' ) end [2025-02-02 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:34:22] Production.INFO: ==20844== Releasing lock... [2025-02-02 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:34:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-02 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:35:05 [end_date_ymd] => 2025-02-02 03:35:05 [RateCDR] => 1 ) [2025-02-02 03:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 00:35:05' and `end` < '2025-02-02 03:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 03:35:18] Production.INFO: count ==561 [2025-02-02 03:35:18] Production.ERROR: pbx CDR StartTime 2025-02-02 00:35:05 - End Time 2025-02-02 03:35:05 [2025-02-02 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382962', 'tblTempUsageDetail_20' ) start [2025-02-02 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382962', 'tblTempUsageDetail_20' ) end [2025-02-02 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382962', 'tblTempVendorCDR_20' ) start [2025-02-02 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382962', 'tblTempVendorCDR_20' ) end [2025-02-02 03:35:18] Production.INFO: ProcessCDR(1,14382962,1,1,2) [2025-02-02 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382962', 'tblTempUsageDetail_20' ) start [2025-02-02 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382962', 'tblTempUsageDetail_20' ) end [2025-02-02 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:35:22] Production.INFO: ==20918== Releasing lock... [2025-02-02 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:35:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-02 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:36:05 [end_date_ymd] => 2025-02-02 03:36:05 [RateCDR] => 1 ) [2025-02-02 03:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 00:36:05' and `end` < '2025-02-02 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-02 03:36:17] Production.INFO: count ==560 [2025-02-02 03:36:18] Production.ERROR: pbx CDR StartTime 2025-02-02 00:36:05 - End Time 2025-02-02 03:36:05 [2025-02-02 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382967', 'tblTempUsageDetail_20' ) start [2025-02-02 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382967', 'tblTempUsageDetail_20' ) end [2025-02-02 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382967', 'tblTempVendorCDR_20' ) start [2025-02-02 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382967', 'tblTempVendorCDR_20' ) end [2025-02-02 03:36:18] Production.INFO: ProcessCDR(1,14382967,1,1,2) [2025-02-02 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382967', 'tblTempUsageDetail_20' ) start [2025-02-02 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382967', 'tblTempUsageDetail_20' ) end [2025-02-02 03:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:36:21] Production.INFO: ==20991== Releasing lock... [2025-02-02 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:36:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-02 03:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:37:06 [end_date_ymd] => 2025-02-02 03:37:06 [RateCDR] => 1 ) [2025-02-02 03: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-02 00:37:06' and `end` < '2025-02-02 03: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-02 03:37:18] Production.INFO: count ==557 [2025-02-02 03:37:18] Production.ERROR: pbx CDR StartTime 2025-02-02 00:37:06 - End Time 2025-02-02 03:37:06 [2025-02-02 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382972', 'tblTempUsageDetail_20' ) start [2025-02-02 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382972', 'tblTempUsageDetail_20' ) end [2025-02-02 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382972', 'tblTempVendorCDR_20' ) start [2025-02-02 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382972', 'tblTempVendorCDR_20' ) end [2025-02-02 03:37:19] Production.INFO: ProcessCDR(1,14382972,1,1,2) [2025-02-02 03:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382972', 'tblTempUsageDetail_20' ) start [2025-02-02 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382972', 'tblTempUsageDetail_20' ) end [2025-02-02 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:37:22] Production.INFO: ==21066== Releasing lock... [2025-02-02 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:37:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-02 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:38:05 [end_date_ymd] => 2025-02-02 03:38:05 [RateCDR] => 1 ) [2025-02-02 03:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 00:38:05' and `end` < '2025-02-02 03:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 03:38:19] Production.INFO: count ==557 [2025-02-02 03:38:19] Production.ERROR: pbx CDR StartTime 2025-02-02 00:38:05 - End Time 2025-02-02 03:38:05 [2025-02-02 03:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382977', 'tblTempUsageDetail_20' ) start [2025-02-02 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382977', 'tblTempUsageDetail_20' ) end [2025-02-02 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382977', 'tblTempVendorCDR_20' ) start [2025-02-02 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382977', 'tblTempVendorCDR_20' ) end [2025-02-02 03:38:19] Production.INFO: ProcessCDR(1,14382977,1,1,2) [2025-02-02 03:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382977', 'tblTempUsageDetail_20' ) start [2025-02-02 03:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382977', 'tblTempUsageDetail_20' ) end [2025-02-02 03:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:38:23] Production.INFO: ==21140== Releasing lock... [2025-02-02 03:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:38:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-02 03:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:39:06 [end_date_ymd] => 2025-02-02 03:39:06 [RateCDR] => 1 ) [2025-02-02 03: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-02 00:39:06' and `end` < '2025-02-02 03: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-02 03:39:19] Production.INFO: count ==556 [2025-02-02 03:39:19] Production.ERROR: pbx CDR StartTime 2025-02-02 00:39:06 - End Time 2025-02-02 03:39:06 [2025-02-02 03:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382982', 'tblTempUsageDetail_20' ) start [2025-02-02 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382982', 'tblTempUsageDetail_20' ) end [2025-02-02 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382982', 'tblTempVendorCDR_20' ) start [2025-02-02 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382982', 'tblTempVendorCDR_20' ) end [2025-02-02 03:39:19] Production.INFO: ProcessCDR(1,14382982,1,1,2) [2025-02-02 03:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382982', 'tblTempUsageDetail_20' ) start [2025-02-02 03:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382982', 'tblTempUsageDetail_20' ) end [2025-02-02 03:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:39:23] Production.INFO: ==21213== Releasing lock... [2025-02-02 03:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:39:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-02 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:40:06 [end_date_ymd] => 2025-02-02 03:40:06 [RateCDR] => 1 ) [2025-02-02 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-02 00:40:06' and `end` < '2025-02-02 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-02 03:40:19] Production.INFO: count ==548 [2025-02-02 03:40:19] Production.ERROR: pbx CDR StartTime 2025-02-02 00:40:06 - End Time 2025-02-02 03:40:06 [2025-02-02 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382988', 'tblTempUsageDetail_20' ) start [2025-02-02 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382988', 'tblTempUsageDetail_20' ) end [2025-02-02 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382988', 'tblTempVendorCDR_20' ) start [2025-02-02 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382988', 'tblTempVendorCDR_20' ) end [2025-02-02 03:40:19] Production.INFO: ProcessCDR(1,14382988,1,1,2) [2025-02-02 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382988', 'tblTempUsageDetail_20' ) start [2025-02-02 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382988', 'tblTempUsageDetail_20' ) end [2025-02-02 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:40:22] Production.INFO: ==21287== Releasing lock... [2025-02-02 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:40:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-02 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:41:05 [end_date_ymd] => 2025-02-02 03:41:05 [RateCDR] => 1 ) [2025-02-02 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-02 00:41:05' and `end` < '2025-02-02 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-02 03:41:18] Production.INFO: count ==522 [2025-02-02 03:41:18] Production.ERROR: pbx CDR StartTime 2025-02-02 00:41:05 - End Time 2025-02-02 03:41:05 [2025-02-02 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382993', 'tblTempUsageDetail_20' ) start [2025-02-02 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382993', 'tblTempUsageDetail_20' ) end [2025-02-02 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382993', 'tblTempVendorCDR_20' ) start [2025-02-02 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382993', 'tblTempVendorCDR_20' ) end [2025-02-02 03:41:18] Production.INFO: ProcessCDR(1,14382993,1,1,2) [2025-02-02 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382993', 'tblTempUsageDetail_20' ) start [2025-02-02 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382993', 'tblTempUsageDetail_20' ) end [2025-02-02 03:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:41:22] Production.INFO: ==21359== Releasing lock... [2025-02-02 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:41:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-02 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:42:05 [end_date_ymd] => 2025-02-02 03:42:05 [RateCDR] => 1 ) [2025-02-02 03:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 00:42:05' and `end` < '2025-02-02 03:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 03:42:18] Production.INFO: count ==518 [2025-02-02 03:42:18] Production.ERROR: pbx CDR StartTime 2025-02-02 00:42:05 - End Time 2025-02-02 03:42:05 [2025-02-02 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382998', 'tblTempUsageDetail_20' ) start [2025-02-02 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14382998', 'tblTempUsageDetail_20' ) end [2025-02-02 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382998', 'tblTempVendorCDR_20' ) start [2025-02-02 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14382998', 'tblTempVendorCDR_20' ) end [2025-02-02 03:42:18] Production.INFO: ProcessCDR(1,14382998,1,1,2) [2025-02-02 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14382998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14382998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14382998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14382998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382998', 'tblTempUsageDetail_20' ) start [2025-02-02 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14382998', 'tblTempUsageDetail_20' ) end [2025-02-02 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:42:22] Production.INFO: ==21431== Releasing lock... [2025-02-02 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:42:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-02 03:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:43:06 [end_date_ymd] => 2025-02-02 03:43:06 [RateCDR] => 1 ) [2025-02-02 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-02 00:43:06' and `end` < '2025-02-02 03: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-02 03:43:19] Production.INFO: count ==517 [2025-02-02 03:43:19] Production.ERROR: pbx CDR StartTime 2025-02-02 00:43:06 - End Time 2025-02-02 03:43:06 [2025-02-02 03:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383003', 'tblTempUsageDetail_20' ) start [2025-02-02 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383003', 'tblTempUsageDetail_20' ) end [2025-02-02 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383003', 'tblTempVendorCDR_20' ) start [2025-02-02 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383003', 'tblTempVendorCDR_20' ) end [2025-02-02 03:43:19] Production.INFO: ProcessCDR(1,14383003,1,1,2) [2025-02-02 03:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383003', 'tblTempUsageDetail_20' ) start [2025-02-02 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383003', 'tblTempUsageDetail_20' ) end [2025-02-02 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:43:22] Production.INFO: ==21550== Releasing lock... [2025-02-02 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:43:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-02 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:44:06 [end_date_ymd] => 2025-02-02 03:44:06 [RateCDR] => 1 ) [2025-02-02 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-02 00:44:06' and `end` < '2025-02-02 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-02 03:44:19] Production.INFO: count ==516 [2025-02-02 03:44:19] Production.ERROR: pbx CDR StartTime 2025-02-02 00:44:06 - End Time 2025-02-02 03:44:06 [2025-02-02 03:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383008', 'tblTempUsageDetail_20' ) start [2025-02-02 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383008', 'tblTempUsageDetail_20' ) end [2025-02-02 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383008', 'tblTempVendorCDR_20' ) start [2025-02-02 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383008', 'tblTempVendorCDR_20' ) end [2025-02-02 03:44:19] Production.INFO: ProcessCDR(1,14383008,1,1,2) [2025-02-02 03:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383008', 'tblTempUsageDetail_20' ) start [2025-02-02 03:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383008', 'tblTempUsageDetail_20' ) end [2025-02-02 03:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:44:23] Production.INFO: ==21620== Releasing lock... [2025-02-02 03:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:44:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-02 03:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:45:06 [end_date_ymd] => 2025-02-02 03:45:06 [RateCDR] => 1 ) [2025-02-02 03: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-02 00:45:06' and `end` < '2025-02-02 03: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-02 03:45:19] Production.INFO: count ==516 [2025-02-02 03:45:19] Production.ERROR: pbx CDR StartTime 2025-02-02 00:45:06 - End Time 2025-02-02 03:45:06 [2025-02-02 03:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383013', 'tblTempUsageDetail_20' ) start [2025-02-02 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383013', 'tblTempUsageDetail_20' ) end [2025-02-02 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383013', 'tblTempVendorCDR_20' ) start [2025-02-02 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383013', 'tblTempVendorCDR_20' ) end [2025-02-02 03:45:19] Production.INFO: ProcessCDR(1,14383013,1,1,2) [2025-02-02 03:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383013', 'tblTempUsageDetail_20' ) start [2025-02-02 03:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383013', 'tblTempUsageDetail_20' ) end [2025-02-02 03:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:45:23] Production.INFO: ==21691== Releasing lock... [2025-02-02 03:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:45:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-02 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:46:05 [end_date_ymd] => 2025-02-02 03:46:05 [RateCDR] => 1 ) [2025-02-02 03:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 00:46:05' and `end` < '2025-02-02 03:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 03:46:18] Production.INFO: count ==516 [2025-02-02 03:46:18] Production.ERROR: pbx CDR StartTime 2025-02-02 00:46:05 - End Time 2025-02-02 03:46:05 [2025-02-02 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383018', 'tblTempUsageDetail_20' ) start [2025-02-02 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383018', 'tblTempUsageDetail_20' ) end [2025-02-02 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383018', 'tblTempVendorCDR_20' ) start [2025-02-02 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383018', 'tblTempVendorCDR_20' ) end [2025-02-02 03:46:18] Production.INFO: ProcessCDR(1,14383018,1,1,2) [2025-02-02 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383018', 'tblTempUsageDetail_20' ) start [2025-02-02 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383018', 'tblTempUsageDetail_20' ) end [2025-02-02 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:46:21] Production.INFO: ==21761== Releasing lock... [2025-02-02 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:46:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-02 03:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:47:06 [end_date_ymd] => 2025-02-02 03:47:06 [RateCDR] => 1 ) [2025-02-02 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-02 00:47:06' and `end` < '2025-02-02 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-02 03:47:19] Production.INFO: count ==516 [2025-02-02 03:47:19] Production.ERROR: pbx CDR StartTime 2025-02-02 00:47:06 - End Time 2025-02-02 03:47:06 [2025-02-02 03:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383023', 'tblTempUsageDetail_20' ) start [2025-02-02 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383023', 'tblTempUsageDetail_20' ) end [2025-02-02 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383023', 'tblTempVendorCDR_20' ) start [2025-02-02 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383023', 'tblTempVendorCDR_20' ) end [2025-02-02 03:47:19] Production.INFO: ProcessCDR(1,14383023,1,1,2) [2025-02-02 03:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383023', 'tblTempUsageDetail_20' ) start [2025-02-02 03:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383023', 'tblTempUsageDetail_20' ) end [2025-02-02 03:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:47:23] Production.INFO: ==21832== Releasing lock... [2025-02-02 03:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:47:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-02 03:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:48:06 [end_date_ymd] => 2025-02-02 03:48:06 [RateCDR] => 1 ) [2025-02-02 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-02 00:48:06' and `end` < '2025-02-02 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-02 03:48:18] Production.INFO: count ==516 [2025-02-02 03:48:18] Production.ERROR: pbx CDR StartTime 2025-02-02 00:48:06 - End Time 2025-02-02 03:48:06 [2025-02-02 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383028', 'tblTempUsageDetail_20' ) start [2025-02-02 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383028', 'tblTempUsageDetail_20' ) end [2025-02-02 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383028', 'tblTempVendorCDR_20' ) start [2025-02-02 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383028', 'tblTempVendorCDR_20' ) end [2025-02-02 03:48:18] Production.INFO: ProcessCDR(1,14383028,1,1,2) [2025-02-02 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383028', 'tblTempUsageDetail_20' ) start [2025-02-02 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383028', 'tblTempUsageDetail_20' ) end [2025-02-02 03:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:48:22] Production.INFO: ==21900== Releasing lock... [2025-02-02 03:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:48:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-02 03:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:49:06 [end_date_ymd] => 2025-02-02 03:49:06 [RateCDR] => 1 ) [2025-02-02 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-02 00:49:06' and `end` < '2025-02-02 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-02 03:49:20] Production.INFO: count ==512 [2025-02-02 03:49:20] Production.ERROR: pbx CDR StartTime 2025-02-02 00:49:06 - End Time 2025-02-02 03:49:06 [2025-02-02 03:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383033', 'tblTempUsageDetail_20' ) start [2025-02-02 03:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383033', 'tblTempUsageDetail_20' ) end [2025-02-02 03:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383033', 'tblTempVendorCDR_20' ) start [2025-02-02 03:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383033', 'tblTempVendorCDR_20' ) end [2025-02-02 03:49:20] Production.INFO: ProcessCDR(1,14383033,1,1,2) [2025-02-02 03:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383033', 'tblTempUsageDetail_20' ) start [2025-02-02 03:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383033', 'tblTempUsageDetail_20' ) end [2025-02-02 03:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:49:24] Production.INFO: ==22011== Releasing lock... [2025-02-02 03:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:49:24] Production.INFO: 31.25 MB #Memory Used# [2025-02-02 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:50:06 [end_date_ymd] => 2025-02-02 03:50:06 [RateCDR] => 1 ) [2025-02-02 03:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 00:50:06' and `end` < '2025-02-02 03:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 03:50:19] Production.INFO: count ==508 [2025-02-02 03:50:19] Production.ERROR: pbx CDR StartTime 2025-02-02 00:50:06 - End Time 2025-02-02 03:50:06 [2025-02-02 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383039', 'tblTempUsageDetail_20' ) start [2025-02-02 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383039', 'tblTempUsageDetail_20' ) end [2025-02-02 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383039', 'tblTempVendorCDR_20' ) start [2025-02-02 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383039', 'tblTempVendorCDR_20' ) end [2025-02-02 03:50:19] Production.INFO: ProcessCDR(1,14383039,1,1,2) [2025-02-02 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383039', 'tblTempUsageDetail_20' ) start [2025-02-02 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383039', 'tblTempUsageDetail_20' ) end [2025-02-02 03:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:50:23] Production.INFO: ==22092== Releasing lock... [2025-02-02 03:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:50:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-02 03:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:51:06 [end_date_ymd] => 2025-02-02 03:51:06 [RateCDR] => 1 ) [2025-02-02 03: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-02 00:51:06' and `end` < '2025-02-02 03: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-02 03:51:18] Production.INFO: count ==489 [2025-02-02 03:51:18] Production.ERROR: pbx CDR StartTime 2025-02-02 00:51:06 - End Time 2025-02-02 03:51:06 [2025-02-02 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383044', 'tblTempUsageDetail_20' ) start [2025-02-02 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383044', 'tblTempUsageDetail_20' ) end [2025-02-02 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383044', 'tblTempVendorCDR_20' ) start [2025-02-02 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383044', 'tblTempVendorCDR_20' ) end [2025-02-02 03:51:18] Production.INFO: ProcessCDR(1,14383044,1,1,2) [2025-02-02 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383044', 'tblTempUsageDetail_20' ) start [2025-02-02 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383044', 'tblTempUsageDetail_20' ) end [2025-02-02 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:51:22] Production.INFO: ==22165== Releasing lock... [2025-02-02 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:51:22] Production.INFO: 31 MB #Memory Used# [2025-02-02 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:52:05 [end_date_ymd] => 2025-02-02 03:52:05 [RateCDR] => 1 ) [2025-02-02 03:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 00:52:05' and `end` < '2025-02-02 03:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 03:52:17] Production.INFO: count ==489 [2025-02-02 03:52:17] Production.ERROR: pbx CDR StartTime 2025-02-02 00:52:05 - End Time 2025-02-02 03:52:05 [2025-02-02 03:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383049', 'tblTempUsageDetail_20' ) start [2025-02-02 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383049', 'tblTempUsageDetail_20' ) end [2025-02-02 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383049', 'tblTempVendorCDR_20' ) start [2025-02-02 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383049', 'tblTempVendorCDR_20' ) end [2025-02-02 03:52:18] Production.INFO: ProcessCDR(1,14383049,1,1,2) [2025-02-02 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383049', 'tblTempUsageDetail_20' ) start [2025-02-02 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383049', 'tblTempUsageDetail_20' ) end [2025-02-02 03:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:52:21] Production.INFO: ==22237== Releasing lock... [2025-02-02 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:52:21] Production.INFO: 31 MB #Memory Used# [2025-02-02 03:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:53:06 [end_date_ymd] => 2025-02-02 03:53:06 [RateCDR] => 1 ) [2025-02-02 03:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 00:53:06' and `end` < '2025-02-02 03:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 03:53:19] Production.INFO: count ==489 [2025-02-02 03:53:19] Production.ERROR: pbx CDR StartTime 2025-02-02 00:53:06 - End Time 2025-02-02 03:53:06 [2025-02-02 03:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383054', 'tblTempUsageDetail_20' ) start [2025-02-02 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383054', 'tblTempUsageDetail_20' ) end [2025-02-02 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383054', 'tblTempVendorCDR_20' ) start [2025-02-02 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383054', 'tblTempVendorCDR_20' ) end [2025-02-02 03:53:19] Production.INFO: ProcessCDR(1,14383054,1,1,2) [2025-02-02 03:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383054', 'tblTempUsageDetail_20' ) start [2025-02-02 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383054', 'tblTempUsageDetail_20' ) end [2025-02-02 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:53:22] Production.INFO: ==22307== Releasing lock... [2025-02-02 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:53:22] Production.INFO: 31 MB #Memory Used# [2025-02-02 03:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:54:06 [end_date_ymd] => 2025-02-02 03:54:06 [RateCDR] => 1 ) [2025-02-02 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-02 00:54:06' and `end` < '2025-02-02 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-02 03:54:19] Production.INFO: count ==488 [2025-02-02 03:54:19] Production.ERROR: pbx CDR StartTime 2025-02-02 00:54:06 - End Time 2025-02-02 03:54:06 [2025-02-02 03:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383059', 'tblTempUsageDetail_20' ) start [2025-02-02 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383059', 'tblTempUsageDetail_20' ) end [2025-02-02 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383059', 'tblTempVendorCDR_20' ) start [2025-02-02 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383059', 'tblTempVendorCDR_20' ) end [2025-02-02 03:54:19] Production.INFO: ProcessCDR(1,14383059,1,1,2) [2025-02-02 03:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383059', 'tblTempUsageDetail_20' ) start [2025-02-02 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383059', 'tblTempUsageDetail_20' ) end [2025-02-02 03:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:54:22] Production.INFO: ==22380== Releasing lock... [2025-02-02 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:54:22] Production.INFO: 31 MB #Memory Used# [2025-02-02 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:55:05 [end_date_ymd] => 2025-02-02 03:55:05 [RateCDR] => 1 ) [2025-02-02 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-02 00:55:05' and `end` < '2025-02-02 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-02 03:55:18] Production.INFO: count ==487 [2025-02-02 03:55:18] Production.ERROR: pbx CDR StartTime 2025-02-02 00:55:05 - End Time 2025-02-02 03:55:05 [2025-02-02 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383064', 'tblTempUsageDetail_20' ) start [2025-02-02 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383064', 'tblTempUsageDetail_20' ) end [2025-02-02 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383064', 'tblTempVendorCDR_20' ) start [2025-02-02 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383064', 'tblTempVendorCDR_20' ) end [2025-02-02 03:55:18] Production.INFO: ProcessCDR(1,14383064,1,1,2) [2025-02-02 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383064', 'tblTempUsageDetail_20' ) start [2025-02-02 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383064', 'tblTempUsageDetail_20' ) end [2025-02-02 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:55:21] Production.INFO: ==22452== Releasing lock... [2025-02-02 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:55:21] Production.INFO: 31 MB #Memory Used# [2025-02-02 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:56:06 [end_date_ymd] => 2025-02-02 03:56:06 [RateCDR] => 1 ) [2025-02-02 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-02 00:56:06' and `end` < '2025-02-02 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-02 03:56:19] Production.INFO: count ==486 [2025-02-02 03:56:19] Production.ERROR: pbx CDR StartTime 2025-02-02 00:56:06 - End Time 2025-02-02 03:56:06 [2025-02-02 03:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383069', 'tblTempUsageDetail_20' ) start [2025-02-02 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383069', 'tblTempUsageDetail_20' ) end [2025-02-02 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383069', 'tblTempVendorCDR_20' ) start [2025-02-02 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383069', 'tblTempVendorCDR_20' ) end [2025-02-02 03:56:19] Production.INFO: ProcessCDR(1,14383069,1,1,2) [2025-02-02 03:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383069', 'tblTempUsageDetail_20' ) start [2025-02-02 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383069', 'tblTempUsageDetail_20' ) end [2025-02-02 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:56:22] Production.INFO: ==22525== Releasing lock... [2025-02-02 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:56:22] Production.INFO: 31 MB #Memory Used# [2025-02-02 03:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:57:06 [end_date_ymd] => 2025-02-02 03:57:06 [RateCDR] => 1 ) [2025-02-02 03: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-02 00:57:06' and `end` < '2025-02-02 03: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-02 03:57:19] Production.INFO: count ==483 [2025-02-02 03:57:19] Production.ERROR: pbx CDR StartTime 2025-02-02 00:57:06 - End Time 2025-02-02 03:57:06 [2025-02-02 03:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383074', 'tblTempUsageDetail_20' ) start [2025-02-02 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383074', 'tblTempUsageDetail_20' ) end [2025-02-02 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383074', 'tblTempVendorCDR_20' ) start [2025-02-02 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383074', 'tblTempVendorCDR_20' ) end [2025-02-02 03:57:19] Production.INFO: ProcessCDR(1,14383074,1,1,2) [2025-02-02 03:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383074', 'tblTempUsageDetail_20' ) start [2025-02-02 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383074', 'tblTempUsageDetail_20' ) end [2025-02-02 03:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:57:22] Production.INFO: ==22594== Releasing lock... [2025-02-02 03:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:57:22] Production.INFO: 31 MB #Memory Used# [2025-02-02 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:58:05 [end_date_ymd] => 2025-02-02 03:58:05 [RateCDR] => 1 ) [2025-02-02 03:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 00:58:05' and `end` < '2025-02-02 03:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 03:58:18] Production.INFO: count ==476 [2025-02-02 03:58:18] Production.ERROR: pbx CDR StartTime 2025-02-02 00:58:05 - End Time 2025-02-02 03:58:05 [2025-02-02 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383079', 'tblTempUsageDetail_20' ) start [2025-02-02 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383079', 'tblTempUsageDetail_20' ) end [2025-02-02 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383079', 'tblTempVendorCDR_20' ) start [2025-02-02 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383079', 'tblTempVendorCDR_20' ) end [2025-02-02 03:58:18] Production.INFO: ProcessCDR(1,14383079,1,1,2) [2025-02-02 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383079', 'tblTempUsageDetail_20' ) start [2025-02-02 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383079', 'tblTempUsageDetail_20' ) end [2025-02-02 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:58:21] Production.INFO: ==22704== Releasing lock... [2025-02-02 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:58:21] Production.INFO: 31 MB #Memory Used# [2025-02-02 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 00:59:05 [end_date_ymd] => 2025-02-02 03:59:05 [RateCDR] => 1 ) [2025-02-02 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-02 00:59:05' and `end` < '2025-02-02 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-02 03:59:18] Production.INFO: count ==475 [2025-02-02 03:59:18] Production.ERROR: pbx CDR StartTime 2025-02-02 00:59:05 - End Time 2025-02-02 03:59:05 [2025-02-02 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383084', 'tblTempUsageDetail_20' ) start [2025-02-02 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383084', 'tblTempUsageDetail_20' ) end [2025-02-02 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383084', 'tblTempVendorCDR_20' ) start [2025-02-02 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383084', 'tblTempVendorCDR_20' ) end [2025-02-02 03:59:18] Production.INFO: ProcessCDR(1,14383084,1,1,2) [2025-02-02 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383084', 'tblTempUsageDetail_20' ) start [2025-02-02 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383084', 'tblTempUsageDetail_20' ) end [2025-02-02 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 03:59:21] Production.INFO: ==22773== Releasing lock... [2025-02-02 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 03:59:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-02 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:00:07 [end_date_ymd] => 2025-02-02 04:00:07 [RateCDR] => 1 ) [2025-02-02 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-02 01:00:07' and `end` < '2025-02-02 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-02 04:00:20] Production.INFO: count ==468 [2025-02-02 04:00:20] Production.ERROR: pbx CDR StartTime 2025-02-02 01:00:07 - End Time 2025-02-02 04:00:07 [2025-02-02 04:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383091', 'tblTempUsageDetail_20' ) start [2025-02-02 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383091', 'tblTempUsageDetail_20' ) end [2025-02-02 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383091', 'tblTempVendorCDR_20' ) start [2025-02-02 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383091', 'tblTempVendorCDR_20' ) end [2025-02-02 04:00:20] Production.INFO: ProcessCDR(1,14383091,1,1,2) [2025-02-02 04:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383091', 'tblTempUsageDetail_20' ) start [2025-02-02 04:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383091', 'tblTempUsageDetail_20' ) end [2025-02-02 04:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:00:24] Production.INFO: ==22850== Releasing lock... [2025-02-02 04:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:00:24] Production.INFO: 30.75 MB #Memory Used# [2025-02-02 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:01:05 [end_date_ymd] => 2025-02-02 04:01:05 [RateCDR] => 1 ) [2025-02-02 04:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 01:01:05' and `end` < '2025-02-02 04:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 04:01:17] Production.INFO: count ==445 [2025-02-02 04:01:17] Production.ERROR: pbx CDR StartTime 2025-02-02 01:01:05 - End Time 2025-02-02 04:01:05 [2025-02-02 04:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383096', 'tblTempUsageDetail_20' ) start [2025-02-02 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383096', 'tblTempUsageDetail_20' ) end [2025-02-02 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383096', 'tblTempVendorCDR_20' ) start [2025-02-02 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383096', 'tblTempVendorCDR_20' ) end [2025-02-02 04:01:17] Production.INFO: ProcessCDR(1,14383096,1,1,2) [2025-02-02 04:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383096', 'tblTempUsageDetail_20' ) start [2025-02-02 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383096', 'tblTempUsageDetail_20' ) end [2025-02-02 04:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:01:21] Production.INFO: ==22936== Releasing lock... [2025-02-02 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:01:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-02 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:02:05 [end_date_ymd] => 2025-02-02 04:02:05 [RateCDR] => 1 ) [2025-02-02 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-02 01:02:05' and `end` < '2025-02-02 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-02 04:02:19] Production.INFO: count ==442 [2025-02-02 04:02:19] Production.ERROR: pbx CDR StartTime 2025-02-02 01:02:05 - End Time 2025-02-02 04:02:05 [2025-02-02 04:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383101', 'tblTempUsageDetail_20' ) start [2025-02-02 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383101', 'tblTempUsageDetail_20' ) end [2025-02-02 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383101', 'tblTempVendorCDR_20' ) start [2025-02-02 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383101', 'tblTempVendorCDR_20' ) end [2025-02-02 04:02:19] Production.INFO: ProcessCDR(1,14383101,1,1,2) [2025-02-02 04:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383101', 'tblTempUsageDetail_20' ) start [2025-02-02 04:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383101', 'tblTempUsageDetail_20' ) end [2025-02-02 04:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:02:23] Production.INFO: ==23012== Releasing lock... [2025-02-02 04:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:02:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-02 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:03:05 [end_date_ymd] => 2025-02-02 04:03:05 [RateCDR] => 1 ) [2025-02-02 04:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 01:03:05' and `end` < '2025-02-02 04:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 04:03:18] Production.INFO: count ==442 [2025-02-02 04:03:18] Production.ERROR: pbx CDR StartTime 2025-02-02 01:03:05 - End Time 2025-02-02 04:03:05 [2025-02-02 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383106', 'tblTempUsageDetail_20' ) start [2025-02-02 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383106', 'tblTempUsageDetail_20' ) end [2025-02-02 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383106', 'tblTempVendorCDR_20' ) start [2025-02-02 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383106', 'tblTempVendorCDR_20' ) end [2025-02-02 04:03:18] Production.INFO: ProcessCDR(1,14383106,1,1,2) [2025-02-02 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383106', 'tblTempUsageDetail_20' ) start [2025-02-02 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383106', 'tblTempUsageDetail_20' ) end [2025-02-02 04:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:03:21] Production.INFO: ==23082== Releasing lock... [2025-02-02 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:03:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-02 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:04:05 [end_date_ymd] => 2025-02-02 04:04:05 [RateCDR] => 1 ) [2025-02-02 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-02 01:04:05' and `end` < '2025-02-02 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-02 04:04:18] Production.INFO: count ==442 [2025-02-02 04:04:18] Production.ERROR: pbx CDR StartTime 2025-02-02 01:04:05 - End Time 2025-02-02 04:04:05 [2025-02-02 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383111', 'tblTempUsageDetail_20' ) start [2025-02-02 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383111', 'tblTempUsageDetail_20' ) end [2025-02-02 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383111', 'tblTempVendorCDR_20' ) start [2025-02-02 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383111', 'tblTempVendorCDR_20' ) end [2025-02-02 04:04:18] Production.INFO: ProcessCDR(1,14383111,1,1,2) [2025-02-02 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383111', 'tblTempUsageDetail_20' ) start [2025-02-02 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383111', 'tblTempUsageDetail_20' ) end [2025-02-02 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:04:21] Production.INFO: ==23153== Releasing lock... [2025-02-02 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:04:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-02 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:05:05 [end_date_ymd] => 2025-02-02 04:05:05 [RateCDR] => 1 ) [2025-02-02 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-02 01:05:05' and `end` < '2025-02-02 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-02 04:05:19] Production.INFO: count ==442 [2025-02-02 04:05:19] Production.ERROR: pbx CDR StartTime 2025-02-02 01:05:05 - End Time 2025-02-02 04:05:05 [2025-02-02 04:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383116', 'tblTempUsageDetail_20' ) start [2025-02-02 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383116', 'tblTempUsageDetail_20' ) end [2025-02-02 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383116', 'tblTempVendorCDR_20' ) start [2025-02-02 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383116', 'tblTempVendorCDR_20' ) end [2025-02-02 04:05:19] Production.INFO: ProcessCDR(1,14383116,1,1,2) [2025-02-02 04:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383116', 'tblTempUsageDetail_20' ) start [2025-02-02 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383116', 'tblTempUsageDetail_20' ) end [2025-02-02 04:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:05:22] Production.INFO: ==23223== Releasing lock... [2025-02-02 04:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:05:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-02 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:06:05 [end_date_ymd] => 2025-02-02 04:06:05 [RateCDR] => 1 ) [2025-02-02 04:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 01:06:05' and `end` < '2025-02-02 04:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 04:06:18] Production.INFO: count ==442 [2025-02-02 04:06:18] Production.ERROR: pbx CDR StartTime 2025-02-02 01:06:05 - End Time 2025-02-02 04:06:05 [2025-02-02 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383121', 'tblTempUsageDetail_20' ) start [2025-02-02 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383121', 'tblTempUsageDetail_20' ) end [2025-02-02 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383121', 'tblTempVendorCDR_20' ) start [2025-02-02 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383121', 'tblTempVendorCDR_20' ) end [2025-02-02 04:06:18] Production.INFO: ProcessCDR(1,14383121,1,1,2) [2025-02-02 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383121', 'tblTempUsageDetail_20' ) start [2025-02-02 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383121', 'tblTempUsageDetail_20' ) end [2025-02-02 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:06:21] Production.INFO: ==23297== Releasing lock... [2025-02-02 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:06:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-02 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:07:05 [end_date_ymd] => 2025-02-02 04:07:05 [RateCDR] => 1 ) [2025-02-02 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-02 01:07:05' and `end` < '2025-02-02 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-02 04:07:17] Production.INFO: count ==438 [2025-02-02 04:07:17] Production.ERROR: pbx CDR StartTime 2025-02-02 01:07:05 - End Time 2025-02-02 04:07:05 [2025-02-02 04:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383126', 'tblTempUsageDetail_20' ) start [2025-02-02 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383126', 'tblTempUsageDetail_20' ) end [2025-02-02 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383126', 'tblTempVendorCDR_20' ) start [2025-02-02 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383126', 'tblTempVendorCDR_20' ) end [2025-02-02 04:07:18] Production.INFO: ProcessCDR(1,14383126,1,1,2) [2025-02-02 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383126', 'tblTempUsageDetail_20' ) start [2025-02-02 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383126', 'tblTempUsageDetail_20' ) end [2025-02-02 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:07:21] Production.INFO: ==23367== Releasing lock... [2025-02-02 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:07:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-02 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:08:05 [end_date_ymd] => 2025-02-02 04:08:05 [RateCDR] => 1 ) [2025-02-02 04:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 01:08:05' and `end` < '2025-02-02 04:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 04:08:19] Production.INFO: count ==435 [2025-02-02 04:08:19] Production.ERROR: pbx CDR StartTime 2025-02-02 01:08:05 - End Time 2025-02-02 04:08:05 [2025-02-02 04:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383131', 'tblTempUsageDetail_20' ) start [2025-02-02 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383131', 'tblTempUsageDetail_20' ) end [2025-02-02 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383131', 'tblTempVendorCDR_20' ) start [2025-02-02 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383131', 'tblTempVendorCDR_20' ) end [2025-02-02 04:08:19] Production.INFO: ProcessCDR(1,14383131,1,1,2) [2025-02-02 04:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383131', 'tblTempUsageDetail_20' ) start [2025-02-02 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383131', 'tblTempUsageDetail_20' ) end [2025-02-02 04:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:08:22] Production.INFO: ==23441== Releasing lock... [2025-02-02 04:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:08:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-02 04:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:09:04 [end_date_ymd] => 2025-02-02 04:09:04 [RateCDR] => 1 ) [2025-02-02 04:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 01:09:04' and `end` < '2025-02-02 04:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 04:09:18] Production.INFO: count ==435 [2025-02-02 04:09:18] Production.ERROR: pbx CDR StartTime 2025-02-02 01:09:04 - End Time 2025-02-02 04:09:04 [2025-02-02 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383136', 'tblTempUsageDetail_20' ) start [2025-02-02 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383136', 'tblTempUsageDetail_20' ) end [2025-02-02 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383136', 'tblTempVendorCDR_20' ) start [2025-02-02 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383136', 'tblTempVendorCDR_20' ) end [2025-02-02 04:09:18] Production.INFO: ProcessCDR(1,14383136,1,1,2) [2025-02-02 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383136', 'tblTempUsageDetail_20' ) start [2025-02-02 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383136', 'tblTempUsageDetail_20' ) end [2025-02-02 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:09:21] Production.INFO: ==23510== Releasing lock... [2025-02-02 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:09:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-02 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:10:06 [end_date_ymd] => 2025-02-02 04:10:06 [RateCDR] => 1 ) [2025-02-02 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-02 01:10:06' and `end` < '2025-02-02 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-02 04:10:19] Production.INFO: count ==430 [2025-02-02 04:10:19] Production.ERROR: pbx CDR StartTime 2025-02-02 01:10:06 - End Time 2025-02-02 04:10:06 [2025-02-02 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383142', 'tblTempUsageDetail_20' ) start [2025-02-02 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383142', 'tblTempUsageDetail_20' ) end [2025-02-02 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383142', 'tblTempVendorCDR_20' ) start [2025-02-02 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383142', 'tblTempVendorCDR_20' ) end [2025-02-02 04:10:19] Production.INFO: ProcessCDR(1,14383142,1,1,2) [2025-02-02 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383142', 'tblTempUsageDetail_20' ) start [2025-02-02 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383142', 'tblTempUsageDetail_20' ) end [2025-02-02 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:10:22] Production.INFO: ==23583== Releasing lock... [2025-02-02 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:10:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-02 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:11:05 [end_date_ymd] => 2025-02-02 04:11:05 [RateCDR] => 1 ) [2025-02-02 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-02 01:11:05' and `end` < '2025-02-02 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-02 04:11:18] Production.INFO: count ==410 [2025-02-02 04:11:18] Production.ERROR: pbx CDR StartTime 2025-02-02 01:11:05 - End Time 2025-02-02 04:11:05 [2025-02-02 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383147', 'tblTempUsageDetail_20' ) start [2025-02-02 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383147', 'tblTempUsageDetail_20' ) end [2025-02-02 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383147', 'tblTempVendorCDR_20' ) start [2025-02-02 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383147', 'tblTempVendorCDR_20' ) end [2025-02-02 04:11:18] Production.INFO: ProcessCDR(1,14383147,1,1,2) [2025-02-02 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383147', 'tblTempUsageDetail_20' ) start [2025-02-02 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383147', 'tblTempUsageDetail_20' ) end [2025-02-02 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:11:21] Production.INFO: ==23659== Releasing lock... [2025-02-02 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:11:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-02 04:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:12:06 [end_date_ymd] => 2025-02-02 04:12:06 [RateCDR] => 1 ) [2025-02-02 04:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 01:12:06' and `end` < '2025-02-02 04:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 04:12:19] Production.INFO: count ==409 [2025-02-02 04:12:19] Production.ERROR: pbx CDR StartTime 2025-02-02 01:12:06 - End Time 2025-02-02 04:12:06 [2025-02-02 04:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383152', 'tblTempUsageDetail_20' ) start [2025-02-02 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383152', 'tblTempUsageDetail_20' ) end [2025-02-02 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383152', 'tblTempVendorCDR_20' ) start [2025-02-02 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383152', 'tblTempVendorCDR_20' ) end [2025-02-02 04:12:19] Production.INFO: ProcessCDR(1,14383152,1,1,2) [2025-02-02 04:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383152', 'tblTempUsageDetail_20' ) start [2025-02-02 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383152', 'tblTempUsageDetail_20' ) end [2025-02-02 04:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:12:22] Production.INFO: ==23729== Releasing lock... [2025-02-02 04:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:12:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-02 04:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:13:06 [end_date_ymd] => 2025-02-02 04:13:06 [RateCDR] => 1 ) [2025-02-02 04: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-02 01:13:06' and `end` < '2025-02-02 04: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-02 04:13:19] Production.INFO: count ==409 [2025-02-02 04:13:19] Production.ERROR: pbx CDR StartTime 2025-02-02 01:13:06 - End Time 2025-02-02 04:13:06 [2025-02-02 04:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383157', 'tblTempUsageDetail_20' ) start [2025-02-02 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383157', 'tblTempUsageDetail_20' ) end [2025-02-02 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383157', 'tblTempVendorCDR_20' ) start [2025-02-02 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383157', 'tblTempVendorCDR_20' ) end [2025-02-02 04:13:19] Production.INFO: ProcessCDR(1,14383157,1,1,2) [2025-02-02 04:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383157', 'tblTempUsageDetail_20' ) start [2025-02-02 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383157', 'tblTempUsageDetail_20' ) end [2025-02-02 04:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:13:22] Production.INFO: ==23802== Releasing lock... [2025-02-02 04:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:13:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-02 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:14:05 [end_date_ymd] => 2025-02-02 04:14:05 [RateCDR] => 1 ) [2025-02-02 04:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 01:14:05' and `end` < '2025-02-02 04:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 04:14:19] Production.INFO: count ==409 [2025-02-02 04:14:19] Production.ERROR: pbx CDR StartTime 2025-02-02 01:14:05 - End Time 2025-02-02 04:14:05 [2025-02-02 04:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383162', 'tblTempUsageDetail_20' ) start [2025-02-02 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383162', 'tblTempUsageDetail_20' ) end [2025-02-02 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383162', 'tblTempVendorCDR_20' ) start [2025-02-02 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383162', 'tblTempVendorCDR_20' ) end [2025-02-02 04:14:19] Production.INFO: ProcessCDR(1,14383162,1,1,2) [2025-02-02 04:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383162', 'tblTempUsageDetail_20' ) start [2025-02-02 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383162', 'tblTempUsageDetail_20' ) end [2025-02-02 04:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:14:22] Production.INFO: ==23911== Releasing lock... [2025-02-02 04:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:14:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-02 04:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:15:06 [end_date_ymd] => 2025-02-02 04:15:06 [RateCDR] => 1 ) [2025-02-02 04:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 01:15:06' and `end` < '2025-02-02 04:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 04:15:19] Production.INFO: count ==409 [2025-02-02 04:15:19] Production.ERROR: pbx CDR StartTime 2025-02-02 01:15:06 - End Time 2025-02-02 04:15:06 [2025-02-02 04:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383167', 'tblTempUsageDetail_20' ) start [2025-02-02 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383167', 'tblTempUsageDetail_20' ) end [2025-02-02 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383167', 'tblTempVendorCDR_20' ) start [2025-02-02 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383167', 'tblTempVendorCDR_20' ) end [2025-02-02 04:15:19] Production.INFO: ProcessCDR(1,14383167,1,1,2) [2025-02-02 04:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383167', 'tblTempUsageDetail_20' ) start [2025-02-02 04:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383167', 'tblTempUsageDetail_20' ) end [2025-02-02 04:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:15:22] Production.INFO: ==23986== Releasing lock... [2025-02-02 04:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:15:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-02 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:16:05 [end_date_ymd] => 2025-02-02 04:16:05 [RateCDR] => 1 ) [2025-02-02 04:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 01:16:05' and `end` < '2025-02-02 04:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 04:16:17] Production.INFO: count ==404 [2025-02-02 04:16:17] Production.ERROR: pbx CDR StartTime 2025-02-02 01:16:05 - End Time 2025-02-02 04:16:05 [2025-02-02 04:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383172', 'tblTempUsageDetail_20' ) start [2025-02-02 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383172', 'tblTempUsageDetail_20' ) end [2025-02-02 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383172', 'tblTempVendorCDR_20' ) start [2025-02-02 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383172', 'tblTempVendorCDR_20' ) end [2025-02-02 04:16:17] Production.INFO: ProcessCDR(1,14383172,1,1,2) [2025-02-02 04:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383172', 'tblTempUsageDetail_20' ) start [2025-02-02 04:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383172', 'tblTempUsageDetail_20' ) end [2025-02-02 04:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:16:20] Production.INFO: ==24057== Releasing lock... [2025-02-02 04:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:16:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-02 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:17:05 [end_date_ymd] => 2025-02-02 04:17:05 [RateCDR] => 1 ) [2025-02-02 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-02 01:17:05' and `end` < '2025-02-02 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-02 04:17:19] Production.INFO: count ==401 [2025-02-02 04:17:19] Production.ERROR: pbx CDR StartTime 2025-02-02 01:17:05 - End Time 2025-02-02 04:17:05 [2025-02-02 04:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383177', 'tblTempUsageDetail_20' ) start [2025-02-02 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383177', 'tblTempUsageDetail_20' ) end [2025-02-02 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383177', 'tblTempVendorCDR_20' ) start [2025-02-02 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383177', 'tblTempVendorCDR_20' ) end [2025-02-02 04:17:19] Production.INFO: ProcessCDR(1,14383177,1,1,2) [2025-02-02 04:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383177', 'tblTempUsageDetail_20' ) start [2025-02-02 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383177', 'tblTempUsageDetail_20' ) end [2025-02-02 04:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:17:22] Production.INFO: ==24127== Releasing lock... [2025-02-02 04:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:17:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-02 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:18:05 [end_date_ymd] => 2025-02-02 04:18:05 [RateCDR] => 1 ) [2025-02-02 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-02 01:18:05' and `end` < '2025-02-02 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-02 04:18:18] Production.INFO: count ==401 [2025-02-02 04:18:18] Production.ERROR: pbx CDR StartTime 2025-02-02 01:18:05 - End Time 2025-02-02 04:18:05 [2025-02-02 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383182', 'tblTempUsageDetail_20' ) start [2025-02-02 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383182', 'tblTempUsageDetail_20' ) end [2025-02-02 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383182', 'tblTempVendorCDR_20' ) start [2025-02-02 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383182', 'tblTempVendorCDR_20' ) end [2025-02-02 04:18:18] Production.INFO: ProcessCDR(1,14383182,1,1,2) [2025-02-02 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383182', 'tblTempUsageDetail_20' ) start [2025-02-02 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383182', 'tblTempUsageDetail_20' ) end [2025-02-02 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:18:21] Production.INFO: ==24213== Releasing lock... [2025-02-02 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:18:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-02 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:19:05 [end_date_ymd] => 2025-02-02 04:19:05 [RateCDR] => 1 ) [2025-02-02 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-02 01:19:05' and `end` < '2025-02-02 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-02 04:19:18] Production.INFO: count ==401 [2025-02-02 04:19:18] Production.ERROR: pbx CDR StartTime 2025-02-02 01:19:05 - End Time 2025-02-02 04:19:05 [2025-02-02 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383187', 'tblTempUsageDetail_20' ) start [2025-02-02 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383187', 'tblTempUsageDetail_20' ) end [2025-02-02 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383187', 'tblTempVendorCDR_20' ) start [2025-02-02 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383187', 'tblTempVendorCDR_20' ) end [2025-02-02 04:19:18] Production.INFO: ProcessCDR(1,14383187,1,1,2) [2025-02-02 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383187', 'tblTempUsageDetail_20' ) start [2025-02-02 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383187', 'tblTempUsageDetail_20' ) end [2025-02-02 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:19:21] Production.INFO: ==24286== Releasing lock... [2025-02-02 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:19:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-02 04:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:20:05 [end_date_ymd] => 2025-02-02 04:20:05 [RateCDR] => 1 ) [2025-02-02 04:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 01:20:05' and `end` < '2025-02-02 04:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 04:20:18] Production.INFO: count ==399 [2025-02-02 04:20:18] Production.ERROR: pbx CDR StartTime 2025-02-02 01:20:05 - End Time 2025-02-02 04:20:05 [2025-02-02 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383193', 'tblTempUsageDetail_20' ) start [2025-02-02 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383193', 'tblTempUsageDetail_20' ) end [2025-02-02 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383193', 'tblTempVendorCDR_20' ) start [2025-02-02 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383193', 'tblTempVendorCDR_20' ) end [2025-02-02 04:20:18] Production.INFO: ProcessCDR(1,14383193,1,1,2) [2025-02-02 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383193', 'tblTempUsageDetail_20' ) start [2025-02-02 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383193', 'tblTempUsageDetail_20' ) end [2025-02-02 04:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:20:21] Production.INFO: ==24358== Releasing lock... [2025-02-02 04:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:20:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-02 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:21:05 [end_date_ymd] => 2025-02-02 04:21:05 [RateCDR] => 1 ) [2025-02-02 04:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 01:21:05' and `end` < '2025-02-02 04:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 04:21:18] Production.INFO: count ==365 [2025-02-02 04:21:18] Production.ERROR: pbx CDR StartTime 2025-02-02 01:21:05 - End Time 2025-02-02 04:21:05 [2025-02-02 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383198', 'tblTempUsageDetail_20' ) start [2025-02-02 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383198', 'tblTempUsageDetail_20' ) end [2025-02-02 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383198', 'tblTempVendorCDR_20' ) start [2025-02-02 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383198', 'tblTempVendorCDR_20' ) end [2025-02-02 04:21:18] Production.INFO: ProcessCDR(1,14383198,1,1,2) [2025-02-02 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383198', 'tblTempUsageDetail_20' ) start [2025-02-02 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383198', 'tblTempUsageDetail_20' ) end [2025-02-02 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:21:21] Production.INFO: ==24434== Releasing lock... [2025-02-02 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:21:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-02 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:22:05 [end_date_ymd] => 2025-02-02 04:22:05 [RateCDR] => 1 ) [2025-02-02 04:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 01:22:05' and `end` < '2025-02-02 04:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 04:22:18] Production.INFO: count ==365 [2025-02-02 04:22:18] Production.ERROR: pbx CDR StartTime 2025-02-02 01:22:05 - End Time 2025-02-02 04:22:05 [2025-02-02 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383203', 'tblTempUsageDetail_20' ) start [2025-02-02 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383203', 'tblTempUsageDetail_20' ) end [2025-02-02 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383203', 'tblTempVendorCDR_20' ) start [2025-02-02 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383203', 'tblTempVendorCDR_20' ) end [2025-02-02 04:22:18] Production.INFO: ProcessCDR(1,14383203,1,1,2) [2025-02-02 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383203', 'tblTempUsageDetail_20' ) start [2025-02-02 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383203', 'tblTempUsageDetail_20' ) end [2025-02-02 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:22:21] Production.INFO: ==24513== Releasing lock... [2025-02-02 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:22:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-02 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:23:05 [end_date_ymd] => 2025-02-02 04:23:05 [RateCDR] => 1 ) [2025-02-02 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-02 01:23:05' and `end` < '2025-02-02 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-02 04:23:19] Production.INFO: count ==364 [2025-02-02 04:23:19] Production.ERROR: pbx CDR StartTime 2025-02-02 01:23:05 - End Time 2025-02-02 04:23:05 [2025-02-02 04:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383208', 'tblTempUsageDetail_20' ) start [2025-02-02 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383208', 'tblTempUsageDetail_20' ) end [2025-02-02 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383208', 'tblTempVendorCDR_20' ) start [2025-02-02 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383208', 'tblTempVendorCDR_20' ) end [2025-02-02 04:23:19] Production.INFO: ProcessCDR(1,14383208,1,1,2) [2025-02-02 04:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383208', 'tblTempUsageDetail_20' ) start [2025-02-02 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383208', 'tblTempUsageDetail_20' ) end [2025-02-02 04:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:23:22] Production.INFO: ==24586== Releasing lock... [2025-02-02 04:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:23:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-02 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:24:05 [end_date_ymd] => 2025-02-02 04:24:05 [RateCDR] => 1 ) [2025-02-02 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-02 01:24:05' and `end` < '2025-02-02 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-02 04:24:19] Production.INFO: count ==364 [2025-02-02 04:24:19] Production.ERROR: pbx CDR StartTime 2025-02-02 01:24:05 - End Time 2025-02-02 04:24:05 [2025-02-02 04:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383213', 'tblTempUsageDetail_20' ) start [2025-02-02 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383213', 'tblTempUsageDetail_20' ) end [2025-02-02 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383213', 'tblTempVendorCDR_20' ) start [2025-02-02 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383213', 'tblTempVendorCDR_20' ) end [2025-02-02 04:24:19] Production.INFO: ProcessCDR(1,14383213,1,1,2) [2025-02-02 04:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383213', 'tblTempUsageDetail_20' ) start [2025-02-02 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383213', 'tblTempUsageDetail_20' ) end [2025-02-02 04:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:24:22] Production.INFO: ==24660== Releasing lock... [2025-02-02 04:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:24:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-02 04:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:25:04 [end_date_ymd] => 2025-02-02 04:25:04 [RateCDR] => 1 ) [2025-02-02 04:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 01:25:04' and `end` < '2025-02-02 04:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 04:25:17] Production.INFO: count ==358 [2025-02-02 04:25:17] Production.ERROR: pbx CDR StartTime 2025-02-02 01:25:04 - End Time 2025-02-02 04:25:04 [2025-02-02 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383218', 'tblTempUsageDetail_20' ) start [2025-02-02 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383218', 'tblTempUsageDetail_20' ) end [2025-02-02 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383218', 'tblTempVendorCDR_20' ) start [2025-02-02 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383218', 'tblTempVendorCDR_20' ) end [2025-02-02 04:25:17] Production.INFO: ProcessCDR(1,14383218,1,1,2) [2025-02-02 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383218', 'tblTempUsageDetail_20' ) start [2025-02-02 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383218', 'tblTempUsageDetail_20' ) end [2025-02-02 04:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:25:20] Production.INFO: ==24731== Releasing lock... [2025-02-02 04:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:25:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-02 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:26:05 [end_date_ymd] => 2025-02-02 04:26:05 [RateCDR] => 1 ) [2025-02-02 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-02 01:26:05' and `end` < '2025-02-02 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-02 04:26:18] Production.INFO: count ==353 [2025-02-02 04:26:18] Production.ERROR: pbx CDR StartTime 2025-02-02 01:26:05 - End Time 2025-02-02 04:26:05 [2025-02-02 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383223', 'tblTempUsageDetail_20' ) start [2025-02-02 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383223', 'tblTempUsageDetail_20' ) end [2025-02-02 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383223', 'tblTempVendorCDR_20' ) start [2025-02-02 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383223', 'tblTempVendorCDR_20' ) end [2025-02-02 04:26:18] Production.INFO: ProcessCDR(1,14383223,1,1,2) [2025-02-02 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383223', 'tblTempUsageDetail_20' ) start [2025-02-02 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383223', 'tblTempUsageDetail_20' ) end [2025-02-02 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:26:21] Production.INFO: ==24804== Releasing lock... [2025-02-02 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:26:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-02 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:27:05 [end_date_ymd] => 2025-02-02 04:27:05 [RateCDR] => 1 ) [2025-02-02 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-02 01:27:05' and `end` < '2025-02-02 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-02 04:27:18] Production.INFO: count ==351 [2025-02-02 04:27:18] Production.ERROR: pbx CDR StartTime 2025-02-02 01:27:05 - End Time 2025-02-02 04:27:05 [2025-02-02 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383228', 'tblTempUsageDetail_20' ) start [2025-02-02 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383228', 'tblTempUsageDetail_20' ) end [2025-02-02 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383228', 'tblTempVendorCDR_20' ) start [2025-02-02 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383228', 'tblTempVendorCDR_20' ) end [2025-02-02 04:27:18] Production.INFO: ProcessCDR(1,14383228,1,1,2) [2025-02-02 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383228', 'tblTempUsageDetail_20' ) start [2025-02-02 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383228', 'tblTempUsageDetail_20' ) end [2025-02-02 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:27:21] Production.INFO: ==24877== Releasing lock... [2025-02-02 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:27:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-02 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:28:05 [end_date_ymd] => 2025-02-02 04:28:05 [RateCDR] => 1 ) [2025-02-02 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-02 01:28:05' and `end` < '2025-02-02 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-02 04:28:18] Production.INFO: count ==348 [2025-02-02 04:28:18] Production.ERROR: pbx CDR StartTime 2025-02-02 01:28:05 - End Time 2025-02-02 04:28:05 [2025-02-02 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383233', 'tblTempUsageDetail_20' ) start [2025-02-02 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383233', 'tblTempUsageDetail_20' ) end [2025-02-02 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383233', 'tblTempVendorCDR_20' ) start [2025-02-02 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383233', 'tblTempVendorCDR_20' ) end [2025-02-02 04:28:18] Production.INFO: ProcessCDR(1,14383233,1,1,2) [2025-02-02 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383233', 'tblTempUsageDetail_20' ) start [2025-02-02 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383233', 'tblTempUsageDetail_20' ) end [2025-02-02 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:28:21] Production.INFO: ==24951== Releasing lock... [2025-02-02 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:28:21] Production.INFO: 30 MB #Memory Used# [2025-02-02 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:29:05 [end_date_ymd] => 2025-02-02 04:29:05 [RateCDR] => 1 ) [2025-02-02 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-02 01:29:05' and `end` < '2025-02-02 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-02 04:29:18] Production.INFO: count ==343 [2025-02-02 04:29:18] Production.ERROR: pbx CDR StartTime 2025-02-02 01:29:05 - End Time 2025-02-02 04:29:05 [2025-02-02 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383238', 'tblTempUsageDetail_20' ) start [2025-02-02 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383238', 'tblTempUsageDetail_20' ) end [2025-02-02 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383238', 'tblTempVendorCDR_20' ) start [2025-02-02 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383238', 'tblTempVendorCDR_20' ) end [2025-02-02 04:29:18] Production.INFO: ProcessCDR(1,14383238,1,1,2) [2025-02-02 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383238', 'tblTempUsageDetail_20' ) start [2025-02-02 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383238', 'tblTempUsageDetail_20' ) end [2025-02-02 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:29:21] Production.INFO: ==25064== Releasing lock... [2025-02-02 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:29:21] Production.INFO: 30 MB #Memory Used# [2025-02-02 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:30:06 [end_date_ymd] => 2025-02-02 04:30:06 [RateCDR] => 1 ) [2025-02-02 04:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 01:30:06' and `end` < '2025-02-02 04:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 04:30:19] Production.INFO: count ==340 [2025-02-02 04:30:19] Production.ERROR: pbx CDR StartTime 2025-02-02 01:30:06 - End Time 2025-02-02 04:30:06 [2025-02-02 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383244', 'tblTempUsageDetail_20' ) start [2025-02-02 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383244', 'tblTempUsageDetail_20' ) end [2025-02-02 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383244', 'tblTempVendorCDR_20' ) start [2025-02-02 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383244', 'tblTempVendorCDR_20' ) end [2025-02-02 04:30:19] Production.INFO: ProcessCDR(1,14383244,1,1,2) [2025-02-02 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383244', 'tblTempUsageDetail_20' ) start [2025-02-02 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383244', 'tblTempUsageDetail_20' ) end [2025-02-02 04:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:30:22] Production.INFO: ==25137== Releasing lock... [2025-02-02 04:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:30:22] Production.INFO: 30 MB #Memory Used# [2025-02-02 04:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:31:06 [end_date_ymd] => 2025-02-02 04:31:06 [RateCDR] => 1 ) [2025-02-02 04:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 01:31:06' and `end` < '2025-02-02 04:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 04:31:19] Production.INFO: count ==316 [2025-02-02 04:31:19] Production.ERROR: pbx CDR StartTime 2025-02-02 01:31:06 - End Time 2025-02-02 04:31:06 [2025-02-02 04:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383250', 'tblTempUsageDetail_20' ) start [2025-02-02 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383250', 'tblTempUsageDetail_20' ) end [2025-02-02 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383250', 'tblTempVendorCDR_20' ) start [2025-02-02 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383250', 'tblTempVendorCDR_20' ) end [2025-02-02 04:31:19] Production.INFO: ProcessCDR(1,14383250,1,1,2) [2025-02-02 04:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383250', 'tblTempUsageDetail_20' ) start [2025-02-02 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383250', 'tblTempUsageDetail_20' ) end [2025-02-02 04:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:31:22] Production.INFO: ==25214== Releasing lock... [2025-02-02 04:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:31:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-02 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:32:05 [end_date_ymd] => 2025-02-02 04:32:05 [RateCDR] => 1 ) [2025-02-02 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-02 01:32:05' and `end` < '2025-02-02 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-02 04:32:18] Production.INFO: count ==316 [2025-02-02 04:32:18] Production.ERROR: pbx CDR StartTime 2025-02-02 01:32:05 - End Time 2025-02-02 04:32:05 [2025-02-02 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383255', 'tblTempUsageDetail_20' ) start [2025-02-02 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383255', 'tblTempUsageDetail_20' ) end [2025-02-02 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383255', 'tblTempVendorCDR_20' ) start [2025-02-02 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383255', 'tblTempVendorCDR_20' ) end [2025-02-02 04:32:18] Production.INFO: ProcessCDR(1,14383255,1,1,2) [2025-02-02 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383255', 'tblTempUsageDetail_20' ) start [2025-02-02 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383255', 'tblTempUsageDetail_20' ) end [2025-02-02 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:32:21] Production.INFO: ==25316== Releasing lock... [2025-02-02 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:32:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-02 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:33:05 [end_date_ymd] => 2025-02-02 04:33:05 [RateCDR] => 1 ) [2025-02-02 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-02 01:33:05' and `end` < '2025-02-02 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-02 04:33:18] Production.INFO: count ==315 [2025-02-02 04:33:18] Production.ERROR: pbx CDR StartTime 2025-02-02 01:33:05 - End Time 2025-02-02 04:33:05 [2025-02-02 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383260', 'tblTempUsageDetail_20' ) start [2025-02-02 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383260', 'tblTempUsageDetail_20' ) end [2025-02-02 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383260', 'tblTempVendorCDR_20' ) start [2025-02-02 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383260', 'tblTempVendorCDR_20' ) end [2025-02-02 04:33:18] Production.INFO: ProcessCDR(1,14383260,1,1,2) [2025-02-02 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383260', 'tblTempUsageDetail_20' ) start [2025-02-02 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383260', 'tblTempUsageDetail_20' ) end [2025-02-02 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:33:21] Production.INFO: ==25388== Releasing lock... [2025-02-02 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:33:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-02 04:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:34:04 [end_date_ymd] => 2025-02-02 04:34:04 [RateCDR] => 1 ) [2025-02-02 04: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-02 01:34:04' and `end` < '2025-02-02 04: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-02 04:34:17] Production.INFO: count ==315 [2025-02-02 04:34:17] Production.ERROR: pbx CDR StartTime 2025-02-02 01:34:04 - End Time 2025-02-02 04:34:04 [2025-02-02 04:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383265', 'tblTempUsageDetail_20' ) start [2025-02-02 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383265', 'tblTempUsageDetail_20' ) end [2025-02-02 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383265', 'tblTempVendorCDR_20' ) start [2025-02-02 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383265', 'tblTempVendorCDR_20' ) end [2025-02-02 04:34:17] Production.INFO: ProcessCDR(1,14383265,1,1,2) [2025-02-02 04:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383265', 'tblTempUsageDetail_20' ) start [2025-02-02 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383265', 'tblTempUsageDetail_20' ) end [2025-02-02 04:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:34:20] Production.INFO: ==25462== Releasing lock... [2025-02-02 04:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:34:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-02 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:35:05 [end_date_ymd] => 2025-02-02 04:35:05 [RateCDR] => 1 ) [2025-02-02 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-02 01:35:05' and `end` < '2025-02-02 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-02 04:35:19] Production.INFO: count ==315 [2025-02-02 04:35:19] Production.ERROR: pbx CDR StartTime 2025-02-02 01:35:05 - End Time 2025-02-02 04:35:05 [2025-02-02 04:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383270', 'tblTempUsageDetail_20' ) start [2025-02-02 04:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383270', 'tblTempUsageDetail_20' ) end [2025-02-02 04:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383270', 'tblTempVendorCDR_20' ) start [2025-02-02 04:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383270', 'tblTempVendorCDR_20' ) end [2025-02-02 04:35:19] Production.INFO: ProcessCDR(1,14383270,1,1,2) [2025-02-02 04:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383270', 'tblTempUsageDetail_20' ) start [2025-02-02 04:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383270', 'tblTempUsageDetail_20' ) end [2025-02-02 04:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:35:22] Production.INFO: ==25534== Releasing lock... [2025-02-02 04:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:35:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-02 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:36:05 [end_date_ymd] => 2025-02-02 04:36:05 [RateCDR] => 1 ) [2025-02-02 04:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 01:36:05' and `end` < '2025-02-02 04:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 04:36:18] Production.INFO: count ==312 [2025-02-02 04:36:18] Production.ERROR: pbx CDR StartTime 2025-02-02 01:36:05 - End Time 2025-02-02 04:36:05 [2025-02-02 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383275', 'tblTempUsageDetail_20' ) start [2025-02-02 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383275', 'tblTempUsageDetail_20' ) end [2025-02-02 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383275', 'tblTempVendorCDR_20' ) start [2025-02-02 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383275', 'tblTempVendorCDR_20' ) end [2025-02-02 04:36:18] Production.INFO: ProcessCDR(1,14383275,1,1,2) [2025-02-02 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383275', 'tblTempUsageDetail_20' ) start [2025-02-02 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383275', 'tblTempUsageDetail_20' ) end [2025-02-02 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:36:21] Production.INFO: ==25606== Releasing lock... [2025-02-02 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:36:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-02 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:37:05 [end_date_ymd] => 2025-02-02 04:37:05 [RateCDR] => 1 ) [2025-02-02 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-02 01:37:05' and `end` < '2025-02-02 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-02 04:37:18] Production.INFO: count ==312 [2025-02-02 04:37:18] Production.ERROR: pbx CDR StartTime 2025-02-02 01:37:05 - End Time 2025-02-02 04:37:05 [2025-02-02 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383280', 'tblTempUsageDetail_20' ) start [2025-02-02 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383280', 'tblTempUsageDetail_20' ) end [2025-02-02 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383280', 'tblTempVendorCDR_20' ) start [2025-02-02 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383280', 'tblTempVendorCDR_20' ) end [2025-02-02 04:37:18] Production.INFO: ProcessCDR(1,14383280,1,1,2) [2025-02-02 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383280', 'tblTempUsageDetail_20' ) start [2025-02-02 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383280', 'tblTempUsageDetail_20' ) end [2025-02-02 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:37:21] Production.INFO: ==25683== Releasing lock... [2025-02-02 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:37:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-02 04:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:38:06 [end_date_ymd] => 2025-02-02 04:38:06 [RateCDR] => 1 ) [2025-02-02 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-02 01:38:06' and `end` < '2025-02-02 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-02 04:38:18] Production.INFO: count ==312 [2025-02-02 04:38:18] Production.ERROR: pbx CDR StartTime 2025-02-02 01:38:06 - End Time 2025-02-02 04:38:06 [2025-02-02 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383285', 'tblTempUsageDetail_20' ) start [2025-02-02 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383285', 'tblTempUsageDetail_20' ) end [2025-02-02 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383285', 'tblTempVendorCDR_20' ) start [2025-02-02 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383285', 'tblTempVendorCDR_20' ) end [2025-02-02 04:38:18] Production.INFO: ProcessCDR(1,14383285,1,1,2) [2025-02-02 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383285', 'tblTempUsageDetail_20' ) start [2025-02-02 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383285', 'tblTempUsageDetail_20' ) end [2025-02-02 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:38:21] Production.INFO: ==25756== Releasing lock... [2025-02-02 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:38:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-02 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:39:05 [end_date_ymd] => 2025-02-02 04:39:05 [RateCDR] => 1 ) [2025-02-02 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-02 01:39:05' and `end` < '2025-02-02 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-02 04:39:18] Production.INFO: count ==310 [2025-02-02 04:39:18] Production.ERROR: pbx CDR StartTime 2025-02-02 01:39:05 - End Time 2025-02-02 04:39:05 [2025-02-02 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383290', 'tblTempUsageDetail_20' ) start [2025-02-02 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383290', 'tblTempUsageDetail_20' ) end [2025-02-02 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383290', 'tblTempVendorCDR_20' ) start [2025-02-02 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383290', 'tblTempVendorCDR_20' ) end [2025-02-02 04:39:18] Production.INFO: ProcessCDR(1,14383290,1,1,2) [2025-02-02 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383290', 'tblTempUsageDetail_20' ) start [2025-02-02 04:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383290', 'tblTempUsageDetail_20' ) end [2025-02-02 04:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:39:22] Production.INFO: ==25829== Releasing lock... [2025-02-02 04:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:39:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-02 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:40:06 [end_date_ymd] => 2025-02-02 04:40:06 [RateCDR] => 1 ) [2025-02-02 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-02 01:40:06' and `end` < '2025-02-02 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-02 04:40:20] Production.INFO: count ==307 [2025-02-02 04:40:20] Production.ERROR: pbx CDR StartTime 2025-02-02 01:40:06 - End Time 2025-02-02 04:40:06 [2025-02-02 04:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383296', 'tblTempUsageDetail_20' ) start [2025-02-02 04:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383296', 'tblTempUsageDetail_20' ) end [2025-02-02 04:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383296', 'tblTempVendorCDR_20' ) start [2025-02-02 04:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383296', 'tblTempVendorCDR_20' ) end [2025-02-02 04:40:20] Production.INFO: ProcessCDR(1,14383296,1,1,2) [2025-02-02 04:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383296', 'tblTempUsageDetail_20' ) start [2025-02-02 04:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383296', 'tblTempUsageDetail_20' ) end [2025-02-02 04:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:40:23] Production.INFO: ==25902== Releasing lock... [2025-02-02 04:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:40:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-02 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:41:05 [end_date_ymd] => 2025-02-02 04:41:05 [RateCDR] => 1 ) [2025-02-02 04:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 01:41:05' and `end` < '2025-02-02 04:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 04:41:18] Production.INFO: count ==302 [2025-02-02 04:41:18] Production.ERROR: pbx CDR StartTime 2025-02-02 01:41:05 - End Time 2025-02-02 04:41:05 [2025-02-02 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383301', 'tblTempUsageDetail_20' ) start [2025-02-02 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383301', 'tblTempUsageDetail_20' ) end [2025-02-02 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383301', 'tblTempVendorCDR_20' ) start [2025-02-02 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383301', 'tblTempVendorCDR_20' ) end [2025-02-02 04:41:18] Production.INFO: ProcessCDR(1,14383301,1,1,2) [2025-02-02 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383301', 'tblTempUsageDetail_20' ) start [2025-02-02 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383301', 'tblTempUsageDetail_20' ) end [2025-02-02 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:41:21] Production.INFO: ==25982== Releasing lock... [2025-02-02 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:41:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-02 04:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:42:06 [end_date_ymd] => 2025-02-02 04:42:06 [RateCDR] => 1 ) [2025-02-02 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-02 01:42:06' and `end` < '2025-02-02 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-02 04:42:19] Production.INFO: count ==300 [2025-02-02 04:42:19] Production.ERROR: pbx CDR StartTime 2025-02-02 01:42:06 - End Time 2025-02-02 04:42:06 [2025-02-02 04:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383306', 'tblTempUsageDetail_20' ) start [2025-02-02 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383306', 'tblTempUsageDetail_20' ) end [2025-02-02 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383306', 'tblTempVendorCDR_20' ) start [2025-02-02 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383306', 'tblTempVendorCDR_20' ) end [2025-02-02 04:42:19] Production.INFO: ProcessCDR(1,14383306,1,1,2) [2025-02-02 04:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383306', 'tblTempUsageDetail_20' ) start [2025-02-02 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383306', 'tblTempUsageDetail_20' ) end [2025-02-02 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:42:22] Production.INFO: ==26054== Releasing lock... [2025-02-02 04:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:42:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-02 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:43:05 [end_date_ymd] => 2025-02-02 04:43:05 [RateCDR] => 1 ) [2025-02-02 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-02 01:43:05' and `end` < '2025-02-02 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-02 04:43:18] Production.INFO: count ==300 [2025-02-02 04:43:18] Production.ERROR: pbx CDR StartTime 2025-02-02 01:43:05 - End Time 2025-02-02 04:43:05 [2025-02-02 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383311', 'tblTempUsageDetail_20' ) start [2025-02-02 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383311', 'tblTempUsageDetail_20' ) end [2025-02-02 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383311', 'tblTempVendorCDR_20' ) start [2025-02-02 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383311', 'tblTempVendorCDR_20' ) end [2025-02-02 04:43:18] Production.INFO: ProcessCDR(1,14383311,1,1,2) [2025-02-02 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383311', 'tblTempUsageDetail_20' ) start [2025-02-02 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383311', 'tblTempUsageDetail_20' ) end [2025-02-02 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:43:21] Production.INFO: ==26129== Releasing lock... [2025-02-02 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:43:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-02 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:44:05 [end_date_ymd] => 2025-02-02 04:44:05 [RateCDR] => 1 ) [2025-02-02 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-02 01:44:05' and `end` < '2025-02-02 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-02 04:44:18] Production.INFO: count ==297 [2025-02-02 04:44:18] Production.ERROR: pbx CDR StartTime 2025-02-02 01:44:05 - End Time 2025-02-02 04:44:05 [2025-02-02 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383316', 'tblTempUsageDetail_20' ) start [2025-02-02 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383316', 'tblTempUsageDetail_20' ) end [2025-02-02 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383316', 'tblTempVendorCDR_20' ) start [2025-02-02 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383316', 'tblTempVendorCDR_20' ) end [2025-02-02 04:44:18] Production.INFO: ProcessCDR(1,14383316,1,1,2) [2025-02-02 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383316', 'tblTempUsageDetail_20' ) start [2025-02-02 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383316', 'tblTempUsageDetail_20' ) end [2025-02-02 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:44:21] Production.INFO: ==26203== Releasing lock... [2025-02-02 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:44:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-02 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:45:05 [end_date_ymd] => 2025-02-02 04:45:05 [RateCDR] => 1 ) [2025-02-02 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-02 01:45:05' and `end` < '2025-02-02 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-02 04:45:17] Production.INFO: count ==297 [2025-02-02 04:45:17] Production.ERROR: pbx CDR StartTime 2025-02-02 01:45:05 - End Time 2025-02-02 04:45:05 [2025-02-02 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383321', 'tblTempUsageDetail_20' ) start [2025-02-02 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383321', 'tblTempUsageDetail_20' ) end [2025-02-02 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383321', 'tblTempVendorCDR_20' ) start [2025-02-02 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383321', 'tblTempVendorCDR_20' ) end [2025-02-02 04:45:17] Production.INFO: ProcessCDR(1,14383321,1,1,2) [2025-02-02 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383321', 'tblTempUsageDetail_20' ) start [2025-02-02 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383321', 'tblTempUsageDetail_20' ) end [2025-02-02 04:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:45:20] Production.INFO: ==26311== Releasing lock... [2025-02-02 04:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:45:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-02 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:46:05 [end_date_ymd] => 2025-02-02 04:46:05 [RateCDR] => 1 ) [2025-02-02 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-02 01:46:05' and `end` < '2025-02-02 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-02 04:46:20] Production.INFO: count ==297 [2025-02-02 04:46:20] Production.ERROR: pbx CDR StartTime 2025-02-02 01:46:05 - End Time 2025-02-02 04:46:05 [2025-02-02 04:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383326', 'tblTempUsageDetail_20' ) start [2025-02-02 04:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383326', 'tblTempUsageDetail_20' ) end [2025-02-02 04:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383326', 'tblTempVendorCDR_20' ) start [2025-02-02 04:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383326', 'tblTempVendorCDR_20' ) end [2025-02-02 04:46:20] Production.INFO: ProcessCDR(1,14383326,1,1,2) [2025-02-02 04:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383326', 'tblTempUsageDetail_20' ) start [2025-02-02 04:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383326', 'tblTempUsageDetail_20' ) end [2025-02-02 04:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:46:24] Production.INFO: ==26384== Releasing lock... [2025-02-02 04:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:46:24] Production.INFO: 29.75 MB #Memory Used# [2025-02-02 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:47:05 [end_date_ymd] => 2025-02-02 04:47:05 [RateCDR] => 1 ) [2025-02-02 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-02 01:47:05' and `end` < '2025-02-02 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-02 04:47:19] Production.INFO: count ==292 [2025-02-02 04:47:19] Production.ERROR: pbx CDR StartTime 2025-02-02 01:47:05 - End Time 2025-02-02 04:47:05 [2025-02-02 04:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383331', 'tblTempUsageDetail_20' ) start [2025-02-02 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383331', 'tblTempUsageDetail_20' ) end [2025-02-02 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383331', 'tblTempVendorCDR_20' ) start [2025-02-02 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383331', 'tblTempVendorCDR_20' ) end [2025-02-02 04:47:19] Production.INFO: ProcessCDR(1,14383331,1,1,2) [2025-02-02 04:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383331', 'tblTempUsageDetail_20' ) start [2025-02-02 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383331', 'tblTempUsageDetail_20' ) end [2025-02-02 04:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:47:23] Production.INFO: ==26456== Releasing lock... [2025-02-02 04:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:47:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-02 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:48:05 [end_date_ymd] => 2025-02-02 04:48:05 [RateCDR] => 1 ) [2025-02-02 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-02 01:48:05' and `end` < '2025-02-02 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-02 04:48:20] Production.INFO: count ==288 [2025-02-02 04:48:20] Production.ERROR: pbx CDR StartTime 2025-02-02 01:48:05 - End Time 2025-02-02 04:48:05 [2025-02-02 04:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383336', 'tblTempUsageDetail_20' ) start [2025-02-02 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383336', 'tblTempUsageDetail_20' ) end [2025-02-02 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383336', 'tblTempVendorCDR_20' ) start [2025-02-02 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383336', 'tblTempVendorCDR_20' ) end [2025-02-02 04:48:20] Production.INFO: ProcessCDR(1,14383336,1,1,2) [2025-02-02 04:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383336', 'tblTempUsageDetail_20' ) start [2025-02-02 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383336', 'tblTempUsageDetail_20' ) end [2025-02-02 04:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:48:23] Production.INFO: ==26529== Releasing lock... [2025-02-02 04:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:48:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-02 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:49:05 [end_date_ymd] => 2025-02-02 04:49:05 [RateCDR] => 1 ) [2025-02-02 04:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 01:49:05' and `end` < '2025-02-02 04:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 04:49:18] Production.INFO: count ==288 [2025-02-02 04:49:18] Production.ERROR: pbx CDR StartTime 2025-02-02 01:49:05 - End Time 2025-02-02 04:49:05 [2025-02-02 04:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383341', 'tblTempUsageDetail_20' ) start [2025-02-02 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383341', 'tblTempUsageDetail_20' ) end [2025-02-02 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383341', 'tblTempVendorCDR_20' ) start [2025-02-02 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383341', 'tblTempVendorCDR_20' ) end [2025-02-02 04:49:18] Production.INFO: ProcessCDR(1,14383341,1,1,2) [2025-02-02 04:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383341', 'tblTempUsageDetail_20' ) start [2025-02-02 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383341', 'tblTempUsageDetail_20' ) end [2025-02-02 04:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:49:21] Production.INFO: ==26600== Releasing lock... [2025-02-02 04:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:49:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-02 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:50:06 [end_date_ymd] => 2025-02-02 04:50:06 [RateCDR] => 1 ) [2025-02-02 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-02 01:50:06' and `end` < '2025-02-02 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-02 04:50:22] Production.INFO: count ==288 [2025-02-02 04:50:22] Production.ERROR: pbx CDR StartTime 2025-02-02 01:50:06 - End Time 2025-02-02 04:50:06 [2025-02-02 04:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383347', 'tblTempUsageDetail_20' ) start [2025-02-02 04:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383347', 'tblTempUsageDetail_20' ) end [2025-02-02 04:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383347', 'tblTempVendorCDR_20' ) start [2025-02-02 04:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383347', 'tblTempVendorCDR_20' ) end [2025-02-02 04:50:22] Production.INFO: ProcessCDR(1,14383347,1,1,2) [2025-02-02 04:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383347', 'tblTempUsageDetail_20' ) start [2025-02-02 04:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383347', 'tblTempUsageDetail_20' ) end [2025-02-02 04:50:26] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:50:26] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:50:26] Production.INFO: ==26676== Releasing lock... [2025-02-02 04:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:50:26] Production.INFO: 29.5 MB #Memory Used# [2025-02-02 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:51:05 [end_date_ymd] => 2025-02-02 04:51:05 [RateCDR] => 1 ) [2025-02-02 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-02 01:51:05' and `end` < '2025-02-02 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-02 04:51:20] Production.INFO: count ==282 [2025-02-02 04:51:20] Production.ERROR: pbx CDR StartTime 2025-02-02 01:51:05 - End Time 2025-02-02 04:51:05 [2025-02-02 04:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383352', 'tblTempUsageDetail_20' ) start [2025-02-02 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383352', 'tblTempUsageDetail_20' ) end [2025-02-02 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383352', 'tblTempVendorCDR_20' ) start [2025-02-02 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383352', 'tblTempVendorCDR_20' ) end [2025-02-02 04:51:20] Production.INFO: ProcessCDR(1,14383352,1,1,2) [2025-02-02 04:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383352', 'tblTempUsageDetail_20' ) start [2025-02-02 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383352', 'tblTempUsageDetail_20' ) end [2025-02-02 04:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:51:23] Production.INFO: ==26772== Releasing lock... [2025-02-02 04:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:51:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-02 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:52:05 [end_date_ymd] => 2025-02-02 04:52:05 [RateCDR] => 1 ) [2025-02-02 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-02 01:52:05' and `end` < '2025-02-02 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-02 04:52:19] Production.INFO: count ==281 [2025-02-02 04:52:19] Production.ERROR: pbx CDR StartTime 2025-02-02 01:52:05 - End Time 2025-02-02 04:52:05 [2025-02-02 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383357', 'tblTempUsageDetail_20' ) start [2025-02-02 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383357', 'tblTempUsageDetail_20' ) end [2025-02-02 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383357', 'tblTempVendorCDR_20' ) start [2025-02-02 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383357', 'tblTempVendorCDR_20' ) end [2025-02-02 04:52:19] Production.INFO: ProcessCDR(1,14383357,1,1,2) [2025-02-02 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383357', 'tblTempUsageDetail_20' ) start [2025-02-02 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383357', 'tblTempUsageDetail_20' ) end [2025-02-02 04:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:52:22] Production.INFO: ==26850== Releasing lock... [2025-02-02 04:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:52:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-02 04:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:53:06 [end_date_ymd] => 2025-02-02 04:53:06 [RateCDR] => 1 ) [2025-02-02 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-02 01:53:06' and `end` < '2025-02-02 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-02 04:53:19] Production.INFO: count ==281 [2025-02-02 04:53:19] Production.ERROR: pbx CDR StartTime 2025-02-02 01:53:06 - End Time 2025-02-02 04:53:06 [2025-02-02 04:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383362', 'tblTempUsageDetail_20' ) start [2025-02-02 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383362', 'tblTempUsageDetail_20' ) end [2025-02-02 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383362', 'tblTempVendorCDR_20' ) start [2025-02-02 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383362', 'tblTempVendorCDR_20' ) end [2025-02-02 04:53:19] Production.INFO: ProcessCDR(1,14383362,1,1,2) [2025-02-02 04:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383362', 'tblTempUsageDetail_20' ) start [2025-02-02 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383362', 'tblTempUsageDetail_20' ) end [2025-02-02 04:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:53:22] Production.INFO: ==26927== Releasing lock... [2025-02-02 04:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:53:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-02 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:54:05 [end_date_ymd] => 2025-02-02 04:54:05 [RateCDR] => 1 ) [2025-02-02 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-02 01:54:05' and `end` < '2025-02-02 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-02 04:54:19] Production.INFO: count ==281 [2025-02-02 04:54:19] Production.ERROR: pbx CDR StartTime 2025-02-02 01:54:05 - End Time 2025-02-02 04:54:05 [2025-02-02 04:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383367', 'tblTempUsageDetail_20' ) start [2025-02-02 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383367', 'tblTempUsageDetail_20' ) end [2025-02-02 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383367', 'tblTempVendorCDR_20' ) start [2025-02-02 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383367', 'tblTempVendorCDR_20' ) end [2025-02-02 04:54:19] Production.INFO: ProcessCDR(1,14383367,1,1,2) [2025-02-02 04:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383367', 'tblTempUsageDetail_20' ) start [2025-02-02 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383367', 'tblTempUsageDetail_20' ) end [2025-02-02 04:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:54:22] Production.INFO: ==26999== Releasing lock... [2025-02-02 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:54:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-02 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:55:05 [end_date_ymd] => 2025-02-02 04:55:05 [RateCDR] => 1 ) [2025-02-02 04:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 01:55:05' and `end` < '2025-02-02 04:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 04:55:20] Production.INFO: count ==278 [2025-02-02 04:55:20] Production.ERROR: pbx CDR StartTime 2025-02-02 01:55:05 - End Time 2025-02-02 04:55:05 [2025-02-02 04:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383372', 'tblTempUsageDetail_20' ) start [2025-02-02 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383372', 'tblTempUsageDetail_20' ) end [2025-02-02 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383372', 'tblTempVendorCDR_20' ) start [2025-02-02 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383372', 'tblTempVendorCDR_20' ) end [2025-02-02 04:55:20] Production.INFO: ProcessCDR(1,14383372,1,1,2) [2025-02-02 04:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383372', 'tblTempUsageDetail_20' ) start [2025-02-02 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383372', 'tblTempUsageDetail_20' ) end [2025-02-02 04:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:55:23] Production.INFO: ==27069== Releasing lock... [2025-02-02 04:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:55:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-02 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:56:05 [end_date_ymd] => 2025-02-02 04:56:05 [RateCDR] => 1 ) [2025-02-02 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-02 01:56:05' and `end` < '2025-02-02 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-02 04:56:19] Production.INFO: count ==278 [2025-02-02 04:56:19] Production.ERROR: pbx CDR StartTime 2025-02-02 01:56:05 - End Time 2025-02-02 04:56:05 [2025-02-02 04:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383377', 'tblTempUsageDetail_20' ) start [2025-02-02 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383377', 'tblTempUsageDetail_20' ) end [2025-02-02 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383377', 'tblTempVendorCDR_20' ) start [2025-02-02 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383377', 'tblTempVendorCDR_20' ) end [2025-02-02 04:56:19] Production.INFO: ProcessCDR(1,14383377,1,1,2) [2025-02-02 04:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383377', 'tblTempUsageDetail_20' ) start [2025-02-02 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383377', 'tblTempUsageDetail_20' ) end [2025-02-02 04:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:56:22] Production.INFO: ==27143== Releasing lock... [2025-02-02 04:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:56:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-02 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:57:05 [end_date_ymd] => 2025-02-02 04:57:05 [RateCDR] => 1 ) [2025-02-02 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-02 01:57:05' and `end` < '2025-02-02 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-02 04:57:20] Production.INFO: count ==278 [2025-02-02 04:57:20] Production.ERROR: pbx CDR StartTime 2025-02-02 01:57:05 - End Time 2025-02-02 04:57:05 [2025-02-02 04:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383382', 'tblTempUsageDetail_20' ) start [2025-02-02 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383382', 'tblTempUsageDetail_20' ) end [2025-02-02 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383382', 'tblTempVendorCDR_20' ) start [2025-02-02 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383382', 'tblTempVendorCDR_20' ) end [2025-02-02 04:57:20] Production.INFO: ProcessCDR(1,14383382,1,1,2) [2025-02-02 04:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383382', 'tblTempUsageDetail_20' ) start [2025-02-02 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383382', 'tblTempUsageDetail_20' ) end [2025-02-02 04:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:57:23] Production.INFO: ==27215== Releasing lock... [2025-02-02 04:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:57:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-02 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:58:05 [end_date_ymd] => 2025-02-02 04:58:05 [RateCDR] => 1 ) [2025-02-02 04:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 01:58:05' and `end` < '2025-02-02 04:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 04:58:19] Production.INFO: count ==278 [2025-02-02 04:58:19] Production.ERROR: pbx CDR StartTime 2025-02-02 01:58:05 - End Time 2025-02-02 04:58:05 [2025-02-02 04:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383387', 'tblTempUsageDetail_20' ) start [2025-02-02 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383387', 'tblTempUsageDetail_20' ) end [2025-02-02 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383387', 'tblTempVendorCDR_20' ) start [2025-02-02 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383387', 'tblTempVendorCDR_20' ) end [2025-02-02 04:58:19] Production.INFO: ProcessCDR(1,14383387,1,1,2) [2025-02-02 04:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383387', 'tblTempUsageDetail_20' ) start [2025-02-02 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383387', 'tblTempUsageDetail_20' ) end [2025-02-02 04:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:58:22] Production.INFO: ==27305== Releasing lock... [2025-02-02 04:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:58:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-02 04:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 01:59:06 [end_date_ymd] => 2025-02-02 04:59:06 [RateCDR] => 1 ) [2025-02-02 04: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-02 01:59:06' and `end` < '2025-02-02 04: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-02 04:59:19] Production.INFO: count ==275 [2025-02-02 04:59:19] Production.ERROR: pbx CDR StartTime 2025-02-02 01:59:06 - End Time 2025-02-02 04:59:06 [2025-02-02 04:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383392', 'tblTempUsageDetail_20' ) start [2025-02-02 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383392', 'tblTempUsageDetail_20' ) end [2025-02-02 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383392', 'tblTempVendorCDR_20' ) start [2025-02-02 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383392', 'tblTempVendorCDR_20' ) end [2025-02-02 04:59:19] Production.INFO: ProcessCDR(1,14383392,1,1,2) [2025-02-02 04:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 04:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383392', 'tblTempUsageDetail_20' ) start [2025-02-02 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383392', 'tblTempUsageDetail_20' ) end [2025-02-02 04:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 04:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 04:59:22] Production.INFO: ==27379== Releasing lock... [2025-02-02 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 04:59:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-02 05:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:00:05 [end_date_ymd] => 2025-02-02 05:00:05 [RateCDR] => 1 ) [2025-02-02 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-02 02:00:05' and `end` < '2025-02-02 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-02 05:00:21] Production.INFO: count ==270 [2025-02-02 05:00:21] Production.ERROR: pbx CDR StartTime 2025-02-02 02:00:05 - End Time 2025-02-02 05:00:05 [2025-02-02 05:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383398', 'tblTempUsageDetail_20' ) start [2025-02-02 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383398', 'tblTempUsageDetail_20' ) end [2025-02-02 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383398', 'tblTempVendorCDR_20' ) start [2025-02-02 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383398', 'tblTempVendorCDR_20' ) end [2025-02-02 05:00:21] Production.INFO: ProcessCDR(1,14383398,1,1,2) [2025-02-02 05:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383398', 'tblTempUsageDetail_20' ) start [2025-02-02 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383398', 'tblTempUsageDetail_20' ) end [2025-02-02 05:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:00:24] Production.INFO: ==27492== Releasing lock... [2025-02-02 05:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:00:24] Production.INFO: 29.5 MB #Memory Used# [2025-02-02 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:01:05 [end_date_ymd] => 2025-02-02 05:01:05 [RateCDR] => 1 ) [2025-02-02 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-02 02:01:05' and `end` < '2025-02-02 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-02 05:01:19] Production.INFO: count ==246 [2025-02-02 05:01:19] Production.ERROR: pbx CDR StartTime 2025-02-02 02:01:05 - End Time 2025-02-02 05:01:05 [2025-02-02 05:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383403', 'tblTempUsageDetail_20' ) start [2025-02-02 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383403', 'tblTempUsageDetail_20' ) end [2025-02-02 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383403', 'tblTempVendorCDR_20' ) start [2025-02-02 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383403', 'tblTempVendorCDR_20' ) end [2025-02-02 05:01:19] Production.INFO: ProcessCDR(1,14383403,1,1,2) [2025-02-02 05:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383403', 'tblTempUsageDetail_20' ) start [2025-02-02 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383403', 'tblTempUsageDetail_20' ) end [2025-02-02 05:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:01:22] Production.INFO: ==27586== Releasing lock... [2025-02-02 05:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:01:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-02 05:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:02:04 [end_date_ymd] => 2025-02-02 05:02:04 [RateCDR] => 1 ) [2025-02-02 05:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 02:02:04' and `end` < '2025-02-02 05:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 05:02:19] Production.INFO: count ==246 [2025-02-02 05:02:19] Production.ERROR: pbx CDR StartTime 2025-02-02 02:02:04 - End Time 2025-02-02 05:02:04 [2025-02-02 05:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383408', 'tblTempUsageDetail_20' ) start [2025-02-02 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383408', 'tblTempUsageDetail_20' ) end [2025-02-02 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383408', 'tblTempVendorCDR_20' ) start [2025-02-02 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383408', 'tblTempVendorCDR_20' ) end [2025-02-02 05:02:19] Production.INFO: ProcessCDR(1,14383408,1,1,2) [2025-02-02 05:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383408', 'tblTempUsageDetail_20' ) start [2025-02-02 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383408', 'tblTempUsageDetail_20' ) end [2025-02-02 05:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:02:22] Production.INFO: ==27659== Releasing lock... [2025-02-02 05:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:02:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-02 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:03:05 [end_date_ymd] => 2025-02-02 05:03:05 [RateCDR] => 1 ) [2025-02-02 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-02 02:03:05' and `end` < '2025-02-02 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-02 05:03:18] Production.INFO: count ==246 [2025-02-02 05:03:19] Production.ERROR: pbx CDR StartTime 2025-02-02 02:03:05 - End Time 2025-02-02 05:03:05 [2025-02-02 05:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383413', 'tblTempUsageDetail_20' ) start [2025-02-02 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383413', 'tblTempUsageDetail_20' ) end [2025-02-02 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383413', 'tblTempVendorCDR_20' ) start [2025-02-02 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383413', 'tblTempVendorCDR_20' ) end [2025-02-02 05:03:19] Production.INFO: ProcessCDR(1,14383413,1,1,2) [2025-02-02 05:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383413', 'tblTempUsageDetail_20' ) start [2025-02-02 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383413', 'tblTempUsageDetail_20' ) end [2025-02-02 05:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:03:22] Production.INFO: ==27736== Releasing lock... [2025-02-02 05:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:03:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-02 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:04:05 [end_date_ymd] => 2025-02-02 05:04:05 [RateCDR] => 1 ) [2025-02-02 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-02 02:04:05' and `end` < '2025-02-02 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-02 05:04:18] Production.INFO: count ==246 [2025-02-02 05:04:18] Production.ERROR: pbx CDR StartTime 2025-02-02 02:04:05 - End Time 2025-02-02 05:04:05 [2025-02-02 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383418', 'tblTempUsageDetail_20' ) start [2025-02-02 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383418', 'tblTempUsageDetail_20' ) end [2025-02-02 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383418', 'tblTempVendorCDR_20' ) start [2025-02-02 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383418', 'tblTempVendorCDR_20' ) end [2025-02-02 05:04:18] Production.INFO: ProcessCDR(1,14383418,1,1,2) [2025-02-02 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383418', 'tblTempUsageDetail_20' ) start [2025-02-02 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383418', 'tblTempUsageDetail_20' ) end [2025-02-02 05:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:04:22] Production.INFO: ==27811== Releasing lock... [2025-02-02 05:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:04:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-02 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:05:05 [end_date_ymd] => 2025-02-02 05:05:05 [RateCDR] => 1 ) [2025-02-02 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-02 02:05:05' and `end` < '2025-02-02 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-02 05:05:19] Production.INFO: count ==246 [2025-02-02 05:05:19] Production.ERROR: pbx CDR StartTime 2025-02-02 02:05:05 - End Time 2025-02-02 05:05:05 [2025-02-02 05:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383423', 'tblTempUsageDetail_20' ) start [2025-02-02 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383423', 'tblTempUsageDetail_20' ) end [2025-02-02 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383423', 'tblTempVendorCDR_20' ) start [2025-02-02 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383423', 'tblTempVendorCDR_20' ) end [2025-02-02 05:05:19] Production.INFO: ProcessCDR(1,14383423,1,1,2) [2025-02-02 05:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383423', 'tblTempUsageDetail_20' ) start [2025-02-02 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383423', 'tblTempUsageDetail_20' ) end [2025-02-02 05:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:05:22] Production.INFO: ==27902== Releasing lock... [2025-02-02 05:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:05:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-02 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:06:05 [end_date_ymd] => 2025-02-02 05:06:05 [RateCDR] => 1 ) [2025-02-02 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-02 02:06:05' and `end` < '2025-02-02 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-02 05:06:18] Production.INFO: count ==246 [2025-02-02 05:06:18] Production.ERROR: pbx CDR StartTime 2025-02-02 02:06:05 - End Time 2025-02-02 05:06:05 [2025-02-02 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383428', 'tblTempUsageDetail_20' ) start [2025-02-02 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383428', 'tblTempUsageDetail_20' ) end [2025-02-02 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383428', 'tblTempVendorCDR_20' ) start [2025-02-02 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383428', 'tblTempVendorCDR_20' ) end [2025-02-02 05:06:18] Production.INFO: ProcessCDR(1,14383428,1,1,2) [2025-02-02 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383428', 'tblTempUsageDetail_20' ) start [2025-02-02 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383428', 'tblTempUsageDetail_20' ) end [2025-02-02 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:06:21] Production.INFO: ==27974== Releasing lock... [2025-02-02 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:06:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-02 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:07:05 [end_date_ymd] => 2025-02-02 05:07:05 [RateCDR] => 1 ) [2025-02-02 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-02 02:07:05' and `end` < '2025-02-02 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-02 05:07:19] Production.INFO: count ==246 [2025-02-02 05:07:19] Production.ERROR: pbx CDR StartTime 2025-02-02 02:07:05 - End Time 2025-02-02 05:07:05 [2025-02-02 05:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383433', 'tblTempUsageDetail_20' ) start [2025-02-02 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383433', 'tblTempUsageDetail_20' ) end [2025-02-02 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383433', 'tblTempVendorCDR_20' ) start [2025-02-02 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383433', 'tblTempVendorCDR_20' ) end [2025-02-02 05:07:19] Production.INFO: ProcessCDR(1,14383433,1,1,2) [2025-02-02 05:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383433', 'tblTempUsageDetail_20' ) start [2025-02-02 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383433', 'tblTempUsageDetail_20' ) end [2025-02-02 05:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:07:22] Production.INFO: ==28046== Releasing lock... [2025-02-02 05:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:07:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-02 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:08:05 [end_date_ymd] => 2025-02-02 05:08:05 [RateCDR] => 1 ) [2025-02-02 05:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 02:08:05' and `end` < '2025-02-02 05:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 05:08:18] Production.INFO: count ==246 [2025-02-02 05:08:18] Production.ERROR: pbx CDR StartTime 2025-02-02 02:08:05 - End Time 2025-02-02 05:08:05 [2025-02-02 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383438', 'tblTempUsageDetail_20' ) start [2025-02-02 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383438', 'tblTempUsageDetail_20' ) end [2025-02-02 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383438', 'tblTempVendorCDR_20' ) start [2025-02-02 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383438', 'tblTempVendorCDR_20' ) end [2025-02-02 05:08:18] Production.INFO: ProcessCDR(1,14383438,1,1,2) [2025-02-02 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383438', 'tblTempUsageDetail_20' ) start [2025-02-02 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383438', 'tblTempUsageDetail_20' ) end [2025-02-02 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:08:21] Production.INFO: ==28119== Releasing lock... [2025-02-02 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:08:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-02 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:09:05 [end_date_ymd] => 2025-02-02 05:09:05 [RateCDR] => 1 ) [2025-02-02 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-02 02:09:05' and `end` < '2025-02-02 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-02 05:09:18] Production.INFO: count ==246 [2025-02-02 05:09:18] Production.ERROR: pbx CDR StartTime 2025-02-02 02:09:05 - End Time 2025-02-02 05:09:05 [2025-02-02 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383443', 'tblTempUsageDetail_20' ) start [2025-02-02 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383443', 'tblTempUsageDetail_20' ) end [2025-02-02 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383443', 'tblTempVendorCDR_20' ) start [2025-02-02 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383443', 'tblTempVendorCDR_20' ) end [2025-02-02 05:09:18] Production.INFO: ProcessCDR(1,14383443,1,1,2) [2025-02-02 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383443', 'tblTempUsageDetail_20' ) start [2025-02-02 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383443', 'tblTempUsageDetail_20' ) end [2025-02-02 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:09:21] Production.INFO: ==28192== Releasing lock... [2025-02-02 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:09:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-02 05:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:10:05 [end_date_ymd] => 2025-02-02 05:10:05 [RateCDR] => 1 ) [2025-02-02 05: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-02 02:10:05' and `end` < '2025-02-02 05: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-02 05:10:19] Production.INFO: count ==244 [2025-02-02 05:10:19] Production.ERROR: pbx CDR StartTime 2025-02-02 02:10:05 - End Time 2025-02-02 05:10:05 [2025-02-02 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383449', 'tblTempUsageDetail_20' ) start [2025-02-02 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383449', 'tblTempUsageDetail_20' ) end [2025-02-02 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383449', 'tblTempVendorCDR_20' ) start [2025-02-02 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383449', 'tblTempVendorCDR_20' ) end [2025-02-02 05:10:19] Production.INFO: ProcessCDR(1,14383449,1,1,2) [2025-02-02 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383449', 'tblTempUsageDetail_20' ) start [2025-02-02 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383449', 'tblTempUsageDetail_20' ) end [2025-02-02 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:10:22] Production.INFO: ==28265== Releasing lock... [2025-02-02 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:10:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-02 05:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:11:06 [end_date_ymd] => 2025-02-02 05:11:06 [RateCDR] => 1 ) [2025-02-02 05:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 02:11:06' and `end` < '2025-02-02 05:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 05:11:19] Production.INFO: count ==232 [2025-02-02 05:11:19] Production.ERROR: pbx CDR StartTime 2025-02-02 02:11:06 - End Time 2025-02-02 05:11:06 [2025-02-02 05:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383454', 'tblTempUsageDetail_20' ) start [2025-02-02 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383454', 'tblTempUsageDetail_20' ) end [2025-02-02 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383454', 'tblTempVendorCDR_20' ) start [2025-02-02 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383454', 'tblTempVendorCDR_20' ) end [2025-02-02 05:11:19] Production.INFO: ProcessCDR(1,14383454,1,1,2) [2025-02-02 05:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383454', 'tblTempUsageDetail_20' ) start [2025-02-02 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383454', 'tblTempUsageDetail_20' ) end [2025-02-02 05:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:11:22] Production.INFO: ==28349== Releasing lock... [2025-02-02 05:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:11:22] Production.INFO: 29 MB #Memory Used# [2025-02-02 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:12:05 [end_date_ymd] => 2025-02-02 05:12:05 [RateCDR] => 1 ) [2025-02-02 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-02 02:12:05' and `end` < '2025-02-02 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-02 05:12:18] Production.INFO: count ==231 [2025-02-02 05:12:18] Production.ERROR: pbx CDR StartTime 2025-02-02 02:12:05 - End Time 2025-02-02 05:12:05 [2025-02-02 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383459', 'tblTempUsageDetail_20' ) start [2025-02-02 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383459', 'tblTempUsageDetail_20' ) end [2025-02-02 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383459', 'tblTempVendorCDR_20' ) start [2025-02-02 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383459', 'tblTempVendorCDR_20' ) end [2025-02-02 05:12:18] Production.INFO: ProcessCDR(1,14383459,1,1,2) [2025-02-02 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383459', 'tblTempUsageDetail_20' ) start [2025-02-02 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383459', 'tblTempUsageDetail_20' ) end [2025-02-02 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:12:21] Production.INFO: ==28433== Releasing lock... [2025-02-02 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:12:21] Production.INFO: 29 MB #Memory Used# [2025-02-02 05:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:13:04 [end_date_ymd] => 2025-02-02 05:13:04 [RateCDR] => 1 ) [2025-02-02 05:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 02:13:04' and `end` < '2025-02-02 05:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 05:13:17] Production.INFO: count ==231 [2025-02-02 05:13:17] Production.ERROR: pbx CDR StartTime 2025-02-02 02:13:04 - End Time 2025-02-02 05:13:04 [2025-02-02 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383464', 'tblTempUsageDetail_20' ) start [2025-02-02 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383464', 'tblTempUsageDetail_20' ) end [2025-02-02 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383464', 'tblTempVendorCDR_20' ) start [2025-02-02 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383464', 'tblTempVendorCDR_20' ) end [2025-02-02 05:13:17] Production.INFO: ProcessCDR(1,14383464,1,1,2) [2025-02-02 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383464', 'tblTempUsageDetail_20' ) start [2025-02-02 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383464', 'tblTempUsageDetail_20' ) end [2025-02-02 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:13:21] Production.INFO: ==28505== Releasing lock... [2025-02-02 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:13:21] Production.INFO: 29 MB #Memory Used# [2025-02-02 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:14:05 [end_date_ymd] => 2025-02-02 05:14:05 [RateCDR] => 1 ) [2025-02-02 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-02 02:14:05' and `end` < '2025-02-02 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-02 05:14:18] Production.INFO: count ==230 [2025-02-02 05:14:18] Production.ERROR: pbx CDR StartTime 2025-02-02 02:14:05 - End Time 2025-02-02 05:14:05 [2025-02-02 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383469', 'tblTempUsageDetail_20' ) start [2025-02-02 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383469', 'tblTempUsageDetail_20' ) end [2025-02-02 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383469', 'tblTempVendorCDR_20' ) start [2025-02-02 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383469', 'tblTempVendorCDR_20' ) end [2025-02-02 05:14:18] Production.INFO: ProcessCDR(1,14383469,1,1,2) [2025-02-02 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383469', 'tblTempUsageDetail_20' ) start [2025-02-02 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383469', 'tblTempUsageDetail_20' ) end [2025-02-02 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:14:21] Production.INFO: ==28577== Releasing lock... [2025-02-02 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:14:21] Production.INFO: 29 MB #Memory Used# [2025-02-02 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:15:05 [end_date_ymd] => 2025-02-02 05:15:05 [RateCDR] => 1 ) [2025-02-02 05:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 02:15:05' and `end` < '2025-02-02 05:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 05:15:18] Production.INFO: count ==230 [2025-02-02 05:15:18] Production.ERROR: pbx CDR StartTime 2025-02-02 02:15:05 - End Time 2025-02-02 05:15:05 [2025-02-02 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383474', 'tblTempUsageDetail_20' ) start [2025-02-02 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383474', 'tblTempUsageDetail_20' ) end [2025-02-02 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383474', 'tblTempVendorCDR_20' ) start [2025-02-02 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383474', 'tblTempVendorCDR_20' ) end [2025-02-02 05:15:18] Production.INFO: ProcessCDR(1,14383474,1,1,2) [2025-02-02 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383474', 'tblTempUsageDetail_20' ) start [2025-02-02 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383474', 'tblTempUsageDetail_20' ) end [2025-02-02 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:15:21] Production.INFO: ==28691== Releasing lock... [2025-02-02 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:15:21] Production.INFO: 29 MB #Memory Used# [2025-02-02 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:16:05 [end_date_ymd] => 2025-02-02 05:16:05 [RateCDR] => 1 ) [2025-02-02 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-02 02:16:05' and `end` < '2025-02-02 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-02 05:16:19] Production.INFO: count ==230 [2025-02-02 05:16:19] Production.ERROR: pbx CDR StartTime 2025-02-02 02:16:05 - End Time 2025-02-02 05:16:05 [2025-02-02 05:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383479', 'tblTempUsageDetail_20' ) start [2025-02-02 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383479', 'tblTempUsageDetail_20' ) end [2025-02-02 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383479', 'tblTempVendorCDR_20' ) start [2025-02-02 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383479', 'tblTempVendorCDR_20' ) end [2025-02-02 05:16:19] Production.INFO: ProcessCDR(1,14383479,1,1,2) [2025-02-02 05:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383479', 'tblTempUsageDetail_20' ) start [2025-02-02 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383479', 'tblTempUsageDetail_20' ) end [2025-02-02 05:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:16:22] Production.INFO: ==28765== Releasing lock... [2025-02-02 05:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:16:22] Production.INFO: 29 MB #Memory Used# [2025-02-02 05:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:17:04 [end_date_ymd] => 2025-02-02 05:17:04 [RateCDR] => 1 ) [2025-02-02 05: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-02 02:17:04' and `end` < '2025-02-02 05: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-02 05:17:18] Production.INFO: count ==230 [2025-02-02 05:17:18] Production.ERROR: pbx CDR StartTime 2025-02-02 02:17:04 - End Time 2025-02-02 05:17:04 [2025-02-02 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383484', 'tblTempUsageDetail_20' ) start [2025-02-02 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383484', 'tblTempUsageDetail_20' ) end [2025-02-02 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383484', 'tblTempVendorCDR_20' ) start [2025-02-02 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383484', 'tblTempVendorCDR_20' ) end [2025-02-02 05:17:18] Production.INFO: ProcessCDR(1,14383484,1,1,2) [2025-02-02 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383484', 'tblTempUsageDetail_20' ) start [2025-02-02 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383484', 'tblTempUsageDetail_20' ) end [2025-02-02 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:17:21] Production.INFO: ==28838== Releasing lock... [2025-02-02 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:17:21] Production.INFO: 29 MB #Memory Used# [2025-02-02 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:18:05 [end_date_ymd] => 2025-02-02 05:18:05 [RateCDR] => 1 ) [2025-02-02 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-02 02:18:05' and `end` < '2025-02-02 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-02 05:18:18] Production.INFO: count ==230 [2025-02-02 05:18:18] Production.ERROR: pbx CDR StartTime 2025-02-02 02:18:05 - End Time 2025-02-02 05:18:05 [2025-02-02 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383489', 'tblTempUsageDetail_20' ) start [2025-02-02 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383489', 'tblTempUsageDetail_20' ) end [2025-02-02 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383489', 'tblTempVendorCDR_20' ) start [2025-02-02 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383489', 'tblTempVendorCDR_20' ) end [2025-02-02 05:18:18] Production.INFO: ProcessCDR(1,14383489,1,1,2) [2025-02-02 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383489', 'tblTempUsageDetail_20' ) start [2025-02-02 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383489', 'tblTempUsageDetail_20' ) end [2025-02-02 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:18:21] Production.INFO: ==28929== Releasing lock... [2025-02-02 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:18:21] Production.INFO: 29 MB #Memory Used# [2025-02-02 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:19:05 [end_date_ymd] => 2025-02-02 05:19:05 [RateCDR] => 1 ) [2025-02-02 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-02 02:19:05' and `end` < '2025-02-02 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-02 05:19:18] Production.INFO: count ==230 [2025-02-02 05:19:18] Production.ERROR: pbx CDR StartTime 2025-02-02 02:19:05 - End Time 2025-02-02 05:19:05 [2025-02-02 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383494', 'tblTempUsageDetail_20' ) start [2025-02-02 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383494', 'tblTempUsageDetail_20' ) end [2025-02-02 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383494', 'tblTempVendorCDR_20' ) start [2025-02-02 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383494', 'tblTempVendorCDR_20' ) end [2025-02-02 05:19:18] Production.INFO: ProcessCDR(1,14383494,1,1,2) [2025-02-02 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383494', 'tblTempUsageDetail_20' ) start [2025-02-02 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383494', 'tblTempUsageDetail_20' ) end [2025-02-02 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:19:21] Production.INFO: ==29001== Releasing lock... [2025-02-02 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:19:21] Production.INFO: 29 MB #Memory Used# [2025-02-02 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:20:06 [end_date_ymd] => 2025-02-02 05:20:06 [RateCDR] => 1 ) [2025-02-02 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-02 02:20:06' and `end` < '2025-02-02 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-02 05:20:20] Production.INFO: count ==224 [2025-02-02 05:20:20] Production.ERROR: pbx CDR StartTime 2025-02-02 02:20:06 - End Time 2025-02-02 05:20:06 [2025-02-02 05:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383500', 'tblTempUsageDetail_20' ) start [2025-02-02 05:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383500', 'tblTempUsageDetail_20' ) end [2025-02-02 05:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383500', 'tblTempVendorCDR_20' ) start [2025-02-02 05:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383500', 'tblTempVendorCDR_20' ) end [2025-02-02 05:20:20] Production.INFO: ProcessCDR(1,14383500,1,1,2) [2025-02-02 05:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383500', 'tblTempUsageDetail_20' ) start [2025-02-02 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383500', 'tblTempUsageDetail_20' ) end [2025-02-02 05:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:20:23] Production.INFO: ==29080== Releasing lock... [2025-02-02 05:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:20:23] Production.INFO: 29 MB #Memory Used# [2025-02-02 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:21:05 [end_date_ymd] => 2025-02-02 05:21:05 [RateCDR] => 1 ) [2025-02-02 05:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 02:21:05' and `end` < '2025-02-02 05:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 05:21:18] Production.INFO: count ==210 [2025-02-02 05:21:18] Production.ERROR: pbx CDR StartTime 2025-02-02 02:21:05 - End Time 2025-02-02 05:21:05 [2025-02-02 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383505', 'tblTempUsageDetail_20' ) start [2025-02-02 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383505', 'tblTempUsageDetail_20' ) end [2025-02-02 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383505', 'tblTempVendorCDR_20' ) start [2025-02-02 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383505', 'tblTempVendorCDR_20' ) end [2025-02-02 05:21:18] Production.INFO: ProcessCDR(1,14383505,1,1,2) [2025-02-02 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383505', 'tblTempUsageDetail_20' ) start [2025-02-02 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383505', 'tblTempUsageDetail_20' ) end [2025-02-02 05:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:21:22] Production.INFO: ==29157== Releasing lock... [2025-02-02 05:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:21:22] Production.INFO: 29 MB #Memory Used# [2025-02-02 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:22:05 [end_date_ymd] => 2025-02-02 05:22:05 [RateCDR] => 1 ) [2025-02-02 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-02 02:22:05' and `end` < '2025-02-02 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-02 05:22:19] Production.INFO: count ==210 [2025-02-02 05:22:19] Production.ERROR: pbx CDR StartTime 2025-02-02 02:22:05 - End Time 2025-02-02 05:22:05 [2025-02-02 05:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383510', 'tblTempUsageDetail_20' ) start [2025-02-02 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383510', 'tblTempUsageDetail_20' ) end [2025-02-02 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383510', 'tblTempVendorCDR_20' ) start [2025-02-02 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383510', 'tblTempVendorCDR_20' ) end [2025-02-02 05:22:19] Production.INFO: ProcessCDR(1,14383510,1,1,2) [2025-02-02 05:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383510', 'tblTempUsageDetail_20' ) start [2025-02-02 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383510', 'tblTempUsageDetail_20' ) end [2025-02-02 05:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:22:22] Production.INFO: ==29228== Releasing lock... [2025-02-02 05:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:22:22] Production.INFO: 29 MB #Memory Used# [2025-02-02 05:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:23:06 [end_date_ymd] => 2025-02-02 05:23:06 [RateCDR] => 1 ) [2025-02-02 05:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 02:23:06' and `end` < '2025-02-02 05:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 05:23:19] Production.INFO: count ==210 [2025-02-02 05:23:19] Production.ERROR: pbx CDR StartTime 2025-02-02 02:23:06 - End Time 2025-02-02 05:23:06 [2025-02-02 05:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383515', 'tblTempUsageDetail_20' ) start [2025-02-02 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383515', 'tblTempUsageDetail_20' ) end [2025-02-02 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383515', 'tblTempVendorCDR_20' ) start [2025-02-02 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383515', 'tblTempVendorCDR_20' ) end [2025-02-02 05:23:19] Production.INFO: ProcessCDR(1,14383515,1,1,2) [2025-02-02 05:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383515', 'tblTempUsageDetail_20' ) start [2025-02-02 05:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383515', 'tblTempUsageDetail_20' ) end [2025-02-02 05:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:23:23] Production.INFO: ==29303== Releasing lock... [2025-02-02 05:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:23:23] Production.INFO: 29 MB #Memory Used# [2025-02-02 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:24:05 [end_date_ymd] => 2025-02-02 05:24:05 [RateCDR] => 1 ) [2025-02-02 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-02 02:24:05' and `end` < '2025-02-02 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-02 05:24:18] Production.INFO: count ==210 [2025-02-02 05:24:18] Production.ERROR: pbx CDR StartTime 2025-02-02 02:24:05 - End Time 2025-02-02 05:24:05 [2025-02-02 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383520', 'tblTempUsageDetail_20' ) start [2025-02-02 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383520', 'tblTempUsageDetail_20' ) end [2025-02-02 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383520', 'tblTempVendorCDR_20' ) start [2025-02-02 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383520', 'tblTempVendorCDR_20' ) end [2025-02-02 05:24:18] Production.INFO: ProcessCDR(1,14383520,1,1,2) [2025-02-02 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383520', 'tblTempUsageDetail_20' ) start [2025-02-02 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383520', 'tblTempUsageDetail_20' ) end [2025-02-02 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:24:21] Production.INFO: ==29376== Releasing lock... [2025-02-02 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:24:21] Production.INFO: 29 MB #Memory Used# [2025-02-02 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:25:05 [end_date_ymd] => 2025-02-02 05:25:05 [RateCDR] => 1 ) [2025-02-02 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-02 02:25:05' and `end` < '2025-02-02 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-02 05:25:18] Production.INFO: count ==209 [2025-02-02 05:25:18] Production.ERROR: pbx CDR StartTime 2025-02-02 02:25:05 - End Time 2025-02-02 05:25:05 [2025-02-02 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383525', 'tblTempUsageDetail_20' ) start [2025-02-02 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383525', 'tblTempUsageDetail_20' ) end [2025-02-02 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383525', 'tblTempVendorCDR_20' ) start [2025-02-02 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383525', 'tblTempVendorCDR_20' ) end [2025-02-02 05:25:18] Production.INFO: ProcessCDR(1,14383525,1,1,2) [2025-02-02 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383525', 'tblTempUsageDetail_20' ) start [2025-02-02 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383525', 'tblTempUsageDetail_20' ) end [2025-02-02 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:25:21] Production.INFO: ==29448== Releasing lock... [2025-02-02 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:25:21] Production.INFO: 29 MB #Memory Used# [2025-02-02 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:26:05 [end_date_ymd] => 2025-02-02 05:26:05 [RateCDR] => 1 ) [2025-02-02 05:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 02:26:05' and `end` < '2025-02-02 05:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 05:26:18] Production.INFO: count ==208 [2025-02-02 05:26:18] Production.ERROR: pbx CDR StartTime 2025-02-02 02:26:05 - End Time 2025-02-02 05:26:05 [2025-02-02 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383530', 'tblTempUsageDetail_20' ) start [2025-02-02 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383530', 'tblTempUsageDetail_20' ) end [2025-02-02 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383530', 'tblTempVendorCDR_20' ) start [2025-02-02 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383530', 'tblTempVendorCDR_20' ) end [2025-02-02 05:26:18] Production.INFO: ProcessCDR(1,14383530,1,1,2) [2025-02-02 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383530', 'tblTempUsageDetail_20' ) start [2025-02-02 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383530', 'tblTempUsageDetail_20' ) end [2025-02-02 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:26:21] Production.INFO: ==29543== Releasing lock... [2025-02-02 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:26:21] Production.INFO: 29 MB #Memory Used# [2025-02-02 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:27:05 [end_date_ymd] => 2025-02-02 05:27:05 [RateCDR] => 1 ) [2025-02-02 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-02 02:27:05' and `end` < '2025-02-02 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-02 05:27:18] Production.INFO: count ==208 [2025-02-02 05:27:18] Production.ERROR: pbx CDR StartTime 2025-02-02 02:27:05 - End Time 2025-02-02 05:27:05 [2025-02-02 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383535', 'tblTempUsageDetail_20' ) start [2025-02-02 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383535', 'tblTempUsageDetail_20' ) end [2025-02-02 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383535', 'tblTempVendorCDR_20' ) start [2025-02-02 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383535', 'tblTempVendorCDR_20' ) end [2025-02-02 05:27:18] Production.INFO: ProcessCDR(1,14383535,1,1,2) [2025-02-02 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383535', 'tblTempUsageDetail_20' ) start [2025-02-02 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383535', 'tblTempUsageDetail_20' ) end [2025-02-02 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:27:21] Production.INFO: ==29618== Releasing lock... [2025-02-02 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:27:21] Production.INFO: 29 MB #Memory Used# [2025-02-02 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:28:05 [end_date_ymd] => 2025-02-02 05:28:05 [RateCDR] => 1 ) [2025-02-02 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-02 02:28:05' and `end` < '2025-02-02 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-02 05:28:17] Production.INFO: count ==208 [2025-02-02 05:28:17] Production.ERROR: pbx CDR StartTime 2025-02-02 02:28:05 - End Time 2025-02-02 05:28:05 [2025-02-02 05:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383540', 'tblTempUsageDetail_20' ) start [2025-02-02 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383540', 'tblTempUsageDetail_20' ) end [2025-02-02 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383540', 'tblTempVendorCDR_20' ) start [2025-02-02 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383540', 'tblTempVendorCDR_20' ) end [2025-02-02 05:28:17] Production.INFO: ProcessCDR(1,14383540,1,1,2) [2025-02-02 05:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383540', 'tblTempUsageDetail_20' ) start [2025-02-02 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383540', 'tblTempUsageDetail_20' ) end [2025-02-02 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:28:21] Production.INFO: ==29713== Releasing lock... [2025-02-02 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:28:21] Production.INFO: 29 MB #Memory Used# [2025-02-02 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:29:05 [end_date_ymd] => 2025-02-02 05:29:05 [RateCDR] => 1 ) [2025-02-02 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-02 02:29:05' and `end` < '2025-02-02 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-02 05:29:19] Production.INFO: count ==201 [2025-02-02 05:29:19] Production.ERROR: pbx CDR StartTime 2025-02-02 02:29:05 - End Time 2025-02-02 05:29:05 [2025-02-02 05:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383545', 'tblTempUsageDetail_20' ) start [2025-02-02 05:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383545', 'tblTempUsageDetail_20' ) end [2025-02-02 05:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383545', 'tblTempVendorCDR_20' ) start [2025-02-02 05:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383545', 'tblTempVendorCDR_20' ) end [2025-02-02 05:29:19] Production.INFO: ProcessCDR(1,14383545,1,1,2) [2025-02-02 05:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383545', 'tblTempUsageDetail_20' ) start [2025-02-02 05:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383545', 'tblTempUsageDetail_20' ) end [2025-02-02 05:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:29:22] Production.INFO: ==29787== Releasing lock... [2025-02-02 05:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:29:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-02 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:30:06 [end_date_ymd] => 2025-02-02 05:30:06 [RateCDR] => 1 ) [2025-02-02 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-02 02:30:06' and `end` < '2025-02-02 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-02 05:30:18] Production.INFO: count ==195 [2025-02-02 05:30:18] Production.ERROR: pbx CDR StartTime 2025-02-02 02:30:06 - End Time 2025-02-02 05:30:06 [2025-02-02 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383551', 'tblTempUsageDetail_20' ) start [2025-02-02 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383551', 'tblTempUsageDetail_20' ) end [2025-02-02 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383551', 'tblTempVendorCDR_20' ) start [2025-02-02 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383551', 'tblTempVendorCDR_20' ) end [2025-02-02 05:30:18] Production.INFO: ProcessCDR(1,14383551,1,1,2) [2025-02-02 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383551', 'tblTempUsageDetail_20' ) start [2025-02-02 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383551', 'tblTempUsageDetail_20' ) end [2025-02-02 05:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:30:21] Production.INFO: ==29861== Releasing lock... [2025-02-02 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:30:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-02 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:31:05 [end_date_ymd] => 2025-02-02 05:31:05 [RateCDR] => 1 ) [2025-02-02 05:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 02:31:05' and `end` < '2025-02-02 05:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 05:31:18] Production.INFO: count ==193 [2025-02-02 05:31:18] Production.ERROR: pbx CDR StartTime 2025-02-02 02:31:05 - End Time 2025-02-02 05:31:05 [2025-02-02 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383556', 'tblTempUsageDetail_20' ) start [2025-02-02 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383556', 'tblTempUsageDetail_20' ) end [2025-02-02 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383556', 'tblTempVendorCDR_20' ) start [2025-02-02 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383556', 'tblTempVendorCDR_20' ) end [2025-02-02 05:31:18] Production.INFO: ProcessCDR(1,14383556,1,1,2) [2025-02-02 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383556', 'tblTempUsageDetail_20' ) start [2025-02-02 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383556', 'tblTempUsageDetail_20' ) end [2025-02-02 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:31:21] Production.INFO: ==29975== Releasing lock... [2025-02-02 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:31:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-02 05:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:32:06 [end_date_ymd] => 2025-02-02 05:32:06 [RateCDR] => 1 ) [2025-02-02 05: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-02 02:32:06' and `end` < '2025-02-02 05: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-02 05:32:19] Production.INFO: count ==193 [2025-02-02 05:32:19] Production.ERROR: pbx CDR StartTime 2025-02-02 02:32:06 - End Time 2025-02-02 05:32:06 [2025-02-02 05:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383561', 'tblTempUsageDetail_20' ) start [2025-02-02 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383561', 'tblTempUsageDetail_20' ) end [2025-02-02 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383561', 'tblTempVendorCDR_20' ) start [2025-02-02 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383561', 'tblTempVendorCDR_20' ) end [2025-02-02 05:32:19] Production.INFO: ProcessCDR(1,14383561,1,1,2) [2025-02-02 05:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383561', 'tblTempUsageDetail_20' ) start [2025-02-02 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383561', 'tblTempUsageDetail_20' ) end [2025-02-02 05:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:32:22] Production.INFO: ==30048== Releasing lock... [2025-02-02 05:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:32:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-02 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:33:05 [end_date_ymd] => 2025-02-02 05:33:05 [RateCDR] => 1 ) [2025-02-02 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-02 02:33:05' and `end` < '2025-02-02 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-02 05:33:18] Production.INFO: count ==193 [2025-02-02 05:33:18] Production.ERROR: pbx CDR StartTime 2025-02-02 02:33:05 - End Time 2025-02-02 05:33:05 [2025-02-02 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383566', 'tblTempUsageDetail_20' ) start [2025-02-02 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383566', 'tblTempUsageDetail_20' ) end [2025-02-02 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383566', 'tblTempVendorCDR_20' ) start [2025-02-02 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383566', 'tblTempVendorCDR_20' ) end [2025-02-02 05:33:18] Production.INFO: ProcessCDR(1,14383566,1,1,2) [2025-02-02 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383566', 'tblTempUsageDetail_20' ) start [2025-02-02 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383566', 'tblTempUsageDetail_20' ) end [2025-02-02 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:33:21] Production.INFO: ==30118== Releasing lock... [2025-02-02 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:33:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-02 05:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:34:06 [end_date_ymd] => 2025-02-02 05:34:06 [RateCDR] => 1 ) [2025-02-02 05:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 02:34:06' and `end` < '2025-02-02 05:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 05:34:18] Production.INFO: count ==193 [2025-02-02 05:34:18] Production.ERROR: pbx CDR StartTime 2025-02-02 02:34:06 - End Time 2025-02-02 05:34:06 [2025-02-02 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383571', 'tblTempUsageDetail_20' ) start [2025-02-02 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383571', 'tblTempUsageDetail_20' ) end [2025-02-02 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383571', 'tblTempVendorCDR_20' ) start [2025-02-02 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383571', 'tblTempVendorCDR_20' ) end [2025-02-02 05:34:18] Production.INFO: ProcessCDR(1,14383571,1,1,2) [2025-02-02 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383571', 'tblTempUsageDetail_20' ) start [2025-02-02 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383571', 'tblTempUsageDetail_20' ) end [2025-02-02 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:34:21] Production.INFO: ==30191== Releasing lock... [2025-02-02 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:34:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-02 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:35:05 [end_date_ymd] => 2025-02-02 05:35:05 [RateCDR] => 1 ) [2025-02-02 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-02 02:35:05' and `end` < '2025-02-02 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-02 05:35:18] Production.INFO: count ==193 [2025-02-02 05:35:18] Production.ERROR: pbx CDR StartTime 2025-02-02 02:35:05 - End Time 2025-02-02 05:35:05 [2025-02-02 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383576', 'tblTempUsageDetail_20' ) start [2025-02-02 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383576', 'tblTempUsageDetail_20' ) end [2025-02-02 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383576', 'tblTempVendorCDR_20' ) start [2025-02-02 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383576', 'tblTempVendorCDR_20' ) end [2025-02-02 05:35:18] Production.INFO: ProcessCDR(1,14383576,1,1,2) [2025-02-02 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383576', 'tblTempUsageDetail_20' ) start [2025-02-02 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383576', 'tblTempUsageDetail_20' ) end [2025-02-02 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:35:21] Production.INFO: ==30260== Releasing lock... [2025-02-02 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:35:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-02 05:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:36:06 [end_date_ymd] => 2025-02-02 05:36:06 [RateCDR] => 1 ) [2025-02-02 05: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-02 02:36:06' and `end` < '2025-02-02 05: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-02 05:36:18] Production.INFO: count ==193 [2025-02-02 05:36:18] Production.ERROR: pbx CDR StartTime 2025-02-02 02:36:06 - End Time 2025-02-02 05:36:06 [2025-02-02 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383581', 'tblTempUsageDetail_20' ) start [2025-02-02 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383581', 'tblTempUsageDetail_20' ) end [2025-02-02 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383581', 'tblTempVendorCDR_20' ) start [2025-02-02 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383581', 'tblTempVendorCDR_20' ) end [2025-02-02 05:36:18] Production.INFO: ProcessCDR(1,14383581,1,1,2) [2025-02-02 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383581', 'tblTempUsageDetail_20' ) start [2025-02-02 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383581', 'tblTempUsageDetail_20' ) end [2025-02-02 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:36:21] Production.INFO: ==30333== Releasing lock... [2025-02-02 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:36:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-02 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:37:05 [end_date_ymd] => 2025-02-02 05:37:05 [RateCDR] => 1 ) [2025-02-02 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-02 02:37:05' and `end` < '2025-02-02 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-02 05:37:18] Production.INFO: count ==193 [2025-02-02 05:37:18] Production.ERROR: pbx CDR StartTime 2025-02-02 02:37:05 - End Time 2025-02-02 05:37:05 [2025-02-02 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383586', 'tblTempUsageDetail_20' ) start [2025-02-02 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383586', 'tblTempUsageDetail_20' ) end [2025-02-02 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383586', 'tblTempVendorCDR_20' ) start [2025-02-02 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383586', 'tblTempVendorCDR_20' ) end [2025-02-02 05:37:18] Production.INFO: ProcessCDR(1,14383586,1,1,2) [2025-02-02 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383586', 'tblTempUsageDetail_20' ) start [2025-02-02 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383586', 'tblTempUsageDetail_20' ) end [2025-02-02 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:37:21] Production.INFO: ==30406== Releasing lock... [2025-02-02 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:37:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-02 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:38:05 [end_date_ymd] => 2025-02-02 05:38:05 [RateCDR] => 1 ) [2025-02-02 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-02 02:38:05' and `end` < '2025-02-02 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-02 05:38:19] Production.INFO: count ==192 [2025-02-02 05:38:19] Production.ERROR: pbx CDR StartTime 2025-02-02 02:38:05 - End Time 2025-02-02 05:38:05 [2025-02-02 05:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383591', 'tblTempUsageDetail_20' ) start [2025-02-02 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383591', 'tblTempUsageDetail_20' ) end [2025-02-02 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383591', 'tblTempVendorCDR_20' ) start [2025-02-02 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383591', 'tblTempVendorCDR_20' ) end [2025-02-02 05:38:19] Production.INFO: ProcessCDR(1,14383591,1,1,2) [2025-02-02 05:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383591', 'tblTempUsageDetail_20' ) start [2025-02-02 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383591', 'tblTempUsageDetail_20' ) end [2025-02-02 05:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:38:22] Production.INFO: ==30478== Releasing lock... [2025-02-02 05:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:38:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-02 05:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:39:04 [end_date_ymd] => 2025-02-02 05:39:04 [RateCDR] => 1 ) [2025-02-02 05: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-02 02:39:04' and `end` < '2025-02-02 05: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-02 05:39:17] Production.INFO: count ==191 [2025-02-02 05:39:17] Production.ERROR: pbx CDR StartTime 2025-02-02 02:39:04 - End Time 2025-02-02 05:39:04 [2025-02-02 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383596', 'tblTempUsageDetail_20' ) start [2025-02-02 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383596', 'tblTempUsageDetail_20' ) end [2025-02-02 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383596', 'tblTempVendorCDR_20' ) start [2025-02-02 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383596', 'tblTempVendorCDR_20' ) end [2025-02-02 05:39:17] Production.INFO: ProcessCDR(1,14383596,1,1,2) [2025-02-02 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383596', 'tblTempUsageDetail_20' ) start [2025-02-02 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383596', 'tblTempUsageDetail_20' ) end [2025-02-02 05:39:20] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:39:20] Production.INFO: ==30559== Releasing lock... [2025-02-02 05:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:39:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-02 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:40:06 [end_date_ymd] => 2025-02-02 05:40:06 [RateCDR] => 1 ) [2025-02-02 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-02 02:40:06' and `end` < '2025-02-02 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-02 05:40:18] Production.INFO: count ==186 [2025-02-02 05:40:18] Production.ERROR: pbx CDR StartTime 2025-02-02 02:40:06 - End Time 2025-02-02 05:40:06 [2025-02-02 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383601', 'tblTempUsageDetail_20' ) start [2025-02-02 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383601', 'tblTempUsageDetail_20' ) end [2025-02-02 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383601', 'tblTempVendorCDR_20' ) start [2025-02-02 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383601', 'tblTempVendorCDR_20' ) end [2025-02-02 05:40:18] Production.INFO: ProcessCDR(1,14383601,1,1,2) [2025-02-02 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383601', 'tblTempUsageDetail_20' ) start [2025-02-02 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383601', 'tblTempUsageDetail_20' ) end [2025-02-02 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:40:22] Production.INFO: ==30653== Releasing lock... [2025-02-02 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:40:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-02 05:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:41:04 [end_date_ymd] => 2025-02-02 05:41:04 [RateCDR] => 1 ) [2025-02-02 05:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 02:41:04' and `end` < '2025-02-02 05:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 05:41:18] Production.INFO: count ==174 [2025-02-02 05:41:18] Production.ERROR: pbx CDR StartTime 2025-02-02 02:41:04 - End Time 2025-02-02 05:41:04 [2025-02-02 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383607', 'tblTempUsageDetail_20' ) start [2025-02-02 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383607', 'tblTempUsageDetail_20' ) end [2025-02-02 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383607', 'tblTempVendorCDR_20' ) start [2025-02-02 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383607', 'tblTempVendorCDR_20' ) end [2025-02-02 05:41:18] Production.INFO: ProcessCDR(1,14383607,1,1,2) [2025-02-02 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383607', 'tblTempUsageDetail_20' ) start [2025-02-02 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383607', 'tblTempUsageDetail_20' ) end [2025-02-02 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:41:21] Production.INFO: ==30725== Releasing lock... [2025-02-02 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:41:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-02 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:42:05 [end_date_ymd] => 2025-02-02 05:42:05 [RateCDR] => 1 ) [2025-02-02 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-02 02:42:05' and `end` < '2025-02-02 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-02 05:42:18] Production.INFO: count ==173 [2025-02-02 05:42:18] Production.ERROR: pbx CDR StartTime 2025-02-02 02:42:05 - End Time 2025-02-02 05:42:05 [2025-02-02 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383612', 'tblTempUsageDetail_20' ) start [2025-02-02 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383612', 'tblTempUsageDetail_20' ) end [2025-02-02 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383612', 'tblTempVendorCDR_20' ) start [2025-02-02 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383612', 'tblTempVendorCDR_20' ) end [2025-02-02 05:42:18] Production.INFO: ProcessCDR(1,14383612,1,1,2) [2025-02-02 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383612', 'tblTempUsageDetail_20' ) start [2025-02-02 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383612', 'tblTempUsageDetail_20' ) end [2025-02-02 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:42:21] Production.INFO: ==30797== Releasing lock... [2025-02-02 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:42:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-02 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:43:05 [end_date_ymd] => 2025-02-02 05:43:05 [RateCDR] => 1 ) [2025-02-02 05:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 02:43:05' and `end` < '2025-02-02 05:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 05:43:18] Production.INFO: count ==172 [2025-02-02 05:43:18] Production.ERROR: pbx CDR StartTime 2025-02-02 02:43:05 - End Time 2025-02-02 05:43:05 [2025-02-02 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383617', 'tblTempUsageDetail_20' ) start [2025-02-02 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383617', 'tblTempUsageDetail_20' ) end [2025-02-02 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383617', 'tblTempVendorCDR_20' ) start [2025-02-02 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383617', 'tblTempVendorCDR_20' ) end [2025-02-02 05:43:18] Production.INFO: ProcessCDR(1,14383617,1,1,2) [2025-02-02 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383617', 'tblTempUsageDetail_20' ) start [2025-02-02 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383617', 'tblTempUsageDetail_20' ) end [2025-02-02 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:43:21] Production.INFO: ==30868== Releasing lock... [2025-02-02 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:43:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-02 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:44:05 [end_date_ymd] => 2025-02-02 05:44:05 [RateCDR] => 1 ) [2025-02-02 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-02 02:44:05' and `end` < '2025-02-02 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-02 05:44:18] Production.INFO: count ==165 [2025-02-02 05:44:18] Production.ERROR: pbx CDR StartTime 2025-02-02 02:44:05 - End Time 2025-02-02 05:44:05 [2025-02-02 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383622', 'tblTempUsageDetail_20' ) start [2025-02-02 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383622', 'tblTempUsageDetail_20' ) end [2025-02-02 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383622', 'tblTempVendorCDR_20' ) start [2025-02-02 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383622', 'tblTempVendorCDR_20' ) end [2025-02-02 05:44:18] Production.INFO: ProcessCDR(1,14383622,1,1,2) [2025-02-02 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383622', 'tblTempUsageDetail_20' ) start [2025-02-02 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383622', 'tblTempUsageDetail_20' ) end [2025-02-02 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:44:21] Production.INFO: ==30938== Releasing lock... [2025-02-02 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:44:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-02 05:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:45:05 [end_date_ymd] => 2025-02-02 05:45:05 [RateCDR] => 1 ) [2025-02-02 05: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-02 02:45:05' and `end` < '2025-02-02 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-02 05:45:18] Production.INFO: count ==165 [2025-02-02 05:45:18] Production.ERROR: pbx CDR StartTime 2025-02-02 02:45:05 - End Time 2025-02-02 05:45:05 [2025-02-02 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383627', 'tblTempUsageDetail_20' ) start [2025-02-02 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383627', 'tblTempUsageDetail_20' ) end [2025-02-02 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383627', 'tblTempVendorCDR_20' ) start [2025-02-02 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383627', 'tblTempVendorCDR_20' ) end [2025-02-02 05:45:18] Production.INFO: ProcessCDR(1,14383627,1,1,2) [2025-02-02 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383627', 'tblTempUsageDetail_20' ) start [2025-02-02 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383627', 'tblTempUsageDetail_20' ) end [2025-02-02 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:45:21] Production.INFO: ==31010== Releasing lock... [2025-02-02 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:45:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-02 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:46:05 [end_date_ymd] => 2025-02-02 05:46:05 [RateCDR] => 1 ) [2025-02-02 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-02 02:46:05' and `end` < '2025-02-02 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-02 05:46:18] Production.INFO: count ==165 [2025-02-02 05:46:18] Production.ERROR: pbx CDR StartTime 2025-02-02 02:46:05 - End Time 2025-02-02 05:46:05 [2025-02-02 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383632', 'tblTempUsageDetail_20' ) start [2025-02-02 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383632', 'tblTempUsageDetail_20' ) end [2025-02-02 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383632', 'tblTempVendorCDR_20' ) start [2025-02-02 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383632', 'tblTempVendorCDR_20' ) end [2025-02-02 05:46:18] Production.INFO: ProcessCDR(1,14383632,1,1,2) [2025-02-02 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383632', 'tblTempUsageDetail_20' ) start [2025-02-02 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383632', 'tblTempUsageDetail_20' ) end [2025-02-02 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:46:21] Production.INFO: ==31122== Releasing lock... [2025-02-02 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:46:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-02 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:47:05 [end_date_ymd] => 2025-02-02 05:47:05 [RateCDR] => 1 ) [2025-02-02 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-02 02:47:05' and `end` < '2025-02-02 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-02 05:47:18] Production.INFO: count ==165 [2025-02-02 05:47:18] Production.ERROR: pbx CDR StartTime 2025-02-02 02:47:05 - End Time 2025-02-02 05:47:05 [2025-02-02 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383637', 'tblTempUsageDetail_20' ) start [2025-02-02 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383637', 'tblTempUsageDetail_20' ) end [2025-02-02 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383637', 'tblTempVendorCDR_20' ) start [2025-02-02 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383637', 'tblTempVendorCDR_20' ) end [2025-02-02 05:47:18] Production.INFO: ProcessCDR(1,14383637,1,1,2) [2025-02-02 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383637', 'tblTempUsageDetail_20' ) start [2025-02-02 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383637', 'tblTempUsageDetail_20' ) end [2025-02-02 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:47:21] Production.INFO: ==31208== Releasing lock... [2025-02-02 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:47:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-02 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:48:05 [end_date_ymd] => 2025-02-02 05:48:05 [RateCDR] => 1 ) [2025-02-02 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-02 02:48:05' and `end` < '2025-02-02 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-02 05:48:18] Production.INFO: count ==164 [2025-02-02 05:48:18] Production.ERROR: pbx CDR StartTime 2025-02-02 02:48:05 - End Time 2025-02-02 05:48:05 [2025-02-02 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383642', 'tblTempUsageDetail_20' ) start [2025-02-02 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383642', 'tblTempUsageDetail_20' ) end [2025-02-02 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383642', 'tblTempVendorCDR_20' ) start [2025-02-02 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383642', 'tblTempVendorCDR_20' ) end [2025-02-02 05:48:18] Production.INFO: ProcessCDR(1,14383642,1,1,2) [2025-02-02 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383642', 'tblTempUsageDetail_20' ) start [2025-02-02 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383642', 'tblTempUsageDetail_20' ) end [2025-02-02 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:48:21] Production.INFO: ==31279== Releasing lock... [2025-02-02 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:48:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-02 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:49:05 [end_date_ymd] => 2025-02-02 05:49:05 [RateCDR] => 1 ) [2025-02-02 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-02 02:49:05' and `end` < '2025-02-02 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-02 05:49:18] Production.INFO: count ==164 [2025-02-02 05:49:18] Production.ERROR: pbx CDR StartTime 2025-02-02 02:49:05 - End Time 2025-02-02 05:49:05 [2025-02-02 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383647', 'tblTempUsageDetail_20' ) start [2025-02-02 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383647', 'tblTempUsageDetail_20' ) end [2025-02-02 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383647', 'tblTempVendorCDR_20' ) start [2025-02-02 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383647', 'tblTempVendorCDR_20' ) end [2025-02-02 05:49:18] Production.INFO: ProcessCDR(1,14383647,1,1,2) [2025-02-02 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383647', 'tblTempUsageDetail_20' ) start [2025-02-02 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383647', 'tblTempUsageDetail_20' ) end [2025-02-02 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:49:21] Production.INFO: ==31351== Releasing lock... [2025-02-02 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:49:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-02 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:50:06 [end_date_ymd] => 2025-02-02 05:50:06 [RateCDR] => 1 ) [2025-02-02 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-02 02:50:06' and `end` < '2025-02-02 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-02 05:50:18] Production.INFO: count ==158 [2025-02-02 05:50:18] Production.ERROR: pbx CDR StartTime 2025-02-02 02:50:06 - End Time 2025-02-02 05:50:06 [2025-02-02 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383653', 'tblTempUsageDetail_20' ) start [2025-02-02 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383653', 'tblTempUsageDetail_20' ) end [2025-02-02 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383653', 'tblTempVendorCDR_20' ) start [2025-02-02 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383653', 'tblTempVendorCDR_20' ) end [2025-02-02 05:50:18] Production.INFO: ProcessCDR(1,14383653,1,1,2) [2025-02-02 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383653', 'tblTempUsageDetail_20' ) start [2025-02-02 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383653', 'tblTempUsageDetail_20' ) end [2025-02-02 05:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:50:22] Production.INFO: ==31422== Releasing lock... [2025-02-02 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:50:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-02 05:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:51:06 [end_date_ymd] => 2025-02-02 05:51:06 [RateCDR] => 1 ) [2025-02-02 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-02 02:51:06' and `end` < '2025-02-02 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-02 05:51:18] Production.INFO: count ==148 [2025-02-02 05:51:18] Production.ERROR: pbx CDR StartTime 2025-02-02 02:51:06 - End Time 2025-02-02 05:51:06 [2025-02-02 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383658', 'tblTempUsageDetail_20' ) start [2025-02-02 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383658', 'tblTempUsageDetail_20' ) end [2025-02-02 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383658', 'tblTempVendorCDR_20' ) start [2025-02-02 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383658', 'tblTempVendorCDR_20' ) end [2025-02-02 05:51:18] Production.INFO: ProcessCDR(1,14383658,1,1,2) [2025-02-02 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383658', 'tblTempUsageDetail_20' ) start [2025-02-02 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383658', 'tblTempUsageDetail_20' ) end [2025-02-02 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:51:22] Production.INFO: ==31499== Releasing lock... [2025-02-02 05:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:51:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-02 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:52:05 [end_date_ymd] => 2025-02-02 05:52:05 [RateCDR] => 1 ) [2025-02-02 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-02 02:52:05' and `end` < '2025-02-02 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-02 05:52:18] Production.INFO: count ==148 [2025-02-02 05:52:18] Production.ERROR: pbx CDR StartTime 2025-02-02 02:52:05 - End Time 2025-02-02 05:52:05 [2025-02-02 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383663', 'tblTempUsageDetail_20' ) start [2025-02-02 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383663', 'tblTempUsageDetail_20' ) end [2025-02-02 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383663', 'tblTempVendorCDR_20' ) start [2025-02-02 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383663', 'tblTempVendorCDR_20' ) end [2025-02-02 05:52:18] Production.INFO: ProcessCDR(1,14383663,1,1,2) [2025-02-02 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383663', 'tblTempUsageDetail_20' ) start [2025-02-02 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383663', 'tblTempUsageDetail_20' ) end [2025-02-02 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:52:21] Production.INFO: ==31571== Releasing lock... [2025-02-02 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:52:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-02 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:53:05 [end_date_ymd] => 2025-02-02 05:53:05 [RateCDR] => 1 ) [2025-02-02 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-02 02:53:05' and `end` < '2025-02-02 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-02 05:53:18] Production.INFO: count ==148 [2025-02-02 05:53:18] Production.ERROR: pbx CDR StartTime 2025-02-02 02:53:05 - End Time 2025-02-02 05:53:05 [2025-02-02 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383668', 'tblTempUsageDetail_20' ) start [2025-02-02 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383668', 'tblTempUsageDetail_20' ) end [2025-02-02 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383668', 'tblTempVendorCDR_20' ) start [2025-02-02 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383668', 'tblTempVendorCDR_20' ) end [2025-02-02 05:53:18] Production.INFO: ProcessCDR(1,14383668,1,1,2) [2025-02-02 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383668', 'tblTempUsageDetail_20' ) start [2025-02-02 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383668', 'tblTempUsageDetail_20' ) end [2025-02-02 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:53:21] Production.INFO: ==31645== Releasing lock... [2025-02-02 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:53:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-02 05:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:54:06 [end_date_ymd] => 2025-02-02 05:54:06 [RateCDR] => 1 ) [2025-02-02 05: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-02 02:54:06' and `end` < '2025-02-02 05: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-02 05:54:19] Production.INFO: count ==147 [2025-02-02 05:54:19] Production.ERROR: pbx CDR StartTime 2025-02-02 02:54:06 - End Time 2025-02-02 05:54:06 [2025-02-02 05:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383673', 'tblTempUsageDetail_20' ) start [2025-02-02 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383673', 'tblTempUsageDetail_20' ) end [2025-02-02 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383673', 'tblTempVendorCDR_20' ) start [2025-02-02 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383673', 'tblTempVendorCDR_20' ) end [2025-02-02 05:54:19] Production.INFO: ProcessCDR(1,14383673,1,1,2) [2025-02-02 05:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383673', 'tblTempUsageDetail_20' ) start [2025-02-02 05:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383673', 'tblTempUsageDetail_20' ) end [2025-02-02 05:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:54:23] Production.INFO: ==31731== Releasing lock... [2025-02-02 05:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:54:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-02 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:55:05 [end_date_ymd] => 2025-02-02 05:55:05 [RateCDR] => 1 ) [2025-02-02 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-02 02:55:05' and `end` < '2025-02-02 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-02 05:55:18] Production.INFO: count ==146 [2025-02-02 05:55:18] Production.ERROR: pbx CDR StartTime 2025-02-02 02:55:05 - End Time 2025-02-02 05:55:05 [2025-02-02 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383678', 'tblTempUsageDetail_20' ) start [2025-02-02 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383678', 'tblTempUsageDetail_20' ) end [2025-02-02 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383678', 'tblTempVendorCDR_20' ) start [2025-02-02 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383678', 'tblTempVendorCDR_20' ) end [2025-02-02 05:55:18] Production.INFO: ProcessCDR(1,14383678,1,1,2) [2025-02-02 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383678', 'tblTempUsageDetail_20' ) start [2025-02-02 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383678', 'tblTempUsageDetail_20' ) end [2025-02-02 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:55:21] Production.INFO: ==31804== Releasing lock... [2025-02-02 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:55:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-02 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:56:05 [end_date_ymd] => 2025-02-02 05:56:05 [RateCDR] => 1 ) [2025-02-02 05:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 02:56:05' and `end` < '2025-02-02 05:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 05:56:18] Production.INFO: count ==143 [2025-02-02 05:56:18] Production.ERROR: pbx CDR StartTime 2025-02-02 02:56:05 - End Time 2025-02-02 05:56:05 [2025-02-02 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383683', 'tblTempUsageDetail_20' ) start [2025-02-02 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383683', 'tblTempUsageDetail_20' ) end [2025-02-02 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383683', 'tblTempVendorCDR_20' ) start [2025-02-02 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383683', 'tblTempVendorCDR_20' ) end [2025-02-02 05:56:18] Production.INFO: ProcessCDR(1,14383683,1,1,2) [2025-02-02 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383683', 'tblTempUsageDetail_20' ) start [2025-02-02 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383683', 'tblTempUsageDetail_20' ) end [2025-02-02 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:56:21] Production.INFO: ==31874== Releasing lock... [2025-02-02 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:56:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:57:05 [end_date_ymd] => 2025-02-02 05:57:05 [RateCDR] => 1 ) [2025-02-02 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-02 02:57:05' and `end` < '2025-02-02 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-02 05:57:18] Production.INFO: count ==142 [2025-02-02 05:57:18] Production.ERROR: pbx CDR StartTime 2025-02-02 02:57:05 - End Time 2025-02-02 05:57:05 [2025-02-02 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383688', 'tblTempUsageDetail_20' ) start [2025-02-02 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383688', 'tblTempUsageDetail_20' ) end [2025-02-02 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383688', 'tblTempVendorCDR_20' ) start [2025-02-02 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383688', 'tblTempVendorCDR_20' ) end [2025-02-02 05:57:18] Production.INFO: ProcessCDR(1,14383688,1,1,2) [2025-02-02 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383688', 'tblTempUsageDetail_20' ) start [2025-02-02 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383688', 'tblTempUsageDetail_20' ) end [2025-02-02 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:57:21] Production.INFO: ==31944== Releasing lock... [2025-02-02 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:57:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:58:05 [end_date_ymd] => 2025-02-02 05:58:05 [RateCDR] => 1 ) [2025-02-02 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-02 02:58:05' and `end` < '2025-02-02 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-02 05:58:17] Production.INFO: count ==142 [2025-02-02 05:58:17] Production.ERROR: pbx CDR StartTime 2025-02-02 02:58:05 - End Time 2025-02-02 05:58:05 [2025-02-02 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383693', 'tblTempUsageDetail_20' ) start [2025-02-02 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383693', 'tblTempUsageDetail_20' ) end [2025-02-02 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383693', 'tblTempVendorCDR_20' ) start [2025-02-02 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383693', 'tblTempVendorCDR_20' ) end [2025-02-02 05:58:17] Production.INFO: ProcessCDR(1,14383693,1,1,2) [2025-02-02 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383693', 'tblTempUsageDetail_20' ) start [2025-02-02 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383693', 'tblTempUsageDetail_20' ) end [2025-02-02 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:58:21] Production.INFO: ==32014== Releasing lock... [2025-02-02 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:58:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 02:59:05 [end_date_ymd] => 2025-02-02 05:59:05 [RateCDR] => 1 ) [2025-02-02 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-02 02:59:05' and `end` < '2025-02-02 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-02 05:59:18] Production.INFO: count ==141 [2025-02-02 05:59:18] Production.ERROR: pbx CDR StartTime 2025-02-02 02:59:05 - End Time 2025-02-02 05:59:05 [2025-02-02 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383698', 'tblTempUsageDetail_20' ) start [2025-02-02 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383698', 'tblTempUsageDetail_20' ) end [2025-02-02 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383698', 'tblTempVendorCDR_20' ) start [2025-02-02 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383698', 'tblTempVendorCDR_20' ) end [2025-02-02 05:59:18] Production.INFO: ProcessCDR(1,14383698,1,1,2) [2025-02-02 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383698', 'tblTempUsageDetail_20' ) start [2025-02-02 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383698', 'tblTempUsageDetail_20' ) end [2025-02-02 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 05:59:21] Production.INFO: ==32092== Releasing lock... [2025-02-02 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 05:59:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:00:06 [end_date_ymd] => 2025-02-02 06:00:06 [RateCDR] => 1 ) [2025-02-02 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-02 03:00:06' and `end` < '2025-02-02 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-02 06:00:18] Production.INFO: count ==137 [2025-02-02 06:00:19] Production.ERROR: pbx CDR StartTime 2025-02-02 03:00:06 - End Time 2025-02-02 06:00:06 [2025-02-02 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383704', 'tblTempUsageDetail_20' ) start [2025-02-02 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383704', 'tblTempUsageDetail_20' ) end [2025-02-02 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383704', 'tblTempVendorCDR_20' ) start [2025-02-02 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383704', 'tblTempVendorCDR_20' ) end [2025-02-02 06:00:19] Production.INFO: ProcessCDR(1,14383704,1,1,2) [2025-02-02 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383704', 'tblTempUsageDetail_20' ) start [2025-02-02 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383704', 'tblTempUsageDetail_20' ) end [2025-02-02 06:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:00:22] Production.INFO: ==32164== Releasing lock... [2025-02-02 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:00:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:01:05 [end_date_ymd] => 2025-02-02 06:01:05 [RateCDR] => 1 ) [2025-02-02 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-02 03:01:05' and `end` < '2025-02-02 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-02 06:01:17] Production.INFO: count ==118 [2025-02-02 06:01:17] Production.ERROR: pbx CDR StartTime 2025-02-02 03:01:05 - End Time 2025-02-02 06:01:05 [2025-02-02 06:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383709', 'tblTempUsageDetail_20' ) start [2025-02-02 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383709', 'tblTempUsageDetail_20' ) end [2025-02-02 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383709', 'tblTempVendorCDR_20' ) start [2025-02-02 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383709', 'tblTempVendorCDR_20' ) end [2025-02-02 06:01:17] Production.INFO: ProcessCDR(1,14383709,1,1,2) [2025-02-02 06:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383709', 'tblTempUsageDetail_20' ) start [2025-02-02 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383709', 'tblTempUsageDetail_20' ) end [2025-02-02 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:01:21] Production.INFO: ==32264== Releasing lock... [2025-02-02 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:01:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:02:05 [end_date_ymd] => 2025-02-02 06:02:05 [RateCDR] => 1 ) [2025-02-02 06:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 03:02:05' and `end` < '2025-02-02 06:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 06:02:18] Production.INFO: count ==118 [2025-02-02 06:02:18] Production.ERROR: pbx CDR StartTime 2025-02-02 03:02:05 - End Time 2025-02-02 06:02:05 [2025-02-02 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383714', 'tblTempUsageDetail_20' ) start [2025-02-02 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383714', 'tblTempUsageDetail_20' ) end [2025-02-02 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383714', 'tblTempVendorCDR_20' ) start [2025-02-02 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383714', 'tblTempVendorCDR_20' ) end [2025-02-02 06:02:18] Production.INFO: ProcessCDR(1,14383714,1,1,2) [2025-02-02 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383714', 'tblTempUsageDetail_20' ) start [2025-02-02 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383714', 'tblTempUsageDetail_20' ) end [2025-02-02 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:02:21] Production.INFO: ==32377== Releasing lock... [2025-02-02 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:02:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 06:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:03:06 [end_date_ymd] => 2025-02-02 06:03:06 [RateCDR] => 1 ) [2025-02-02 06: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-02 03:03:06' and `end` < '2025-02-02 06: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-02 06:03:18] Production.INFO: count ==118 [2025-02-02 06:03:18] Production.ERROR: pbx CDR StartTime 2025-02-02 03:03:06 - End Time 2025-02-02 06:03:06 [2025-02-02 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383719', 'tblTempUsageDetail_20' ) start [2025-02-02 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383719', 'tblTempUsageDetail_20' ) end [2025-02-02 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383719', 'tblTempVendorCDR_20' ) start [2025-02-02 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383719', 'tblTempVendorCDR_20' ) end [2025-02-02 06:03:18] Production.INFO: ProcessCDR(1,14383719,1,1,2) [2025-02-02 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383719', 'tblTempUsageDetail_20' ) start [2025-02-02 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383719', 'tblTempUsageDetail_20' ) end [2025-02-02 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:03:21] Production.INFO: ==32448== Releasing lock... [2025-02-02 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:03:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 06:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:04:06 [end_date_ymd] => 2025-02-02 06:04:06 [RateCDR] => 1 ) [2025-02-02 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-02 03:04:06' and `end` < '2025-02-02 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-02 06:04:19] Production.INFO: count ==116 [2025-02-02 06:04:19] Production.ERROR: pbx CDR StartTime 2025-02-02 03:04:06 - End Time 2025-02-02 06:04:06 [2025-02-02 06:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383724', 'tblTempUsageDetail_20' ) start [2025-02-02 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383724', 'tblTempUsageDetail_20' ) end [2025-02-02 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383724', 'tblTempVendorCDR_20' ) start [2025-02-02 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383724', 'tblTempVendorCDR_20' ) end [2025-02-02 06:04:19] Production.INFO: ProcessCDR(1,14383724,1,1,2) [2025-02-02 06:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383724', 'tblTempUsageDetail_20' ) start [2025-02-02 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383724', 'tblTempUsageDetail_20' ) end [2025-02-02 06:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:04:22] Production.INFO: ==32521== Releasing lock... [2025-02-02 06:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:04:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:05:05 [end_date_ymd] => 2025-02-02 06:05:05 [RateCDR] => 1 ) [2025-02-02 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-02 03:05:05' and `end` < '2025-02-02 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-02 06:05:17] Production.INFO: count ==115 [2025-02-02 06:05:17] Production.ERROR: pbx CDR StartTime 2025-02-02 03:05:05 - End Time 2025-02-02 06:05:05 [2025-02-02 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383729', 'tblTempUsageDetail_20' ) start [2025-02-02 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383729', 'tblTempUsageDetail_20' ) end [2025-02-02 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383729', 'tblTempVendorCDR_20' ) start [2025-02-02 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383729', 'tblTempVendorCDR_20' ) end [2025-02-02 06:05:17] Production.INFO: ProcessCDR(1,14383729,1,1,2) [2025-02-02 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383729', 'tblTempUsageDetail_20' ) start [2025-02-02 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383729', 'tblTempUsageDetail_20' ) end [2025-02-02 06:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:05:20] Production.INFO: ==32594== Releasing lock... [2025-02-02 06:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:05:20] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:06:05 [end_date_ymd] => 2025-02-02 06:06:05 [RateCDR] => 1 ) [2025-02-02 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-02 03:06:05' and `end` < '2025-02-02 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-02 06:06:19] Production.INFO: count ==115 [2025-02-02 06:06:19] Production.ERROR: pbx CDR StartTime 2025-02-02 03:06:05 - End Time 2025-02-02 06:06:05 [2025-02-02 06:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383734', 'tblTempUsageDetail_20' ) start [2025-02-02 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383734', 'tblTempUsageDetail_20' ) end [2025-02-02 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383734', 'tblTempVendorCDR_20' ) start [2025-02-02 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383734', 'tblTempVendorCDR_20' ) end [2025-02-02 06:06:19] Production.INFO: ProcessCDR(1,14383734,1,1,2) [2025-02-02 06:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383734', 'tblTempUsageDetail_20' ) start [2025-02-02 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383734', 'tblTempUsageDetail_20' ) end [2025-02-02 06:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:06:22] Production.INFO: ==32666== Releasing lock... [2025-02-02 06:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:06:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:07:05 [end_date_ymd] => 2025-02-02 06:07:05 [RateCDR] => 1 ) [2025-02-02 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-02 03:07:05' and `end` < '2025-02-02 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-02 06:07:17] Production.INFO: count ==115 [2025-02-02 06:07:17] Production.ERROR: pbx CDR StartTime 2025-02-02 03:07:05 - End Time 2025-02-02 06:07:05 [2025-02-02 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383739', 'tblTempUsageDetail_20' ) start [2025-02-02 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383739', 'tblTempUsageDetail_20' ) end [2025-02-02 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383739', 'tblTempVendorCDR_20' ) start [2025-02-02 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383739', 'tblTempVendorCDR_20' ) end [2025-02-02 06:07:17] Production.INFO: ProcessCDR(1,14383739,1,1,2) [2025-02-02 06:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383739', 'tblTempUsageDetail_20' ) start [2025-02-02 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383739', 'tblTempUsageDetail_20' ) end [2025-02-02 06:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:07:20] Production.INFO: ==32735== Releasing lock... [2025-02-02 06:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:07:20] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:08:04 [end_date_ymd] => 2025-02-02 06:08:04 [RateCDR] => 1 ) [2025-02-02 06: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-02 03:08:04' and `end` < '2025-02-02 06: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-02 06:08:17] Production.INFO: count ==115 [2025-02-02 06:08:17] Production.ERROR: pbx CDR StartTime 2025-02-02 03:08:04 - End Time 2025-02-02 06:08:04 [2025-02-02 06:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383744', 'tblTempUsageDetail_20' ) start [2025-02-02 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383744', 'tblTempUsageDetail_20' ) end [2025-02-02 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383744', 'tblTempVendorCDR_20' ) start [2025-02-02 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383744', 'tblTempVendorCDR_20' ) end [2025-02-02 06:08:17] Production.INFO: ProcessCDR(1,14383744,1,1,2) [2025-02-02 06:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383744', 'tblTempUsageDetail_20' ) start [2025-02-02 06:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383744', 'tblTempUsageDetail_20' ) end [2025-02-02 06:08:20] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:08:20] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:08:20] Production.INFO: ==358== Releasing lock... [2025-02-02 06:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:08:20] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:09:04 [end_date_ymd] => 2025-02-02 06:09:04 [RateCDR] => 1 ) [2025-02-02 06:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 03:09:04' and `end` < '2025-02-02 06:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 06:09:18] Production.INFO: count ==115 [2025-02-02 06:09:18] Production.ERROR: pbx CDR StartTime 2025-02-02 03:09:04 - End Time 2025-02-02 06:09:04 [2025-02-02 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383749', 'tblTempUsageDetail_20' ) start [2025-02-02 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383749', 'tblTempUsageDetail_20' ) end [2025-02-02 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383749', 'tblTempVendorCDR_20' ) start [2025-02-02 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383749', 'tblTempVendorCDR_20' ) end [2025-02-02 06:09:18] Production.INFO: ProcessCDR(1,14383749,1,1,2) [2025-02-02 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383749', 'tblTempUsageDetail_20' ) start [2025-02-02 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383749', 'tblTempUsageDetail_20' ) end [2025-02-02 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:09:21] Production.INFO: ==430== Releasing lock... [2025-02-02 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:09:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:10:06 [end_date_ymd] => 2025-02-02 06:10:06 [RateCDR] => 1 ) [2025-02-02 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-02 03:10:06' and `end` < '2025-02-02 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-02 06:10:18] Production.INFO: count ==111 [2025-02-02 06:10:18] Production.ERROR: pbx CDR StartTime 2025-02-02 03:10:06 - End Time 2025-02-02 06:10:06 [2025-02-02 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383754', 'tblTempUsageDetail_20' ) start [2025-02-02 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383754', 'tblTempUsageDetail_20' ) end [2025-02-02 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383754', 'tblTempVendorCDR_20' ) start [2025-02-02 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383754', 'tblTempVendorCDR_20' ) end [2025-02-02 06:10:18] Production.INFO: ProcessCDR(1,14383754,1,1,2) [2025-02-02 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383754', 'tblTempUsageDetail_20' ) start [2025-02-02 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383754', 'tblTempUsageDetail_20' ) end [2025-02-02 06:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:10:21] Production.INFO: ==504== Releasing lock... [2025-02-02 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:10:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:11:05 [end_date_ymd] => 2025-02-02 06:11:05 [RateCDR] => 1 ) [2025-02-02 06:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 03:11:05' and `end` < '2025-02-02 06:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 06:11:18] Production.INFO: count ==111 [2025-02-02 06:11:18] Production.ERROR: pbx CDR StartTime 2025-02-02 03:11:05 - End Time 2025-02-02 06:11:05 [2025-02-02 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383760', 'tblTempUsageDetail_20' ) start [2025-02-02 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383760', 'tblTempUsageDetail_20' ) end [2025-02-02 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383760', 'tblTempVendorCDR_20' ) start [2025-02-02 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383760', 'tblTempVendorCDR_20' ) end [2025-02-02 06:11:18] Production.INFO: ProcessCDR(1,14383760,1,1,2) [2025-02-02 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383760', 'tblTempUsageDetail_20' ) start [2025-02-02 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383760', 'tblTempUsageDetail_20' ) end [2025-02-02 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:11:21] Production.INFO: ==580== Releasing lock... [2025-02-02 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:11:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:12:05 [end_date_ymd] => 2025-02-02 06:12:05 [RateCDR] => 1 ) [2025-02-02 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-02 03:12:05' and `end` < '2025-02-02 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-02 06:12:18] Production.INFO: count ==111 [2025-02-02 06:12:18] Production.ERROR: pbx CDR StartTime 2025-02-02 03:12:05 - End Time 2025-02-02 06:12:05 [2025-02-02 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383765', 'tblTempUsageDetail_20' ) start [2025-02-02 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383765', 'tblTempUsageDetail_20' ) end [2025-02-02 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383765', 'tblTempVendorCDR_20' ) start [2025-02-02 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383765', 'tblTempVendorCDR_20' ) end [2025-02-02 06:12:18] Production.INFO: ProcessCDR(1,14383765,1,1,2) [2025-02-02 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383765', 'tblTempUsageDetail_20' ) start [2025-02-02 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383765', 'tblTempUsageDetail_20' ) end [2025-02-02 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:12:21] Production.INFO: ==662== Releasing lock... [2025-02-02 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:12:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:13:06 [end_date_ymd] => 2025-02-02 06:13:06 [RateCDR] => 1 ) [2025-02-02 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-02 03:13:06' and `end` < '2025-02-02 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-02 06:13:18] Production.INFO: count ==111 [2025-02-02 06:13:18] Production.ERROR: pbx CDR StartTime 2025-02-02 03:13:06 - End Time 2025-02-02 06:13:06 [2025-02-02 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383770', 'tblTempUsageDetail_20' ) start [2025-02-02 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383770', 'tblTempUsageDetail_20' ) end [2025-02-02 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383770', 'tblTempVendorCDR_20' ) start [2025-02-02 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383770', 'tblTempVendorCDR_20' ) end [2025-02-02 06:13:18] Production.INFO: ProcessCDR(1,14383770,1,1,2) [2025-02-02 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383770', 'tblTempUsageDetail_20' ) start [2025-02-02 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383770', 'tblTempUsageDetail_20' ) end [2025-02-02 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:13:21] Production.INFO: ==755== Releasing lock... [2025-02-02 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:13:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:14:05 [end_date_ymd] => 2025-02-02 06:14:05 [RateCDR] => 1 ) [2025-02-02 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-02 03:14:05' and `end` < '2025-02-02 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-02 06:14:18] Production.INFO: count ==111 [2025-02-02 06:14:18] Production.ERROR: pbx CDR StartTime 2025-02-02 03:14:05 - End Time 2025-02-02 06:14:05 [2025-02-02 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383775', 'tblTempUsageDetail_20' ) start [2025-02-02 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383775', 'tblTempUsageDetail_20' ) end [2025-02-02 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383775', 'tblTempVendorCDR_20' ) start [2025-02-02 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383775', 'tblTempVendorCDR_20' ) end [2025-02-02 06:14:19] Production.INFO: ProcessCDR(1,14383775,1,1,2) [2025-02-02 06:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383775', 'tblTempUsageDetail_20' ) start [2025-02-02 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383775', 'tblTempUsageDetail_20' ) end [2025-02-02 06:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:14:22] Production.INFO: ==828== Releasing lock... [2025-02-02 06:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:14:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:15:05 [end_date_ymd] => 2025-02-02 06:15:05 [RateCDR] => 1 ) [2025-02-02 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-02 03:15:05' and `end` < '2025-02-02 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-02 06:15:18] Production.INFO: count ==111 [2025-02-02 06:15:18] Production.ERROR: pbx CDR StartTime 2025-02-02 03:15:05 - End Time 2025-02-02 06:15:05 [2025-02-02 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383780', 'tblTempUsageDetail_20' ) start [2025-02-02 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383780', 'tblTempUsageDetail_20' ) end [2025-02-02 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383780', 'tblTempVendorCDR_20' ) start [2025-02-02 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383780', 'tblTempVendorCDR_20' ) end [2025-02-02 06:15:18] Production.INFO: ProcessCDR(1,14383780,1,1,2) [2025-02-02 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383780', 'tblTempUsageDetail_20' ) start [2025-02-02 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383780', 'tblTempUsageDetail_20' ) end [2025-02-02 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:15:21] Production.INFO: ==899== Releasing lock... [2025-02-02 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:15:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:16:05 [end_date_ymd] => 2025-02-02 06:16:05 [RateCDR] => 1 ) [2025-02-02 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-02 03:16:05' and `end` < '2025-02-02 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-02 06:16:19] Production.INFO: count ==111 [2025-02-02 06:16:19] Production.ERROR: pbx CDR StartTime 2025-02-02 03:16:05 - End Time 2025-02-02 06:16:05 [2025-02-02 06:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383785', 'tblTempUsageDetail_20' ) start [2025-02-02 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383785', 'tblTempUsageDetail_20' ) end [2025-02-02 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383785', 'tblTempVendorCDR_20' ) start [2025-02-02 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383785', 'tblTempVendorCDR_20' ) end [2025-02-02 06:16:19] Production.INFO: ProcessCDR(1,14383785,1,1,2) [2025-02-02 06:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383785', 'tblTempUsageDetail_20' ) start [2025-02-02 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383785', 'tblTempUsageDetail_20' ) end [2025-02-02 06:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:16:22] Production.INFO: ==970== Releasing lock... [2025-02-02 06:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:16:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:17:05 [end_date_ymd] => 2025-02-02 06:17:05 [RateCDR] => 1 ) [2025-02-02 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-02 03:17:05' and `end` < '2025-02-02 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-02 06:17:19] Production.INFO: count ==111 [2025-02-02 06:17:19] Production.ERROR: pbx CDR StartTime 2025-02-02 03:17:05 - End Time 2025-02-02 06:17:05 [2025-02-02 06:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383790', 'tblTempUsageDetail_20' ) start [2025-02-02 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383790', 'tblTempUsageDetail_20' ) end [2025-02-02 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383790', 'tblTempVendorCDR_20' ) start [2025-02-02 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383790', 'tblTempVendorCDR_20' ) end [2025-02-02 06:17:19] Production.INFO: ProcessCDR(1,14383790,1,1,2) [2025-02-02 06:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383790', 'tblTempUsageDetail_20' ) start [2025-02-02 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383790', 'tblTempUsageDetail_20' ) end [2025-02-02 06:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:17:22] Production.INFO: ==1080== Releasing lock... [2025-02-02 06:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:17:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:18:05 [end_date_ymd] => 2025-02-02 06:18:05 [RateCDR] => 1 ) [2025-02-02 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-02 03:18:05' and `end` < '2025-02-02 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-02 06:18:17] Production.INFO: count ==111 [2025-02-02 06:18:17] Production.ERROR: pbx CDR StartTime 2025-02-02 03:18:05 - End Time 2025-02-02 06:18:05 [2025-02-02 06:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383795', 'tblTempUsageDetail_20' ) start [2025-02-02 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383795', 'tblTempUsageDetail_20' ) end [2025-02-02 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383795', 'tblTempVendorCDR_20' ) start [2025-02-02 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383795', 'tblTempVendorCDR_20' ) end [2025-02-02 06:18:17] Production.INFO: ProcessCDR(1,14383795,1,1,2) [2025-02-02 06:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383795', 'tblTempUsageDetail_20' ) start [2025-02-02 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383795', 'tblTempUsageDetail_20' ) end [2025-02-02 06:18:20] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:18:20] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:18:20] Production.INFO: ==1160== Releasing lock... [2025-02-02 06:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:18:20] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:19:05 [end_date_ymd] => 2025-02-02 06:19:05 [RateCDR] => 1 ) [2025-02-02 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-02 03:19:05' and `end` < '2025-02-02 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-02 06:19:18] Production.INFO: count ==111 [2025-02-02 06:19:18] Production.ERROR: pbx CDR StartTime 2025-02-02 03:19:05 - End Time 2025-02-02 06:19:05 [2025-02-02 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383800', 'tblTempUsageDetail_20' ) start [2025-02-02 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383800', 'tblTempUsageDetail_20' ) end [2025-02-02 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383800', 'tblTempVendorCDR_20' ) start [2025-02-02 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383800', 'tblTempVendorCDR_20' ) end [2025-02-02 06:19:18] Production.INFO: ProcessCDR(1,14383800,1,1,2) [2025-02-02 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383800', 'tblTempUsageDetail_20' ) start [2025-02-02 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383800', 'tblTempUsageDetail_20' ) end [2025-02-02 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:19:21] Production.INFO: ==1239== Releasing lock... [2025-02-02 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:19:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:20:06 [end_date_ymd] => 2025-02-02 06:20:06 [RateCDR] => 1 ) [2025-02-02 06:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 03:20:06' and `end` < '2025-02-02 06:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 06:20:19] Production.INFO: count ==107 [2025-02-02 06:20:19] Production.ERROR: pbx CDR StartTime 2025-02-02 03:20:06 - End Time 2025-02-02 06:20:06 [2025-02-02 06:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383805', 'tblTempUsageDetail_20' ) start [2025-02-02 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383805', 'tblTempUsageDetail_20' ) end [2025-02-02 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383805', 'tblTempVendorCDR_20' ) start [2025-02-02 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383805', 'tblTempVendorCDR_20' ) end [2025-02-02 06:20:19] Production.INFO: ProcessCDR(1,14383805,1,1,2) [2025-02-02 06:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383805', 'tblTempUsageDetail_20' ) start [2025-02-02 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383805', 'tblTempUsageDetail_20' ) end [2025-02-02 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:20:22] Production.INFO: ==1322== Releasing lock... [2025-02-02 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:20:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:21:06 [end_date_ymd] => 2025-02-02 06:21:06 [RateCDR] => 1 ) [2025-02-02 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-02 03:21:06' and `end` < '2025-02-02 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-02 06:21:19] Production.INFO: count ==97 [2025-02-02 06:21:19] Production.ERROR: pbx CDR StartTime 2025-02-02 03:21:06 - End Time 2025-02-02 06:21:06 [2025-02-02 06:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383811', 'tblTempUsageDetail_20' ) start [2025-02-02 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383811', 'tblTempUsageDetail_20' ) end [2025-02-02 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383811', 'tblTempVendorCDR_20' ) start [2025-02-02 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383811', 'tblTempVendorCDR_20' ) end [2025-02-02 06:21:19] Production.INFO: ProcessCDR(1,14383811,1,1,2) [2025-02-02 06:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383811', 'tblTempUsageDetail_20' ) start [2025-02-02 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383811', 'tblTempUsageDetail_20' ) end [2025-02-02 06:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:21:22] Production.INFO: ==1400== Releasing lock... [2025-02-02 06:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:21:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:22:05 [end_date_ymd] => 2025-02-02 06:22:05 [RateCDR] => 1 ) [2025-02-02 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-02 03:22:05' and `end` < '2025-02-02 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-02 06:22:17] Production.INFO: count ==97 [2025-02-02 06:22:17] Production.ERROR: pbx CDR StartTime 2025-02-02 03:22:05 - End Time 2025-02-02 06:22:05 [2025-02-02 06:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383816', 'tblTempUsageDetail_20' ) start [2025-02-02 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383816', 'tblTempUsageDetail_20' ) end [2025-02-02 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383816', 'tblTempVendorCDR_20' ) start [2025-02-02 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383816', 'tblTempVendorCDR_20' ) end [2025-02-02 06:22:17] Production.INFO: ProcessCDR(1,14383816,1,1,2) [2025-02-02 06:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383816', 'tblTempUsageDetail_20' ) start [2025-02-02 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383816', 'tblTempUsageDetail_20' ) end [2025-02-02 06:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:22:20] Production.INFO: ==1470== Releasing lock... [2025-02-02 06:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:22:20] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:23:05 [end_date_ymd] => 2025-02-02 06:23:05 [RateCDR] => 1 ) [2025-02-02 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-02 03:23:05' and `end` < '2025-02-02 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-02 06:23:18] Production.INFO: count ==97 [2025-02-02 06:23:18] Production.ERROR: pbx CDR StartTime 2025-02-02 03:23:05 - End Time 2025-02-02 06:23:05 [2025-02-02 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383821', 'tblTempUsageDetail_20' ) start [2025-02-02 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383821', 'tblTempUsageDetail_20' ) end [2025-02-02 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383821', 'tblTempVendorCDR_20' ) start [2025-02-02 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383821', 'tblTempVendorCDR_20' ) end [2025-02-02 06:23:18] Production.INFO: ProcessCDR(1,14383821,1,1,2) [2025-02-02 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383821', 'tblTempUsageDetail_20' ) start [2025-02-02 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383821', 'tblTempUsageDetail_20' ) end [2025-02-02 06:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:23:22] Production.INFO: ==1579== Releasing lock... [2025-02-02 06:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:23:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:24:05 [end_date_ymd] => 2025-02-02 06:24:05 [RateCDR] => 1 ) [2025-02-02 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-02 03:24:05' and `end` < '2025-02-02 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-02 06:24:19] Production.INFO: count ==97 [2025-02-02 06:24:19] Production.ERROR: pbx CDR StartTime 2025-02-02 03:24:05 - End Time 2025-02-02 06:24:05 [2025-02-02 06:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383826', 'tblTempUsageDetail_20' ) start [2025-02-02 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383826', 'tblTempUsageDetail_20' ) end [2025-02-02 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383826', 'tblTempVendorCDR_20' ) start [2025-02-02 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383826', 'tblTempVendorCDR_20' ) end [2025-02-02 06:24:19] Production.INFO: ProcessCDR(1,14383826,1,1,2) [2025-02-02 06:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383826', 'tblTempUsageDetail_20' ) start [2025-02-02 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383826', 'tblTempUsageDetail_20' ) end [2025-02-02 06:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:24:22] Production.INFO: ==1650== Releasing lock... [2025-02-02 06:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:24:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:25:05 [end_date_ymd] => 2025-02-02 06:25:05 [RateCDR] => 1 ) [2025-02-02 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-02 03:25:05' and `end` < '2025-02-02 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-02 06:25:18] Production.INFO: count ==97 [2025-02-02 06:25:18] Production.ERROR: pbx CDR StartTime 2025-02-02 03:25:05 - End Time 2025-02-02 06:25:05 [2025-02-02 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383831', 'tblTempUsageDetail_20' ) start [2025-02-02 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383831', 'tblTempUsageDetail_20' ) end [2025-02-02 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383831', 'tblTempVendorCDR_20' ) start [2025-02-02 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383831', 'tblTempVendorCDR_20' ) end [2025-02-02 06:25:18] Production.INFO: ProcessCDR(1,14383831,1,1,2) [2025-02-02 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383831', 'tblTempUsageDetail_20' ) start [2025-02-02 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383831', 'tblTempUsageDetail_20' ) end [2025-02-02 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:25:21] Production.INFO: ==1723== Releasing lock... [2025-02-02 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:25:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:26:06 [end_date_ymd] => 2025-02-02 06:26:06 [RateCDR] => 1 ) [2025-02-02 06:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 03:26:06' and `end` < '2025-02-02 06:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 06:26:20] Production.INFO: count ==97 [2025-02-02 06:26:20] Production.ERROR: pbx CDR StartTime 2025-02-02 03:26:06 - End Time 2025-02-02 06:26:06 [2025-02-02 06:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383836', 'tblTempUsageDetail_20' ) start [2025-02-02 06:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383836', 'tblTempUsageDetail_20' ) end [2025-02-02 06:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383836', 'tblTempVendorCDR_20' ) start [2025-02-02 06:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383836', 'tblTempVendorCDR_20' ) end [2025-02-02 06:26:20] Production.INFO: ProcessCDR(1,14383836,1,1,2) [2025-02-02 06:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383836', 'tblTempUsageDetail_20' ) start [2025-02-02 06:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383836', 'tblTempUsageDetail_20' ) end [2025-02-02 06:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:26:23] Production.INFO: ==1796== Releasing lock... [2025-02-02 06:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:26:23] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:27:05 [end_date_ymd] => 2025-02-02 06:27:05 [RateCDR] => 1 ) [2025-02-02 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-02 03:27:05' and `end` < '2025-02-02 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-02 06:27:19] Production.INFO: count ==97 [2025-02-02 06:27:19] Production.ERROR: pbx CDR StartTime 2025-02-02 03:27:05 - End Time 2025-02-02 06:27:05 [2025-02-02 06:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383841', 'tblTempUsageDetail_20' ) start [2025-02-02 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383841', 'tblTempUsageDetail_20' ) end [2025-02-02 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383841', 'tblTempVendorCDR_20' ) start [2025-02-02 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383841', 'tblTempVendorCDR_20' ) end [2025-02-02 06:27:19] Production.INFO: ProcessCDR(1,14383841,1,1,2) [2025-02-02 06:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383841', 'tblTempUsageDetail_20' ) start [2025-02-02 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383841', 'tblTempUsageDetail_20' ) end [2025-02-02 06:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:27:22] Production.INFO: ==1870== Releasing lock... [2025-02-02 06:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:27:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:28:05 [end_date_ymd] => 2025-02-02 06:28:05 [RateCDR] => 1 ) [2025-02-02 06:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 03:28:05' and `end` < '2025-02-02 06:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 06:28:18] Production.INFO: count ==97 [2025-02-02 06:28:18] Production.ERROR: pbx CDR StartTime 2025-02-02 03:28:05 - End Time 2025-02-02 06:28:05 [2025-02-02 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383846', 'tblTempUsageDetail_20' ) start [2025-02-02 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383846', 'tblTempUsageDetail_20' ) end [2025-02-02 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383846', 'tblTempVendorCDR_20' ) start [2025-02-02 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383846', 'tblTempVendorCDR_20' ) end [2025-02-02 06:28:18] Production.INFO: ProcessCDR(1,14383846,1,1,2) [2025-02-02 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383846', 'tblTempUsageDetail_20' ) start [2025-02-02 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383846', 'tblTempUsageDetail_20' ) end [2025-02-02 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:28:21] Production.INFO: ==1955== Releasing lock... [2025-02-02 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:28:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:29:05 [end_date_ymd] => 2025-02-02 06:29:05 [RateCDR] => 1 ) [2025-02-02 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-02 03:29:05' and `end` < '2025-02-02 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-02 06:29:18] Production.INFO: count ==97 [2025-02-02 06:29:18] Production.ERROR: pbx CDR StartTime 2025-02-02 03:29:05 - End Time 2025-02-02 06:29:05 [2025-02-02 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383851', 'tblTempUsageDetail_20' ) start [2025-02-02 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383851', 'tblTempUsageDetail_20' ) end [2025-02-02 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383851', 'tblTempVendorCDR_20' ) start [2025-02-02 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383851', 'tblTempVendorCDR_20' ) end [2025-02-02 06:29:18] Production.INFO: ProcessCDR(1,14383851,1,1,2) [2025-02-02 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383851', 'tblTempUsageDetail_20' ) start [2025-02-02 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383851', 'tblTempUsageDetail_20' ) end [2025-02-02 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:29:21] Production.INFO: ==2032== Releasing lock... [2025-02-02 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:29:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:30:06 [end_date_ymd] => 2025-02-02 06:30:06 [RateCDR] => 1 ) [2025-02-02 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-02 03:30:06' and `end` < '2025-02-02 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-02 06:30:21] Production.INFO: count ==97 [2025-02-02 06:30:21] Production.ERROR: pbx CDR StartTime 2025-02-02 03:30:06 - End Time 2025-02-02 06:30:06 [2025-02-02 06:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383857', 'tblTempUsageDetail_20' ) start [2025-02-02 06:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383857', 'tblTempUsageDetail_20' ) end [2025-02-02 06:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383857', 'tblTempVendorCDR_20' ) start [2025-02-02 06:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383857', 'tblTempVendorCDR_20' ) end [2025-02-02 06:30:21] Production.INFO: ProcessCDR(1,14383857,1,1,2) [2025-02-02 06:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383857', 'tblTempUsageDetail_20' ) start [2025-02-02 06:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383857', 'tblTempUsageDetail_20' ) end [2025-02-02 06:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:30:25] Production.INFO: ==2105== Releasing lock... [2025-02-02 06:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:30:25] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:31:05 [end_date_ymd] => 2025-02-02 06:31:05 [RateCDR] => 1 ) [2025-02-02 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-02 03:31:05' and `end` < '2025-02-02 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-02 06:31:19] Production.INFO: count ==98 [2025-02-02 06:31:19] Production.ERROR: pbx CDR StartTime 2025-02-02 03:31:05 - End Time 2025-02-02 06:31:05 [2025-02-02 06:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383862', 'tblTempUsageDetail_20' ) start [2025-02-02 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383862', 'tblTempUsageDetail_20' ) end [2025-02-02 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383862', 'tblTempVendorCDR_20' ) start [2025-02-02 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383862', 'tblTempVendorCDR_20' ) end [2025-02-02 06:31:19] Production.INFO: ProcessCDR(1,14383862,1,1,2) [2025-02-02 06:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383862', 'tblTempUsageDetail_20' ) start [2025-02-02 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383862', 'tblTempUsageDetail_20' ) end [2025-02-02 06:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:31:22] Production.INFO: ==2179== Releasing lock... [2025-02-02 06:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:31:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:32:06 [end_date_ymd] => 2025-02-02 06:32:06 [RateCDR] => 1 ) [2025-02-02 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-02 03:32:06' and `end` < '2025-02-02 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-02 06:32:19] Production.INFO: count ==98 [2025-02-02 06:32:19] Production.ERROR: pbx CDR StartTime 2025-02-02 03:32:06 - End Time 2025-02-02 06:32:06 [2025-02-02 06:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383867', 'tblTempUsageDetail_20' ) start [2025-02-02 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383867', 'tblTempUsageDetail_20' ) end [2025-02-02 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383867', 'tblTempVendorCDR_20' ) start [2025-02-02 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383867', 'tblTempVendorCDR_20' ) end [2025-02-02 06:32:19] Production.INFO: ProcessCDR(1,14383867,1,1,2) [2025-02-02 06:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383867', 'tblTempUsageDetail_20' ) start [2025-02-02 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383867', 'tblTempUsageDetail_20' ) end [2025-02-02 06:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:32:22] Production.INFO: ==2259== Releasing lock... [2025-02-02 06:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:32:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:33:05 [end_date_ymd] => 2025-02-02 06:33:05 [RateCDR] => 1 ) [2025-02-02 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-02 03:33:05' and `end` < '2025-02-02 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-02 06:33:18] Production.INFO: count ==98 [2025-02-02 06:33:18] Production.ERROR: pbx CDR StartTime 2025-02-02 03:33:05 - End Time 2025-02-02 06:33:05 [2025-02-02 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383872', 'tblTempUsageDetail_20' ) start [2025-02-02 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383872', 'tblTempUsageDetail_20' ) end [2025-02-02 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383872', 'tblTempVendorCDR_20' ) start [2025-02-02 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383872', 'tblTempVendorCDR_20' ) end [2025-02-02 06:33:18] Production.INFO: ProcessCDR(1,14383872,1,1,2) [2025-02-02 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383872', 'tblTempUsageDetail_20' ) start [2025-02-02 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383872', 'tblTempUsageDetail_20' ) end [2025-02-02 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:33:21] Production.INFO: ==2390== Releasing lock... [2025-02-02 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:33:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:34:05 [end_date_ymd] => 2025-02-02 06:34:05 [RateCDR] => 1 ) [2025-02-02 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-02 03:34:05' and `end` < '2025-02-02 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-02 06:34:19] Production.INFO: count ==98 [2025-02-02 06:34:19] Production.ERROR: pbx CDR StartTime 2025-02-02 03:34:05 - End Time 2025-02-02 06:34:05 [2025-02-02 06:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383877', 'tblTempUsageDetail_20' ) start [2025-02-02 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383877', 'tblTempUsageDetail_20' ) end [2025-02-02 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383877', 'tblTempVendorCDR_20' ) start [2025-02-02 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383877', 'tblTempVendorCDR_20' ) end [2025-02-02 06:34:19] Production.INFO: ProcessCDR(1,14383877,1,1,2) [2025-02-02 06:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383877', 'tblTempUsageDetail_20' ) start [2025-02-02 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383877', 'tblTempUsageDetail_20' ) end [2025-02-02 06:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:34:22] Production.INFO: ==2476== Releasing lock... [2025-02-02 06:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:34:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:35:05 [end_date_ymd] => 2025-02-02 06:35:05 [RateCDR] => 1 ) [2025-02-02 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-02 03:35:05' and `end` < '2025-02-02 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-02 06:35:21] Production.INFO: count ==98 [2025-02-02 06:35:21] Production.ERROR: pbx CDR StartTime 2025-02-02 03:35:05 - End Time 2025-02-02 06:35:05 [2025-02-02 06:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383882', 'tblTempUsageDetail_20' ) start [2025-02-02 06:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383882', 'tblTempUsageDetail_20' ) end [2025-02-02 06:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383882', 'tblTempVendorCDR_20' ) start [2025-02-02 06:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383882', 'tblTempVendorCDR_20' ) end [2025-02-02 06:35:21] Production.INFO: ProcessCDR(1,14383882,1,1,2) [2025-02-02 06:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383882', 'tblTempUsageDetail_20' ) start [2025-02-02 06:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383882', 'tblTempUsageDetail_20' ) end [2025-02-02 06:35:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:35:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:35:24] Production.INFO: ==2585== Releasing lock... [2025-02-02 06:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:35:24] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:36:05 [end_date_ymd] => 2025-02-02 06:36:05 [RateCDR] => 1 ) [2025-02-02 06:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 03:36:05' and `end` < '2025-02-02 06:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 06:36:18] Production.INFO: count ==98 [2025-02-02 06:36:18] Production.ERROR: pbx CDR StartTime 2025-02-02 03:36:05 - End Time 2025-02-02 06:36:05 [2025-02-02 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383887', 'tblTempUsageDetail_20' ) start [2025-02-02 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383887', 'tblTempUsageDetail_20' ) end [2025-02-02 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383887', 'tblTempVendorCDR_20' ) start [2025-02-02 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383887', 'tblTempVendorCDR_20' ) end [2025-02-02 06:36:18] Production.INFO: ProcessCDR(1,14383887,1,1,2) [2025-02-02 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383887', 'tblTempUsageDetail_20' ) start [2025-02-02 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383887', 'tblTempUsageDetail_20' ) end [2025-02-02 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:36:21] Production.INFO: ==2663== Releasing lock... [2025-02-02 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:36:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:37:05 [end_date_ymd] => 2025-02-02 06:37:05 [RateCDR] => 1 ) [2025-02-02 06:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 03:37:05' and `end` < '2025-02-02 06:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 06:37:18] Production.INFO: count ==98 [2025-02-02 06:37:18] Production.ERROR: pbx CDR StartTime 2025-02-02 03:37:05 - End Time 2025-02-02 06:37:05 [2025-02-02 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383892', 'tblTempUsageDetail_20' ) start [2025-02-02 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383892', 'tblTempUsageDetail_20' ) end [2025-02-02 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383892', 'tblTempVendorCDR_20' ) start [2025-02-02 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383892', 'tblTempVendorCDR_20' ) end [2025-02-02 06:37:18] Production.INFO: ProcessCDR(1,14383892,1,1,2) [2025-02-02 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383892', 'tblTempUsageDetail_20' ) start [2025-02-02 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383892', 'tblTempUsageDetail_20' ) end [2025-02-02 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:37:21] Production.INFO: ==2743== Releasing lock... [2025-02-02 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:37:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:38:05 [end_date_ymd] => 2025-02-02 06:38:05 [RateCDR] => 1 ) [2025-02-02 06:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 03:38:05' and `end` < '2025-02-02 06:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 06:38:19] Production.INFO: count ==98 [2025-02-02 06:38:19] Production.ERROR: pbx CDR StartTime 2025-02-02 03:38:05 - End Time 2025-02-02 06:38:05 [2025-02-02 06:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383897', 'tblTempUsageDetail_20' ) start [2025-02-02 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383897', 'tblTempUsageDetail_20' ) end [2025-02-02 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383897', 'tblTempVendorCDR_20' ) start [2025-02-02 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383897', 'tblTempVendorCDR_20' ) end [2025-02-02 06:38:19] Production.INFO: ProcessCDR(1,14383897,1,1,2) [2025-02-02 06:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383897', 'tblTempUsageDetail_20' ) start [2025-02-02 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383897', 'tblTempUsageDetail_20' ) end [2025-02-02 06:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:38:22] Production.INFO: ==2815== Releasing lock... [2025-02-02 06:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:38:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:39:05 [end_date_ymd] => 2025-02-02 06:39:05 [RateCDR] => 1 ) [2025-02-02 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-02 03:39:05' and `end` < '2025-02-02 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-02 06:39:17] Production.INFO: count ==98 [2025-02-02 06:39:17] Production.ERROR: pbx CDR StartTime 2025-02-02 03:39:05 - End Time 2025-02-02 06:39:05 [2025-02-02 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383902', 'tblTempUsageDetail_20' ) start [2025-02-02 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383902', 'tblTempUsageDetail_20' ) end [2025-02-02 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383902', 'tblTempVendorCDR_20' ) start [2025-02-02 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383902', 'tblTempVendorCDR_20' ) end [2025-02-02 06:39:17] Production.INFO: ProcessCDR(1,14383902,1,1,2) [2025-02-02 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383902', 'tblTempUsageDetail_20' ) start [2025-02-02 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383902', 'tblTempUsageDetail_20' ) end [2025-02-02 06:39:20] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:39:20] Production.INFO: ==2884== Releasing lock... [2025-02-02 06:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:39:20] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:40:06 [end_date_ymd] => 2025-02-02 06:40:06 [RateCDR] => 1 ) [2025-02-02 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-02 03:40:06' and `end` < '2025-02-02 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-02 06:40:18] Production.INFO: count ==96 [2025-02-02 06:40:18] Production.ERROR: pbx CDR StartTime 2025-02-02 03:40:06 - End Time 2025-02-02 06:40:06 [2025-02-02 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383908', 'tblTempUsageDetail_20' ) start [2025-02-02 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383908', 'tblTempUsageDetail_20' ) end [2025-02-02 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383908', 'tblTempVendorCDR_20' ) start [2025-02-02 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383908', 'tblTempVendorCDR_20' ) end [2025-02-02 06:40:18] Production.INFO: ProcessCDR(1,14383908,1,1,2) [2025-02-02 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383908', 'tblTempUsageDetail_20' ) start [2025-02-02 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383908', 'tblTempUsageDetail_20' ) end [2025-02-02 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:40:21] Production.INFO: ==2956== Releasing lock... [2025-02-02 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:40:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:41:04 [end_date_ymd] => 2025-02-02 06:41:04 [RateCDR] => 1 ) [2025-02-02 06: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-02 03:41:04' and `end` < '2025-02-02 06: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-02 06:41:18] Production.INFO: count ==96 [2025-02-02 06:41:18] Production.ERROR: pbx CDR StartTime 2025-02-02 03:41:04 - End Time 2025-02-02 06:41:04 [2025-02-02 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383913', 'tblTempUsageDetail_20' ) start [2025-02-02 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383913', 'tblTempUsageDetail_20' ) end [2025-02-02 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383913', 'tblTempVendorCDR_20' ) start [2025-02-02 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383913', 'tblTempVendorCDR_20' ) end [2025-02-02 06:41:18] Production.INFO: ProcessCDR(1,14383913,1,1,2) [2025-02-02 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383913', 'tblTempUsageDetail_20' ) start [2025-02-02 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383913', 'tblTempUsageDetail_20' ) end [2025-02-02 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:41:21] Production.INFO: ==3029== Releasing lock... [2025-02-02 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:41:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:42:05 [end_date_ymd] => 2025-02-02 06:42:05 [RateCDR] => 1 ) [2025-02-02 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-02 03:42:05' and `end` < '2025-02-02 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-02 06:42:18] Production.INFO: count ==96 [2025-02-02 06:42:18] Production.ERROR: pbx CDR StartTime 2025-02-02 03:42:05 - End Time 2025-02-02 06:42:05 [2025-02-02 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383918', 'tblTempUsageDetail_20' ) start [2025-02-02 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383918', 'tblTempUsageDetail_20' ) end [2025-02-02 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383918', 'tblTempVendorCDR_20' ) start [2025-02-02 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383918', 'tblTempVendorCDR_20' ) end [2025-02-02 06:42:18] Production.INFO: ProcessCDR(1,14383918,1,1,2) [2025-02-02 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383918', 'tblTempUsageDetail_20' ) start [2025-02-02 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383918', 'tblTempUsageDetail_20' ) end [2025-02-02 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:42:21] Production.INFO: ==3099== Releasing lock... [2025-02-02 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:42:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:43:05 [end_date_ymd] => 2025-02-02 06:43:05 [RateCDR] => 1 ) [2025-02-02 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-02 03:43:05' and `end` < '2025-02-02 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-02 06:43:19] Production.INFO: count ==96 [2025-02-02 06:43:19] Production.ERROR: pbx CDR StartTime 2025-02-02 03:43:05 - End Time 2025-02-02 06:43:05 [2025-02-02 06:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383923', 'tblTempUsageDetail_20' ) start [2025-02-02 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383923', 'tblTempUsageDetail_20' ) end [2025-02-02 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383923', 'tblTempVendorCDR_20' ) start [2025-02-02 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383923', 'tblTempVendorCDR_20' ) end [2025-02-02 06:43:19] Production.INFO: ProcessCDR(1,14383923,1,1,2) [2025-02-02 06:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383923', 'tblTempUsageDetail_20' ) start [2025-02-02 06:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383923', 'tblTempUsageDetail_20' ) end [2025-02-02 06:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:43:22] Production.INFO: ==3172== Releasing lock... [2025-02-02 06:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:43:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:44:05 [end_date_ymd] => 2025-02-02 06:44:05 [RateCDR] => 1 ) [2025-02-02 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-02 03:44:05' and `end` < '2025-02-02 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-02 06:44:19] Production.INFO: count ==96 [2025-02-02 06:44:19] Production.ERROR: pbx CDR StartTime 2025-02-02 03:44:05 - End Time 2025-02-02 06:44:05 [2025-02-02 06:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383928', 'tblTempUsageDetail_20' ) start [2025-02-02 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383928', 'tblTempUsageDetail_20' ) end [2025-02-02 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383928', 'tblTempVendorCDR_20' ) start [2025-02-02 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383928', 'tblTempVendorCDR_20' ) end [2025-02-02 06:44:19] Production.INFO: ProcessCDR(1,14383928,1,1,2) [2025-02-02 06:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383928', 'tblTempUsageDetail_20' ) start [2025-02-02 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383928', 'tblTempUsageDetail_20' ) end [2025-02-02 06:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:44:22] Production.INFO: ==3243== Releasing lock... [2025-02-02 06:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:44:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:45:06 [end_date_ymd] => 2025-02-02 06:45:06 [RateCDR] => 1 ) [2025-02-02 06:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 03:45:06' and `end` < '2025-02-02 06:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 06:45:19] Production.INFO: count ==96 [2025-02-02 06:45:19] Production.ERROR: pbx CDR StartTime 2025-02-02 03:45:06 - End Time 2025-02-02 06:45:06 [2025-02-02 06:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383933', 'tblTempUsageDetail_20' ) start [2025-02-02 06:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383933', 'tblTempUsageDetail_20' ) end [2025-02-02 06:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383933', 'tblTempVendorCDR_20' ) start [2025-02-02 06:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383933', 'tblTempVendorCDR_20' ) end [2025-02-02 06:45:19] Production.INFO: ProcessCDR(1,14383933,1,1,2) [2025-02-02 06:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383933', 'tblTempUsageDetail_20' ) start [2025-02-02 06:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383933', 'tblTempUsageDetail_20' ) end [2025-02-02 06:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:45:22] Production.INFO: ==3317== Releasing lock... [2025-02-02 06:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:45:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:46:05 [end_date_ymd] => 2025-02-02 06:46:05 [RateCDR] => 1 ) [2025-02-02 06:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 03:46:05' and `end` < '2025-02-02 06:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 06:46:18] Production.INFO: count ==96 [2025-02-02 06:46:18] Production.ERROR: pbx CDR StartTime 2025-02-02 03:46:05 - End Time 2025-02-02 06:46:05 [2025-02-02 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383938', 'tblTempUsageDetail_20' ) start [2025-02-02 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383938', 'tblTempUsageDetail_20' ) end [2025-02-02 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383938', 'tblTempVendorCDR_20' ) start [2025-02-02 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383938', 'tblTempVendorCDR_20' ) end [2025-02-02 06:46:18] Production.INFO: ProcessCDR(1,14383938,1,1,2) [2025-02-02 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383938', 'tblTempUsageDetail_20' ) start [2025-02-02 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383938', 'tblTempUsageDetail_20' ) end [2025-02-02 06:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:46:21] Production.INFO: ==3387== Releasing lock... [2025-02-02 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:46:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:47:06 [end_date_ymd] => 2025-02-02 06:47:06 [RateCDR] => 1 ) [2025-02-02 06: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-02 03:47:06' and `end` < '2025-02-02 06: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-02 06:47:18] Production.INFO: count ==96 [2025-02-02 06:47:18] Production.ERROR: pbx CDR StartTime 2025-02-02 03:47:06 - End Time 2025-02-02 06:47:06 [2025-02-02 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383943', 'tblTempUsageDetail_20' ) start [2025-02-02 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383943', 'tblTempUsageDetail_20' ) end [2025-02-02 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383943', 'tblTempVendorCDR_20' ) start [2025-02-02 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383943', 'tblTempVendorCDR_20' ) end [2025-02-02 06:47:18] Production.INFO: ProcessCDR(1,14383943,1,1,2) [2025-02-02 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383943', 'tblTempUsageDetail_20' ) start [2025-02-02 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383943', 'tblTempUsageDetail_20' ) end [2025-02-02 06:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:47:22] Production.INFO: ==3457== Releasing lock... [2025-02-02 06:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:47:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:48:05 [end_date_ymd] => 2025-02-02 06:48:05 [RateCDR] => 1 ) [2025-02-02 06:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 03:48:05' and `end` < '2025-02-02 06:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 06:48:18] Production.INFO: count ==96 [2025-02-02 06:48:18] Production.ERROR: pbx CDR StartTime 2025-02-02 03:48:05 - End Time 2025-02-02 06:48:05 [2025-02-02 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383948', 'tblTempUsageDetail_20' ) start [2025-02-02 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383948', 'tblTempUsageDetail_20' ) end [2025-02-02 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383948', 'tblTempVendorCDR_20' ) start [2025-02-02 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383948', 'tblTempVendorCDR_20' ) end [2025-02-02 06:48:18] Production.INFO: ProcessCDR(1,14383948,1,1,2) [2025-02-02 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383948', 'tblTempUsageDetail_20' ) start [2025-02-02 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383948', 'tblTempUsageDetail_20' ) end [2025-02-02 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:48:21] Production.INFO: ==3567== Releasing lock... [2025-02-02 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:48:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:49:05 [end_date_ymd] => 2025-02-02 06:49:05 [RateCDR] => 1 ) [2025-02-02 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-02 03:49:05' and `end` < '2025-02-02 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-02 06:49:18] Production.INFO: count ==96 [2025-02-02 06:49:18] Production.ERROR: pbx CDR StartTime 2025-02-02 03:49:05 - End Time 2025-02-02 06:49:05 [2025-02-02 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383953', 'tblTempUsageDetail_20' ) start [2025-02-02 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383953', 'tblTempUsageDetail_20' ) end [2025-02-02 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383953', 'tblTempVendorCDR_20' ) start [2025-02-02 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383953', 'tblTempVendorCDR_20' ) end [2025-02-02 06:49:18] Production.INFO: ProcessCDR(1,14383953,1,1,2) [2025-02-02 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383953', 'tblTempUsageDetail_20' ) start [2025-02-02 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383953', 'tblTempUsageDetail_20' ) end [2025-02-02 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:49:21] Production.INFO: ==3640== Releasing lock... [2025-02-02 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:49:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:50:05 [end_date_ymd] => 2025-02-02 06:50:05 [RateCDR] => 1 ) [2025-02-02 06:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 03:50:05' and `end` < '2025-02-02 06:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 06:50:18] Production.INFO: count ==94 [2025-02-02 06:50:18] Production.ERROR: pbx CDR StartTime 2025-02-02 03:50:05 - End Time 2025-02-02 06:50:05 [2025-02-02 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383958', 'tblTempUsageDetail_20' ) start [2025-02-02 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383958', 'tblTempUsageDetail_20' ) end [2025-02-02 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383958', 'tblTempVendorCDR_20' ) start [2025-02-02 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383958', 'tblTempVendorCDR_20' ) end [2025-02-02 06:50:18] Production.INFO: ProcessCDR(1,14383958,1,1,2) [2025-02-02 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383958', 'tblTempUsageDetail_20' ) start [2025-02-02 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383958', 'tblTempUsageDetail_20' ) end [2025-02-02 06:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:50:21] Production.INFO: ==3712== Releasing lock... [2025-02-02 06:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:50:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:51:05 [end_date_ymd] => 2025-02-02 06:51:05 [RateCDR] => 1 ) [2025-02-02 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-02 03:51:05' and `end` < '2025-02-02 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-02 06:51:19] Production.INFO: count ==95 [2025-02-02 06:51:19] Production.ERROR: pbx CDR StartTime 2025-02-02 03:51:05 - End Time 2025-02-02 06:51:05 [2025-02-02 06:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383964', 'tblTempUsageDetail_20' ) start [2025-02-02 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383964', 'tblTempUsageDetail_20' ) end [2025-02-02 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383964', 'tblTempVendorCDR_20' ) start [2025-02-02 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383964', 'tblTempVendorCDR_20' ) end [2025-02-02 06:51:19] Production.INFO: ProcessCDR(1,14383964,1,1,2) [2025-02-02 06:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383964', 'tblTempUsageDetail_20' ) start [2025-02-02 06:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383964', 'tblTempUsageDetail_20' ) end [2025-02-02 06:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:51:22] Production.INFO: ==3791== Releasing lock... [2025-02-02 06:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:51:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:52:05 [end_date_ymd] => 2025-02-02 06:52:05 [RateCDR] => 1 ) [2025-02-02 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-02 03:52:05' and `end` < '2025-02-02 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-02 06:52:17] Production.INFO: count ==95 [2025-02-02 06:52:17] Production.ERROR: pbx CDR StartTime 2025-02-02 03:52:05 - End Time 2025-02-02 06:52:05 [2025-02-02 06:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383969', 'tblTempUsageDetail_20' ) start [2025-02-02 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383969', 'tblTempUsageDetail_20' ) end [2025-02-02 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383969', 'tblTempVendorCDR_20' ) start [2025-02-02 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383969', 'tblTempVendorCDR_20' ) end [2025-02-02 06:52:17] Production.INFO: ProcessCDR(1,14383969,1,1,2) [2025-02-02 06:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383969', 'tblTempUsageDetail_20' ) start [2025-02-02 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383969', 'tblTempUsageDetail_20' ) end [2025-02-02 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:52:21] Production.INFO: ==3863== Releasing lock... [2025-02-02 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:52:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:53:05 [end_date_ymd] => 2025-02-02 06:53:05 [RateCDR] => 1 ) [2025-02-02 06:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 03:53:05' and `end` < '2025-02-02 06:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 06:53:18] Production.INFO: count ==95 [2025-02-02 06:53:18] Production.ERROR: pbx CDR StartTime 2025-02-02 03:53:05 - End Time 2025-02-02 06:53:05 [2025-02-02 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383974', 'tblTempUsageDetail_20' ) start [2025-02-02 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383974', 'tblTempUsageDetail_20' ) end [2025-02-02 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383974', 'tblTempVendorCDR_20' ) start [2025-02-02 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383974', 'tblTempVendorCDR_20' ) end [2025-02-02 06:53:18] Production.INFO: ProcessCDR(1,14383974,1,1,2) [2025-02-02 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383974', 'tblTempUsageDetail_20' ) start [2025-02-02 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383974', 'tblTempUsageDetail_20' ) end [2025-02-02 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:53:21] Production.INFO: ==3935== Releasing lock... [2025-02-02 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:53:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:54:04 [end_date_ymd] => 2025-02-02 06:54:04 [RateCDR] => 1 ) [2025-02-02 06: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-02 03:54:04' and `end` < '2025-02-02 06: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-02 06:54:17] Production.INFO: count ==95 [2025-02-02 06:54:17] Production.ERROR: pbx CDR StartTime 2025-02-02 03:54:04 - End Time 2025-02-02 06:54:04 [2025-02-02 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383979', 'tblTempUsageDetail_20' ) start [2025-02-02 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383979', 'tblTempUsageDetail_20' ) end [2025-02-02 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383979', 'tblTempVendorCDR_20' ) start [2025-02-02 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383979', 'tblTempVendorCDR_20' ) end [2025-02-02 06:54:17] Production.INFO: ProcessCDR(1,14383979,1,1,2) [2025-02-02 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383979', 'tblTempUsageDetail_20' ) start [2025-02-02 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383979', 'tblTempUsageDetail_20' ) end [2025-02-02 06:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:54:20] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:54:20] Production.INFO: ==4009== Releasing lock... [2025-02-02 06:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:54:20] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:55:05 [end_date_ymd] => 2025-02-02 06:55:05 [RateCDR] => 1 ) [2025-02-02 06:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 03:55:05' and `end` < '2025-02-02 06:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 06:55:18] Production.INFO: count ==95 [2025-02-02 06:55:18] Production.ERROR: pbx CDR StartTime 2025-02-02 03:55:05 - End Time 2025-02-02 06:55:05 [2025-02-02 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383984', 'tblTempUsageDetail_20' ) start [2025-02-02 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383984', 'tblTempUsageDetail_20' ) end [2025-02-02 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383984', 'tblTempVendorCDR_20' ) start [2025-02-02 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383984', 'tblTempVendorCDR_20' ) end [2025-02-02 06:55:18] Production.INFO: ProcessCDR(1,14383984,1,1,2) [2025-02-02 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383984', 'tblTempUsageDetail_20' ) start [2025-02-02 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383984', 'tblTempUsageDetail_20' ) end [2025-02-02 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:55:21] Production.INFO: ==4083== Releasing lock... [2025-02-02 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:55:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:56:06 [end_date_ymd] => 2025-02-02 06:56:06 [RateCDR] => 1 ) [2025-02-02 06:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 03:56:06' and `end` < '2025-02-02 06:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 06:56:19] Production.INFO: count ==95 [2025-02-02 06:56:19] Production.ERROR: pbx CDR StartTime 2025-02-02 03:56:06 - End Time 2025-02-02 06:56:06 [2025-02-02 06:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383989', 'tblTempUsageDetail_20' ) start [2025-02-02 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383989', 'tblTempUsageDetail_20' ) end [2025-02-02 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383989', 'tblTempVendorCDR_20' ) start [2025-02-02 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383989', 'tblTempVendorCDR_20' ) end [2025-02-02 06:56:19] Production.INFO: ProcessCDR(1,14383989,1,1,2) [2025-02-02 06:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383989', 'tblTempUsageDetail_20' ) start [2025-02-02 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383989', 'tblTempUsageDetail_20' ) end [2025-02-02 06:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:56:22] Production.INFO: ==4176== Releasing lock... [2025-02-02 06:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:56:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:57:05 [end_date_ymd] => 2025-02-02 06:57:05 [RateCDR] => 1 ) [2025-02-02 06:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 03:57:05' and `end` < '2025-02-02 06:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 06:57:17] Production.INFO: count ==95 [2025-02-02 06:57:17] Production.ERROR: pbx CDR StartTime 2025-02-02 03:57:05 - End Time 2025-02-02 06:57:05 [2025-02-02 06:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383994', 'tblTempUsageDetail_20' ) start [2025-02-02 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383994', 'tblTempUsageDetail_20' ) end [2025-02-02 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383994', 'tblTempVendorCDR_20' ) start [2025-02-02 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383994', 'tblTempVendorCDR_20' ) end [2025-02-02 06:57:17] Production.INFO: ProcessCDR(1,14383994,1,1,2) [2025-02-02 06:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383994', 'tblTempUsageDetail_20' ) start [2025-02-02 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383994', 'tblTempUsageDetail_20' ) end [2025-02-02 06:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:57:20] Production.INFO: ==4257== Releasing lock... [2025-02-02 06:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:57:20] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:58:05 [end_date_ymd] => 2025-02-02 06:58:05 [RateCDR] => 1 ) [2025-02-02 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-02 03:58:05' and `end` < '2025-02-02 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-02 06:58:18] Production.INFO: count ==95 [2025-02-02 06:58:18] Production.ERROR: pbx CDR StartTime 2025-02-02 03:58:05 - End Time 2025-02-02 06:58:05 [2025-02-02 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383999', 'tblTempUsageDetail_20' ) start [2025-02-02 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14383999', 'tblTempUsageDetail_20' ) end [2025-02-02 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383999', 'tblTempVendorCDR_20' ) start [2025-02-02 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14383999', 'tblTempVendorCDR_20' ) end [2025-02-02 06:58:18] Production.INFO: ProcessCDR(1,14383999,1,1,2) [2025-02-02 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14383999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14383999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14383999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14383999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383999', 'tblTempUsageDetail_20' ) start [2025-02-02 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14383999', 'tblTempUsageDetail_20' ) end [2025-02-02 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:58:21] Production.INFO: ==4331== Releasing lock... [2025-02-02 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:58:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 03:59:05 [end_date_ymd] => 2025-02-02 06:59:05 [RateCDR] => 1 ) [2025-02-02 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-02 03:59:05' and `end` < '2025-02-02 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-02 06:59:18] Production.INFO: count ==95 [2025-02-02 06:59:18] Production.ERROR: pbx CDR StartTime 2025-02-02 03:59:05 - End Time 2025-02-02 06:59:05 [2025-02-02 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384004', 'tblTempUsageDetail_20' ) start [2025-02-02 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384004', 'tblTempUsageDetail_20' ) end [2025-02-02 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384004', 'tblTempVendorCDR_20' ) start [2025-02-02 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384004', 'tblTempVendorCDR_20' ) end [2025-02-02 06:59:18] Production.INFO: ProcessCDR(1,14384004,1,1,2) [2025-02-02 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384004', 'tblTempUsageDetail_20' ) start [2025-02-02 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384004', 'tblTempUsageDetail_20' ) end [2025-02-02 06:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 06:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 06:59:21] Production.INFO: ==4407== Releasing lock... [2025-02-02 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 06:59:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:00:06 [end_date_ymd] => 2025-02-02 07:00:06 [RateCDR] => 1 ) [2025-02-02 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-02 04:00:06' and `end` < '2025-02-02 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-02 07:00:18] Production.INFO: count ==96 [2025-02-02 07:00:18] Production.ERROR: pbx CDR StartTime 2025-02-02 04:00:06 - End Time 2025-02-02 07:00:06 [2025-02-02 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384009', 'tblTempUsageDetail_20' ) start [2025-02-02 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384009', 'tblTempUsageDetail_20' ) end [2025-02-02 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384009', 'tblTempVendorCDR_20' ) start [2025-02-02 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384009', 'tblTempVendorCDR_20' ) end [2025-02-02 07:00:18] Production.INFO: ProcessCDR(1,14384009,1,1,2) [2025-02-02 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384009', 'tblTempUsageDetail_20' ) start [2025-02-02 07:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384009', 'tblTempUsageDetail_20' ) end [2025-02-02 07:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:00:23] Production.INFO: ==4485== Releasing lock... [2025-02-02 07:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:00:23] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:01:05 [end_date_ymd] => 2025-02-02 07:01:05 [RateCDR] => 1 ) [2025-02-02 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-02 04:01:05' and `end` < '2025-02-02 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-02 07:01:23] Production.INFO: count ==96 [2025-02-02 07:01:23] Production.ERROR: pbx CDR StartTime 2025-02-02 04:01:05 - End Time 2025-02-02 07:01:05 [2025-02-02 07:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384015', 'tblTempUsageDetail_20' ) start [2025-02-02 07:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384015', 'tblTempUsageDetail_20' ) end [2025-02-02 07:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384015', 'tblTempVendorCDR_20' ) start [2025-02-02 07:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384015', 'tblTempVendorCDR_20' ) end [2025-02-02 07:01:23] Production.INFO: ProcessCDR(1,14384015,1,1,2) [2025-02-02 07:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384015', 'tblTempUsageDetail_20' ) start [2025-02-02 07:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384015', 'tblTempUsageDetail_20' ) end [2025-02-02 07:01:27] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:01:27] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:01:27] Production.INFO: ==4663== Releasing lock... [2025-02-02 07:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:01:27] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:02:05 [end_date_ymd] => 2025-02-02 07:02:05 [RateCDR] => 1 ) [2025-02-02 07:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 04:02:05' and `end` < '2025-02-02 07:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 07:02:19] Production.INFO: count ==96 [2025-02-02 07:02:19] Production.ERROR: pbx CDR StartTime 2025-02-02 04:02:05 - End Time 2025-02-02 07:02:05 [2025-02-02 07:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384020', 'tblTempUsageDetail_20' ) start [2025-02-02 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384020', 'tblTempUsageDetail_20' ) end [2025-02-02 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384020', 'tblTempVendorCDR_20' ) start [2025-02-02 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384020', 'tblTempVendorCDR_20' ) end [2025-02-02 07:02:19] Production.INFO: ProcessCDR(1,14384020,1,1,2) [2025-02-02 07:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384020', 'tblTempUsageDetail_20' ) start [2025-02-02 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384020', 'tblTempUsageDetail_20' ) end [2025-02-02 07:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:02:22] Production.INFO: ==4740== Releasing lock... [2025-02-02 07:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:02:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:03:05 [end_date_ymd] => 2025-02-02 07:03:05 [RateCDR] => 1 ) [2025-02-02 07:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 04:03:05' and `end` < '2025-02-02 07:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 07:03:19] Production.INFO: count ==96 [2025-02-02 07:03:19] Production.ERROR: pbx CDR StartTime 2025-02-02 04:03:05 - End Time 2025-02-02 07:03:05 [2025-02-02 07:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384025', 'tblTempUsageDetail_20' ) start [2025-02-02 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384025', 'tblTempUsageDetail_20' ) end [2025-02-02 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384025', 'tblTempVendorCDR_20' ) start [2025-02-02 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384025', 'tblTempVendorCDR_20' ) end [2025-02-02 07:03:19] Production.INFO: ProcessCDR(1,14384025,1,1,2) [2025-02-02 07:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384025', 'tblTempUsageDetail_20' ) start [2025-02-02 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384025', 'tblTempUsageDetail_20' ) end [2025-02-02 07:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:03:23] Production.INFO: ==4814== Releasing lock... [2025-02-02 07:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:03:23] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:04:05 [end_date_ymd] => 2025-02-02 07:04:05 [RateCDR] => 1 ) [2025-02-02 07:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 04:04:05' and `end` < '2025-02-02 07:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 07:04:19] Production.INFO: count ==96 [2025-02-02 07:04:19] Production.ERROR: pbx CDR StartTime 2025-02-02 04:04:05 - End Time 2025-02-02 07:04:05 [2025-02-02 07:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384030', 'tblTempUsageDetail_20' ) start [2025-02-02 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384030', 'tblTempUsageDetail_20' ) end [2025-02-02 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384030', 'tblTempVendorCDR_20' ) start [2025-02-02 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384030', 'tblTempVendorCDR_20' ) end [2025-02-02 07:04:19] Production.INFO: ProcessCDR(1,14384030,1,1,2) [2025-02-02 07:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384030', 'tblTempUsageDetail_20' ) start [2025-02-02 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384030', 'tblTempUsageDetail_20' ) end [2025-02-02 07:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:04:22] Production.INFO: ==4929== Releasing lock... [2025-02-02 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:04:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:05:05 [end_date_ymd] => 2025-02-02 07:05:05 [RateCDR] => 1 ) [2025-02-02 07:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 04:05:05' and `end` < '2025-02-02 07:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 07:05:18] Production.INFO: count ==96 [2025-02-02 07:05:18] Production.ERROR: pbx CDR StartTime 2025-02-02 04:05:05 - End Time 2025-02-02 07:05:05 [2025-02-02 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384035', 'tblTempUsageDetail_20' ) start [2025-02-02 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384035', 'tblTempUsageDetail_20' ) end [2025-02-02 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384035', 'tblTempVendorCDR_20' ) start [2025-02-02 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384035', 'tblTempVendorCDR_20' ) end [2025-02-02 07:05:18] Production.INFO: ProcessCDR(1,14384035,1,1,2) [2025-02-02 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384035', 'tblTempUsageDetail_20' ) start [2025-02-02 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384035', 'tblTempUsageDetail_20' ) end [2025-02-02 07:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:05:21] Production.INFO: ==5081== Releasing lock... [2025-02-02 07:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:05:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:06:05 [end_date_ymd] => 2025-02-02 07:06:05 [RateCDR] => 1 ) [2025-02-02 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-02 04:06:05' and `end` < '2025-02-02 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-02 07:06:19] Production.INFO: count ==96 [2025-02-02 07:06:19] Production.ERROR: pbx CDR StartTime 2025-02-02 04:06:05 - End Time 2025-02-02 07:06:05 [2025-02-02 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384040', 'tblTempUsageDetail_20' ) start [2025-02-02 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384040', 'tblTempUsageDetail_20' ) end [2025-02-02 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384040', 'tblTempVendorCDR_20' ) start [2025-02-02 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384040', 'tblTempVendorCDR_20' ) end [2025-02-02 07:06:19] Production.INFO: ProcessCDR(1,14384040,1,1,2) [2025-02-02 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384040', 'tblTempUsageDetail_20' ) start [2025-02-02 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384040', 'tblTempUsageDetail_20' ) end [2025-02-02 07:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:06:22] Production.INFO: ==5162== Releasing lock... [2025-02-02 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:06:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:07:04 [end_date_ymd] => 2025-02-02 07:07:04 [RateCDR] => 1 ) [2025-02-02 07:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 04:07:04' and `end` < '2025-02-02 07:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 07:07:18] Production.INFO: count ==96 [2025-02-02 07:07:18] Production.ERROR: pbx CDR StartTime 2025-02-02 04:07:04 - End Time 2025-02-02 07:07:04 [2025-02-02 07:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384045', 'tblTempUsageDetail_20' ) start [2025-02-02 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384045', 'tblTempUsageDetail_20' ) end [2025-02-02 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384045', 'tblTempVendorCDR_20' ) start [2025-02-02 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384045', 'tblTempVendorCDR_20' ) end [2025-02-02 07:07:18] Production.INFO: ProcessCDR(1,14384045,1,1,2) [2025-02-02 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384045', 'tblTempUsageDetail_20' ) start [2025-02-02 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384045', 'tblTempUsageDetail_20' ) end [2025-02-02 07:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:07:21] Production.INFO: ==5234== Releasing lock... [2025-02-02 07:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:07:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:08:05 [end_date_ymd] => 2025-02-02 07:08:05 [RateCDR] => 1 ) [2025-02-02 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-02 04:08:05' and `end` < '2025-02-02 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-02 07:08:20] Production.INFO: count ==96 [2025-02-02 07:08:20] Production.ERROR: pbx CDR StartTime 2025-02-02 04:08:05 - End Time 2025-02-02 07:08:05 [2025-02-02 07:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384050', 'tblTempUsageDetail_20' ) start [2025-02-02 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384050', 'tblTempUsageDetail_20' ) end [2025-02-02 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384050', 'tblTempVendorCDR_20' ) start [2025-02-02 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384050', 'tblTempVendorCDR_20' ) end [2025-02-02 07:08:20] Production.INFO: ProcessCDR(1,14384050,1,1,2) [2025-02-02 07:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384050', 'tblTempUsageDetail_20' ) start [2025-02-02 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384050', 'tblTempUsageDetail_20' ) end [2025-02-02 07:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:08:23] Production.INFO: ==5393== Releasing lock... [2025-02-02 07:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:08:23] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:09:05 [end_date_ymd] => 2025-02-02 07:09:05 [RateCDR] => 1 ) [2025-02-02 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-02 04:09:05' and `end` < '2025-02-02 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-02 07:09:19] Production.INFO: count ==96 [2025-02-02 07:09:19] Production.ERROR: pbx CDR StartTime 2025-02-02 04:09:05 - End Time 2025-02-02 07:09:05 [2025-02-02 07:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384055', 'tblTempUsageDetail_20' ) start [2025-02-02 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384055', 'tblTempUsageDetail_20' ) end [2025-02-02 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384055', 'tblTempVendorCDR_20' ) start [2025-02-02 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384055', 'tblTempVendorCDR_20' ) end [2025-02-02 07:09:19] Production.INFO: ProcessCDR(1,14384055,1,1,2) [2025-02-02 07:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384055', 'tblTempUsageDetail_20' ) start [2025-02-02 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384055', 'tblTempUsageDetail_20' ) end [2025-02-02 07:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:09:22] Production.INFO: ==5482== Releasing lock... [2025-02-02 07:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:09:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:10:06 [end_date_ymd] => 2025-02-02 07:10:06 [RateCDR] => 1 ) [2025-02-02 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-02 04:10:06' and `end` < '2025-02-02 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-02 07:10:19] Production.INFO: count ==96 [2025-02-02 07:10:19] Production.ERROR: pbx CDR StartTime 2025-02-02 04:10:06 - End Time 2025-02-02 07:10:06 [2025-02-02 07:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384061', 'tblTempUsageDetail_20' ) start [2025-02-02 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384061', 'tblTempUsageDetail_20' ) end [2025-02-02 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384061', 'tblTempVendorCDR_20' ) start [2025-02-02 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384061', 'tblTempVendorCDR_20' ) end [2025-02-02 07:10:19] Production.INFO: ProcessCDR(1,14384061,1,1,2) [2025-02-02 07:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384061', 'tblTempUsageDetail_20' ) start [2025-02-02 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384061', 'tblTempUsageDetail_20' ) end [2025-02-02 07:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:10:22] Production.INFO: ==5559== Releasing lock... [2025-02-02 07:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:10:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:11:05 [end_date_ymd] => 2025-02-02 07:11:05 [RateCDR] => 1 ) [2025-02-02 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-02 04:11:05' and `end` < '2025-02-02 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-02 07:11:19] Production.INFO: count ==96 [2025-02-02 07:11:19] Production.ERROR: pbx CDR StartTime 2025-02-02 04:11:05 - End Time 2025-02-02 07:11:05 [2025-02-02 07:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384066', 'tblTempUsageDetail_20' ) start [2025-02-02 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384066', 'tblTempUsageDetail_20' ) end [2025-02-02 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384066', 'tblTempVendorCDR_20' ) start [2025-02-02 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384066', 'tblTempVendorCDR_20' ) end [2025-02-02 07:11:19] Production.INFO: ProcessCDR(1,14384066,1,1,2) [2025-02-02 07:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384066', 'tblTempUsageDetail_20' ) start [2025-02-02 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384066', 'tblTempUsageDetail_20' ) end [2025-02-02 07:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:11:23] Production.INFO: ==5638== Releasing lock... [2025-02-02 07:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:11:23] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:12:05 [end_date_ymd] => 2025-02-02 07:12:05 [RateCDR] => 1 ) [2025-02-02 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-02 04:12:05' and `end` < '2025-02-02 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-02 07:12:18] Production.INFO: count ==96 [2025-02-02 07:12:18] Production.ERROR: pbx CDR StartTime 2025-02-02 04:12:05 - End Time 2025-02-02 07:12:05 [2025-02-02 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384071', 'tblTempUsageDetail_20' ) start [2025-02-02 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384071', 'tblTempUsageDetail_20' ) end [2025-02-02 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384071', 'tblTempVendorCDR_20' ) start [2025-02-02 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384071', 'tblTempVendorCDR_20' ) end [2025-02-02 07:12:18] Production.INFO: ProcessCDR(1,14384071,1,1,2) [2025-02-02 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384071', 'tblTempUsageDetail_20' ) start [2025-02-02 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384071', 'tblTempUsageDetail_20' ) end [2025-02-02 07:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:12:21] Production.INFO: ==5787== Releasing lock... [2025-02-02 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:12:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:13:05 [end_date_ymd] => 2025-02-02 07:13:05 [RateCDR] => 1 ) [2025-02-02 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-02 04:13:05' and `end` < '2025-02-02 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-02 07:13:18] Production.INFO: count ==96 [2025-02-02 07:13:18] Production.ERROR: pbx CDR StartTime 2025-02-02 04:13:05 - End Time 2025-02-02 07:13:05 [2025-02-02 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384076', 'tblTempUsageDetail_20' ) start [2025-02-02 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384076', 'tblTempUsageDetail_20' ) end [2025-02-02 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384076', 'tblTempVendorCDR_20' ) start [2025-02-02 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384076', 'tblTempVendorCDR_20' ) end [2025-02-02 07:13:18] Production.INFO: ProcessCDR(1,14384076,1,1,2) [2025-02-02 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384076', 'tblTempUsageDetail_20' ) start [2025-02-02 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384076', 'tblTempUsageDetail_20' ) end [2025-02-02 07:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:13:21] Production.INFO: ==5863== Releasing lock... [2025-02-02 07:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:13:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:14:05 [end_date_ymd] => 2025-02-02 07:14:05 [RateCDR] => 1 ) [2025-02-02 07:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 04:14:05' and `end` < '2025-02-02 07:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 07:14:18] Production.INFO: count ==96 [2025-02-02 07:14:18] Production.ERROR: pbx CDR StartTime 2025-02-02 04:14:05 - End Time 2025-02-02 07:14:05 [2025-02-02 07:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384081', 'tblTempUsageDetail_20' ) start [2025-02-02 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384081', 'tblTempUsageDetail_20' ) end [2025-02-02 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384081', 'tblTempVendorCDR_20' ) start [2025-02-02 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384081', 'tblTempVendorCDR_20' ) end [2025-02-02 07:14:18] Production.INFO: ProcessCDR(1,14384081,1,1,2) [2025-02-02 07:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384081', 'tblTempUsageDetail_20' ) start [2025-02-02 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384081', 'tblTempUsageDetail_20' ) end [2025-02-02 07:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:14:21] Production.INFO: ==5938== Releasing lock... [2025-02-02 07:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:14:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:15:05 [end_date_ymd] => 2025-02-02 07:15:05 [RateCDR] => 1 ) [2025-02-02 07:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 04:15:05' and `end` < '2025-02-02 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-02 07:15:19] Production.INFO: count ==96 [2025-02-02 07:15:19] Production.ERROR: pbx CDR StartTime 2025-02-02 04:15:05 - End Time 2025-02-02 07:15:05 [2025-02-02 07:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384086', 'tblTempUsageDetail_20' ) start [2025-02-02 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384086', 'tblTempUsageDetail_20' ) end [2025-02-02 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384086', 'tblTempVendorCDR_20' ) start [2025-02-02 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384086', 'tblTempVendorCDR_20' ) end [2025-02-02 07:15:19] Production.INFO: ProcessCDR(1,14384086,1,1,2) [2025-02-02 07:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384086', 'tblTempUsageDetail_20' ) start [2025-02-02 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384086', 'tblTempUsageDetail_20' ) end [2025-02-02 07:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:15:22] Production.INFO: ==6106== Releasing lock... [2025-02-02 07:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:15:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:16:05 [end_date_ymd] => 2025-02-02 07:16:05 [RateCDR] => 1 ) [2025-02-02 07:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 04:16:05' and `end` < '2025-02-02 07:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 07:16:19] Production.INFO: count ==96 [2025-02-02 07:16:19] Production.ERROR: pbx CDR StartTime 2025-02-02 04:16:05 - End Time 2025-02-02 07:16:05 [2025-02-02 07:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384091', 'tblTempUsageDetail_20' ) start [2025-02-02 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384091', 'tblTempUsageDetail_20' ) end [2025-02-02 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384091', 'tblTempVendorCDR_20' ) start [2025-02-02 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384091', 'tblTempVendorCDR_20' ) end [2025-02-02 07:16:19] Production.INFO: ProcessCDR(1,14384091,1,1,2) [2025-02-02 07:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384091', 'tblTempUsageDetail_20' ) start [2025-02-02 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384091', 'tblTempUsageDetail_20' ) end [2025-02-02 07:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:16:22] Production.INFO: ==6195== Releasing lock... [2025-02-02 07:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:16:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:17:05 [end_date_ymd] => 2025-02-02 07:17:05 [RateCDR] => 1 ) [2025-02-02 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-02 04:17:05' and `end` < '2025-02-02 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-02 07:17:18] Production.INFO: count ==96 [2025-02-02 07:17:19] Production.ERROR: pbx CDR StartTime 2025-02-02 04:17:05 - End Time 2025-02-02 07:17:05 [2025-02-02 07:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384096', 'tblTempUsageDetail_20' ) start [2025-02-02 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384096', 'tblTempUsageDetail_20' ) end [2025-02-02 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384096', 'tblTempVendorCDR_20' ) start [2025-02-02 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384096', 'tblTempVendorCDR_20' ) end [2025-02-02 07:17:19] Production.INFO: ProcessCDR(1,14384096,1,1,2) [2025-02-02 07:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384096', 'tblTempUsageDetail_20' ) start [2025-02-02 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384096', 'tblTempUsageDetail_20' ) end [2025-02-02 07:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:17:21] Production.INFO: ==6265== Releasing lock... [2025-02-02 07:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:17:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:18:05 [end_date_ymd] => 2025-02-02 07:18:05 [RateCDR] => 1 ) [2025-02-02 07:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 04:18:05' and `end` < '2025-02-02 07:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 07:18:19] Production.INFO: count ==96 [2025-02-02 07:18:19] Production.ERROR: pbx CDR StartTime 2025-02-02 04:18:05 - End Time 2025-02-02 07:18:05 [2025-02-02 07:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384101', 'tblTempUsageDetail_20' ) start [2025-02-02 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384101', 'tblTempUsageDetail_20' ) end [2025-02-02 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384101', 'tblTempVendorCDR_20' ) start [2025-02-02 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384101', 'tblTempVendorCDR_20' ) end [2025-02-02 07:18:19] Production.INFO: ProcessCDR(1,14384101,1,1,2) [2025-02-02 07:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384101', 'tblTempUsageDetail_20' ) start [2025-02-02 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384101', 'tblTempUsageDetail_20' ) end [2025-02-02 07:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:18:22] Production.INFO: ==6341== Releasing lock... [2025-02-02 07:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:18:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:19:05 [end_date_ymd] => 2025-02-02 07:19:05 [RateCDR] => 1 ) [2025-02-02 07: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-02 04:19:05' and `end` < '2025-02-02 07: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-02 07:19:18] Production.INFO: count ==96 [2025-02-02 07:19:18] Production.ERROR: pbx CDR StartTime 2025-02-02 04:19:05 - End Time 2025-02-02 07:19:05 [2025-02-02 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384106', 'tblTempUsageDetail_20' ) start [2025-02-02 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384106', 'tblTempUsageDetail_20' ) end [2025-02-02 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384106', 'tblTempVendorCDR_20' ) start [2025-02-02 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384106', 'tblTempVendorCDR_20' ) end [2025-02-02 07:19:18] Production.INFO: ProcessCDR(1,14384106,1,1,2) [2025-02-02 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384106', 'tblTempUsageDetail_20' ) start [2025-02-02 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384106', 'tblTempUsageDetail_20' ) end [2025-02-02 07:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:19:21] Production.INFO: ==6454== Releasing lock... [2025-02-02 07:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:19:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:20:06 [end_date_ymd] => 2025-02-02 07:20:06 [RateCDR] => 1 ) [2025-02-02 07:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 04:20:06' and `end` < '2025-02-02 07:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 07:20:19] Production.INFO: count ==96 [2025-02-02 07:20:19] Production.ERROR: pbx CDR StartTime 2025-02-02 04:20:06 - End Time 2025-02-02 07:20:06 [2025-02-02 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384112', 'tblTempUsageDetail_20' ) start [2025-02-02 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384112', 'tblTempUsageDetail_20' ) end [2025-02-02 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384112', 'tblTempVendorCDR_20' ) start [2025-02-02 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384112', 'tblTempVendorCDR_20' ) end [2025-02-02 07:20:19] Production.INFO: ProcessCDR(1,14384112,1,1,2) [2025-02-02 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384112', 'tblTempUsageDetail_20' ) start [2025-02-02 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384112', 'tblTempUsageDetail_20' ) end [2025-02-02 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:20:22] Production.INFO: ==6532== Releasing lock... [2025-02-02 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:20:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:21:04 [end_date_ymd] => 2025-02-02 07:21:04 [RateCDR] => 1 ) [2025-02-02 07: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-02 04:21:04' and `end` < '2025-02-02 07: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-02 07:21:18] Production.INFO: count ==96 [2025-02-02 07:21:18] Production.ERROR: pbx CDR StartTime 2025-02-02 04:21:04 - End Time 2025-02-02 07:21:04 [2025-02-02 07:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384117', 'tblTempUsageDetail_20' ) start [2025-02-02 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384117', 'tblTempUsageDetail_20' ) end [2025-02-02 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384117', 'tblTempVendorCDR_20' ) start [2025-02-02 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384117', 'tblTempVendorCDR_20' ) end [2025-02-02 07:21:18] Production.INFO: ProcessCDR(1,14384117,1,1,2) [2025-02-02 07:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384117', 'tblTempUsageDetail_20' ) start [2025-02-02 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384117', 'tblTempUsageDetail_20' ) end [2025-02-02 07:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:21:21] Production.INFO: ==6611== Releasing lock... [2025-02-02 07:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:21:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:22:06 [end_date_ymd] => 2025-02-02 07:22:06 [RateCDR] => 1 ) [2025-02-02 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-02 04:22:06' and `end` < '2025-02-02 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-02 07:22:18] Production.INFO: count ==96 [2025-02-02 07:22:18] Production.ERROR: pbx CDR StartTime 2025-02-02 04:22:06 - End Time 2025-02-02 07:22:06 [2025-02-02 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384122', 'tblTempUsageDetail_20' ) start [2025-02-02 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384122', 'tblTempUsageDetail_20' ) end [2025-02-02 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384122', 'tblTempVendorCDR_20' ) start [2025-02-02 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384122', 'tblTempVendorCDR_20' ) end [2025-02-02 07:22:18] Production.INFO: ProcessCDR(1,14384122,1,1,2) [2025-02-02 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384122', 'tblTempUsageDetail_20' ) start [2025-02-02 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384122', 'tblTempUsageDetail_20' ) end [2025-02-02 07:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:22:21] Production.INFO: ==6705== Releasing lock... [2025-02-02 07:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:22:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:23:05 [end_date_ymd] => 2025-02-02 07:23:05 [RateCDR] => 1 ) [2025-02-02 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-02 04:23:05' and `end` < '2025-02-02 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-02 07:23:18] Production.INFO: count ==96 [2025-02-02 07:23:18] Production.ERROR: pbx CDR StartTime 2025-02-02 04:23:05 - End Time 2025-02-02 07:23:05 [2025-02-02 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384127', 'tblTempUsageDetail_20' ) start [2025-02-02 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384127', 'tblTempUsageDetail_20' ) end [2025-02-02 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384127', 'tblTempVendorCDR_20' ) start [2025-02-02 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384127', 'tblTempVendorCDR_20' ) end [2025-02-02 07:23:18] Production.INFO: ProcessCDR(1,14384127,1,1,2) [2025-02-02 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384127', 'tblTempUsageDetail_20' ) start [2025-02-02 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384127', 'tblTempUsageDetail_20' ) end [2025-02-02 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:23:21] Production.INFO: ==6780== Releasing lock... [2025-02-02 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:23:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:24:05 [end_date_ymd] => 2025-02-02 07:24:05 [RateCDR] => 1 ) [2025-02-02 07:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 04:24:05' and `end` < '2025-02-02 07:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 07:24:18] Production.INFO: count ==96 [2025-02-02 07:24:18] Production.ERROR: pbx CDR StartTime 2025-02-02 04:24:05 - End Time 2025-02-02 07:24:05 [2025-02-02 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384132', 'tblTempUsageDetail_20' ) start [2025-02-02 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384132', 'tblTempUsageDetail_20' ) end [2025-02-02 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384132', 'tblTempVendorCDR_20' ) start [2025-02-02 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384132', 'tblTempVendorCDR_20' ) end [2025-02-02 07:24:18] Production.INFO: ProcessCDR(1,14384132,1,1,2) [2025-02-02 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384132', 'tblTempUsageDetail_20' ) start [2025-02-02 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384132', 'tblTempUsageDetail_20' ) end [2025-02-02 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:24:21] Production.INFO: ==6856== Releasing lock... [2025-02-02 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:24:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:25:05 [end_date_ymd] => 2025-02-02 07:25:05 [RateCDR] => 1 ) [2025-02-02 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 04:25:05' and `end` < '2025-02-02 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 07:25:18] Production.INFO: count ==96 [2025-02-02 07:25:18] Production.ERROR: pbx CDR StartTime 2025-02-02 04:25:05 - End Time 2025-02-02 07:25:05 [2025-02-02 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384137', 'tblTempUsageDetail_20' ) start [2025-02-02 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384137', 'tblTempUsageDetail_20' ) end [2025-02-02 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384137', 'tblTempVendorCDR_20' ) start [2025-02-02 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384137', 'tblTempVendorCDR_20' ) end [2025-02-02 07:25:18] Production.INFO: ProcessCDR(1,14384137,1,1,2) [2025-02-02 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384137', 'tblTempUsageDetail_20' ) start [2025-02-02 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384137', 'tblTempUsageDetail_20' ) end [2025-02-02 07:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:25:22] Production.INFO: ==6929== Releasing lock... [2025-02-02 07:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:25:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:26:05 [end_date_ymd] => 2025-02-02 07:26:05 [RateCDR] => 1 ) [2025-02-02 07:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 04:26:05' and `end` < '2025-02-02 07:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 07:26:18] Production.INFO: count ==96 [2025-02-02 07:26:18] Production.ERROR: pbx CDR StartTime 2025-02-02 04:26:05 - End Time 2025-02-02 07:26:05 [2025-02-02 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384142', 'tblTempUsageDetail_20' ) start [2025-02-02 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384142', 'tblTempUsageDetail_20' ) end [2025-02-02 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384142', 'tblTempVendorCDR_20' ) start [2025-02-02 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384142', 'tblTempVendorCDR_20' ) end [2025-02-02 07:26:18] Production.INFO: ProcessCDR(1,14384142,1,1,2) [2025-02-02 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384142', 'tblTempUsageDetail_20' ) start [2025-02-02 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384142', 'tblTempUsageDetail_20' ) end [2025-02-02 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:26:21] Production.INFO: ==7006== Releasing lock... [2025-02-02 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:26:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:27:05 [end_date_ymd] => 2025-02-02 07:27:05 [RateCDR] => 1 ) [2025-02-02 07:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 04:27:05' and `end` < '2025-02-02 07:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 07:27:18] Production.INFO: count ==96 [2025-02-02 07:27:18] Production.ERROR: pbx CDR StartTime 2025-02-02 04:27:05 - End Time 2025-02-02 07:27:05 [2025-02-02 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384147', 'tblTempUsageDetail_20' ) start [2025-02-02 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384147', 'tblTempUsageDetail_20' ) end [2025-02-02 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384147', 'tblTempVendorCDR_20' ) start [2025-02-02 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384147', 'tblTempVendorCDR_20' ) end [2025-02-02 07:27:18] Production.INFO: ProcessCDR(1,14384147,1,1,2) [2025-02-02 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384147', 'tblTempUsageDetail_20' ) start [2025-02-02 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384147', 'tblTempUsageDetail_20' ) end [2025-02-02 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:27:21] Production.INFO: ==7080== Releasing lock... [2025-02-02 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:27:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:28:04 [end_date_ymd] => 2025-02-02 07:28:04 [RateCDR] => 1 ) [2025-02-02 07: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-02 04:28:04' and `end` < '2025-02-02 07: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-02 07:28:17] Production.INFO: count ==96 [2025-02-02 07:28:17] Production.ERROR: pbx CDR StartTime 2025-02-02 04:28:04 - End Time 2025-02-02 07:28:04 [2025-02-02 07:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384152', 'tblTempUsageDetail_20' ) start [2025-02-02 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384152', 'tblTempUsageDetail_20' ) end [2025-02-02 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384152', 'tblTempVendorCDR_20' ) start [2025-02-02 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384152', 'tblTempVendorCDR_20' ) end [2025-02-02 07:28:17] Production.INFO: ProcessCDR(1,14384152,1,1,2) [2025-02-02 07:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384152', 'tblTempUsageDetail_20' ) start [2025-02-02 07:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384152', 'tblTempUsageDetail_20' ) end [2025-02-02 07:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:28:20] Production.INFO: ==7153== Releasing lock... [2025-02-02 07:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:28:20] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:29:06 [end_date_ymd] => 2025-02-02 07:29:06 [RateCDR] => 1 ) [2025-02-02 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-02 04:29:06' and `end` < '2025-02-02 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-02 07:29:19] Production.INFO: count ==96 [2025-02-02 07:29:19] Production.ERROR: pbx CDR StartTime 2025-02-02 04:29:06 - End Time 2025-02-02 07:29:06 [2025-02-02 07:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384157', 'tblTempUsageDetail_20' ) start [2025-02-02 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384157', 'tblTempUsageDetail_20' ) end [2025-02-02 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384157', 'tblTempVendorCDR_20' ) start [2025-02-02 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384157', 'tblTempVendorCDR_20' ) end [2025-02-02 07:29:19] Production.INFO: ProcessCDR(1,14384157,1,1,2) [2025-02-02 07:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384157', 'tblTempUsageDetail_20' ) start [2025-02-02 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384157', 'tblTempUsageDetail_20' ) end [2025-02-02 07:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:29:22] Production.INFO: ==7245== Releasing lock... [2025-02-02 07:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:29:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:30:06 [end_date_ymd] => 2025-02-02 07:30:06 [RateCDR] => 1 ) [2025-02-02 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-02 04:30:06' and `end` < '2025-02-02 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-02 07:30:18] Production.INFO: count ==93 [2025-02-02 07:30:18] Production.ERROR: pbx CDR StartTime 2025-02-02 04:30:06 - End Time 2025-02-02 07:30:06 [2025-02-02 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384162', 'tblTempUsageDetail_20' ) start [2025-02-02 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384162', 'tblTempUsageDetail_20' ) end [2025-02-02 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384162', 'tblTempVendorCDR_20' ) start [2025-02-02 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384162', 'tblTempVendorCDR_20' ) end [2025-02-02 07:30:18] Production.INFO: ProcessCDR(1,14384162,1,1,2) [2025-02-02 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384162', 'tblTempUsageDetail_20' ) start [2025-02-02 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384162', 'tblTempUsageDetail_20' ) end [2025-02-02 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:30:22] Production.INFO: ==7322== Releasing lock... [2025-02-02 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:30:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:31:05 [end_date_ymd] => 2025-02-02 07:31:05 [RateCDR] => 1 ) [2025-02-02 07:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 04:31:05' and `end` < '2025-02-02 07:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 07:31:18] Production.INFO: count ==93 [2025-02-02 07:31:18] Production.ERROR: pbx CDR StartTime 2025-02-02 04:31:05 - End Time 2025-02-02 07:31:05 [2025-02-02 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384168', 'tblTempUsageDetail_20' ) start [2025-02-02 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384168', 'tblTempUsageDetail_20' ) end [2025-02-02 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384168', 'tblTempVendorCDR_20' ) start [2025-02-02 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384168', 'tblTempVendorCDR_20' ) end [2025-02-02 07:31:18] Production.INFO: ProcessCDR(1,14384168,1,1,2) [2025-02-02 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384168', 'tblTempUsageDetail_20' ) start [2025-02-02 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384168', 'tblTempUsageDetail_20' ) end [2025-02-02 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:31:21] Production.INFO: ==7400== Releasing lock... [2025-02-02 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:31:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:32:05 [end_date_ymd] => 2025-02-02 07:32:05 [RateCDR] => 1 ) [2025-02-02 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-02 04:32:05' and `end` < '2025-02-02 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-02 07:32:18] Production.INFO: count ==93 [2025-02-02 07:32:18] Production.ERROR: pbx CDR StartTime 2025-02-02 04:32:05 - End Time 2025-02-02 07:32:05 [2025-02-02 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384173', 'tblTempUsageDetail_20' ) start [2025-02-02 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384173', 'tblTempUsageDetail_20' ) end [2025-02-02 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384173', 'tblTempVendorCDR_20' ) start [2025-02-02 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384173', 'tblTempVendorCDR_20' ) end [2025-02-02 07:32:18] Production.INFO: ProcessCDR(1,14384173,1,1,2) [2025-02-02 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384173', 'tblTempUsageDetail_20' ) start [2025-02-02 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384173', 'tblTempUsageDetail_20' ) end [2025-02-02 07:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:32:22] Production.INFO: ==7470== Releasing lock... [2025-02-02 07:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:32:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:33:05 [end_date_ymd] => 2025-02-02 07:33:05 [RateCDR] => 1 ) [2025-02-02 07:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 04:33:05' and `end` < '2025-02-02 07:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 07:33:18] Production.INFO: count ==93 [2025-02-02 07:33:18] Production.ERROR: pbx CDR StartTime 2025-02-02 04:33:05 - End Time 2025-02-02 07:33:05 [2025-02-02 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384178', 'tblTempUsageDetail_20' ) start [2025-02-02 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384178', 'tblTempUsageDetail_20' ) end [2025-02-02 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384178', 'tblTempVendorCDR_20' ) start [2025-02-02 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384178', 'tblTempVendorCDR_20' ) end [2025-02-02 07:33:18] Production.INFO: ProcessCDR(1,14384178,1,1,2) [2025-02-02 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384178', 'tblTempUsageDetail_20' ) start [2025-02-02 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384178', 'tblTempUsageDetail_20' ) end [2025-02-02 07:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:33:21] Production.INFO: ==7544== Releasing lock... [2025-02-02 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:33:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:34:05 [end_date_ymd] => 2025-02-02 07:34:05 [RateCDR] => 1 ) [2025-02-02 07:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 04:34:05' and `end` < '2025-02-02 07:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 07:34:19] Production.INFO: count ==93 [2025-02-02 07:34:19] Production.ERROR: pbx CDR StartTime 2025-02-02 04:34:05 - End Time 2025-02-02 07:34:05 [2025-02-02 07:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384183', 'tblTempUsageDetail_20' ) start [2025-02-02 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384183', 'tblTempUsageDetail_20' ) end [2025-02-02 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384183', 'tblTempVendorCDR_20' ) start [2025-02-02 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384183', 'tblTempVendorCDR_20' ) end [2025-02-02 07:34:19] Production.INFO: ProcessCDR(1,14384183,1,1,2) [2025-02-02 07:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384183', 'tblTempUsageDetail_20' ) start [2025-02-02 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384183', 'tblTempUsageDetail_20' ) end [2025-02-02 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:34:21] Production.INFO: ==7675== Releasing lock... [2025-02-02 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:34:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:35:05 [end_date_ymd] => 2025-02-02 07:35:05 [RateCDR] => 1 ) [2025-02-02 07:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 04:35:05' and `end` < '2025-02-02 07:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 07:35:18] Production.INFO: count ==93 [2025-02-02 07:35:18] Production.ERROR: pbx CDR StartTime 2025-02-02 04:35:05 - End Time 2025-02-02 07:35:05 [2025-02-02 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384188', 'tblTempUsageDetail_20' ) start [2025-02-02 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384188', 'tblTempUsageDetail_20' ) end [2025-02-02 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384188', 'tblTempVendorCDR_20' ) start [2025-02-02 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384188', 'tblTempVendorCDR_20' ) end [2025-02-02 07:35:18] Production.INFO: ProcessCDR(1,14384188,1,1,2) [2025-02-02 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384188', 'tblTempUsageDetail_20' ) start [2025-02-02 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384188', 'tblTempUsageDetail_20' ) end [2025-02-02 07:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:35:21] Production.INFO: ==7751== Releasing lock... [2025-02-02 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:35:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:36:05 [end_date_ymd] => 2025-02-02 07:36:05 [RateCDR] => 1 ) [2025-02-02 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-02 04:36:05' and `end` < '2025-02-02 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-02 07:36:17] Production.INFO: count ==93 [2025-02-02 07:36:17] Production.ERROR: pbx CDR StartTime 2025-02-02 04:36:05 - End Time 2025-02-02 07:36:05 [2025-02-02 07:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384193', 'tblTempUsageDetail_20' ) start [2025-02-02 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384193', 'tblTempUsageDetail_20' ) end [2025-02-02 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384193', 'tblTempVendorCDR_20' ) start [2025-02-02 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384193', 'tblTempVendorCDR_20' ) end [2025-02-02 07:36:17] Production.INFO: ProcessCDR(1,14384193,1,1,2) [2025-02-02 07:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384193', 'tblTempUsageDetail_20' ) start [2025-02-02 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384193', 'tblTempUsageDetail_20' ) end [2025-02-02 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:36:21] Production.INFO: ==7847== Releasing lock... [2025-02-02 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:36:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:37:05 [end_date_ymd] => 2025-02-02 07:37:05 [RateCDR] => 1 ) [2025-02-02 07:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 04:37:05' and `end` < '2025-02-02 07:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 07:37:18] Production.INFO: count ==93 [2025-02-02 07:37:18] Production.ERROR: pbx CDR StartTime 2025-02-02 04:37:05 - End Time 2025-02-02 07:37:05 [2025-02-02 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384198', 'tblTempUsageDetail_20' ) start [2025-02-02 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384198', 'tblTempUsageDetail_20' ) end [2025-02-02 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384198', 'tblTempVendorCDR_20' ) start [2025-02-02 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384198', 'tblTempVendorCDR_20' ) end [2025-02-02 07:37:18] Production.INFO: ProcessCDR(1,14384198,1,1,2) [2025-02-02 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384198', 'tblTempUsageDetail_20' ) start [2025-02-02 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384198', 'tblTempUsageDetail_20' ) end [2025-02-02 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:37:21] Production.INFO: ==7921== Releasing lock... [2025-02-02 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:37:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:38:05 [end_date_ymd] => 2025-02-02 07:38:05 [RateCDR] => 1 ) [2025-02-02 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-02 04:38:05' and `end` < '2025-02-02 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-02 07:38:18] Production.INFO: count ==93 [2025-02-02 07:38:18] Production.ERROR: pbx CDR StartTime 2025-02-02 04:38:05 - End Time 2025-02-02 07:38:05 [2025-02-02 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384203', 'tblTempUsageDetail_20' ) start [2025-02-02 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384203', 'tblTempUsageDetail_20' ) end [2025-02-02 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384203', 'tblTempVendorCDR_20' ) start [2025-02-02 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384203', 'tblTempVendorCDR_20' ) end [2025-02-02 07:38:18] Production.INFO: ProcessCDR(1,14384203,1,1,2) [2025-02-02 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384203', 'tblTempUsageDetail_20' ) start [2025-02-02 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384203', 'tblTempUsageDetail_20' ) end [2025-02-02 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:38:21] Production.INFO: ==7991== Releasing lock... [2025-02-02 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:38:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:39:05 [end_date_ymd] => 2025-02-02 07:39:05 [RateCDR] => 1 ) [2025-02-02 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-02 04:39:05' and `end` < '2025-02-02 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-02 07:39:18] Production.INFO: count ==93 [2025-02-02 07:39:18] Production.ERROR: pbx CDR StartTime 2025-02-02 04:39:05 - End Time 2025-02-02 07:39:05 [2025-02-02 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384208', 'tblTempUsageDetail_20' ) start [2025-02-02 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384208', 'tblTempUsageDetail_20' ) end [2025-02-02 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384208', 'tblTempVendorCDR_20' ) start [2025-02-02 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384208', 'tblTempVendorCDR_20' ) end [2025-02-02 07:39:18] Production.INFO: ProcessCDR(1,14384208,1,1,2) [2025-02-02 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384208', 'tblTempUsageDetail_20' ) start [2025-02-02 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384208', 'tblTempUsageDetail_20' ) end [2025-02-02 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:39:21] Production.INFO: ==8063== Releasing lock... [2025-02-02 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:39:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:40:06 [end_date_ymd] => 2025-02-02 07:40:06 [RateCDR] => 1 ) [2025-02-02 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-02 04:40:06' and `end` < '2025-02-02 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-02 07:40:20] Production.INFO: count ==89 [2025-02-02 07:40:20] Production.ERROR: pbx CDR StartTime 2025-02-02 04:40:06 - End Time 2025-02-02 07:40:06 [2025-02-02 07:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384214', 'tblTempUsageDetail_20' ) start [2025-02-02 07:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384214', 'tblTempUsageDetail_20' ) end [2025-02-02 07:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384214', 'tblTempVendorCDR_20' ) start [2025-02-02 07:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384214', 'tblTempVendorCDR_20' ) end [2025-02-02 07:40:20] Production.INFO: ProcessCDR(1,14384214,1,1,2) [2025-02-02 07:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384214', 'tblTempUsageDetail_20' ) start [2025-02-02 07:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384214', 'tblTempUsageDetail_20' ) end [2025-02-02 07:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:40:23] Production.INFO: ==8138== Releasing lock... [2025-02-02 07:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:40:23] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:41:05 [end_date_ymd] => 2025-02-02 07:41:05 [RateCDR] => 1 ) [2025-02-02 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-02 04:41:05' and `end` < '2025-02-02 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-02 07:41:18] Production.INFO: count ==85 [2025-02-02 07:41:18] Production.ERROR: pbx CDR StartTime 2025-02-02 04:41:05 - End Time 2025-02-02 07:41:05 [2025-02-02 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384219', 'tblTempUsageDetail_20' ) start [2025-02-02 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384219', 'tblTempUsageDetail_20' ) end [2025-02-02 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384219', 'tblTempVendorCDR_20' ) start [2025-02-02 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384219', 'tblTempVendorCDR_20' ) end [2025-02-02 07:41:18] Production.INFO: ProcessCDR(1,14384219,1,1,2) [2025-02-02 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384219', 'tblTempUsageDetail_20' ) start [2025-02-02 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384219', 'tblTempUsageDetail_20' ) end [2025-02-02 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:41:21] Production.INFO: ==8214== Releasing lock... [2025-02-02 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:41:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:42:05 [end_date_ymd] => 2025-02-02 07:42:05 [RateCDR] => 1 ) [2025-02-02 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-02 04:42:05' and `end` < '2025-02-02 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-02 07:42:18] Production.INFO: count ==85 [2025-02-02 07:42:18] Production.ERROR: pbx CDR StartTime 2025-02-02 04:42:05 - End Time 2025-02-02 07:42:05 [2025-02-02 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384224', 'tblTempUsageDetail_20' ) start [2025-02-02 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384224', 'tblTempUsageDetail_20' ) end [2025-02-02 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384224', 'tblTempVendorCDR_20' ) start [2025-02-02 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384224', 'tblTempVendorCDR_20' ) end [2025-02-02 07:42:18] Production.INFO: ProcessCDR(1,14384224,1,1,2) [2025-02-02 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384224', 'tblTempUsageDetail_20' ) start [2025-02-02 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384224', 'tblTempUsageDetail_20' ) end [2025-02-02 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:42:21] Production.INFO: ==8291== Releasing lock... [2025-02-02 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:42:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:43:05 [end_date_ymd] => 2025-02-02 07:43:05 [RateCDR] => 1 ) [2025-02-02 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-02 04:43:05' and `end` < '2025-02-02 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-02 07:43:18] Production.INFO: count ==85 [2025-02-02 07:43:18] Production.ERROR: pbx CDR StartTime 2025-02-02 04:43:05 - End Time 2025-02-02 07:43:05 [2025-02-02 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384229', 'tblTempUsageDetail_20' ) start [2025-02-02 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384229', 'tblTempUsageDetail_20' ) end [2025-02-02 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384229', 'tblTempVendorCDR_20' ) start [2025-02-02 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384229', 'tblTempVendorCDR_20' ) end [2025-02-02 07:43:18] Production.INFO: ProcessCDR(1,14384229,1,1,2) [2025-02-02 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384229', 'tblTempUsageDetail_20' ) start [2025-02-02 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384229', 'tblTempUsageDetail_20' ) end [2025-02-02 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:43:21] Production.INFO: ==8371== Releasing lock... [2025-02-02 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:43:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:44:05 [end_date_ymd] => 2025-02-02 07:44:05 [RateCDR] => 1 ) [2025-02-02 07:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 04:44:05' and `end` < '2025-02-02 07:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 07:44:18] Production.INFO: count ==85 [2025-02-02 07:44:18] Production.ERROR: pbx CDR StartTime 2025-02-02 04:44:05 - End Time 2025-02-02 07:44:05 [2025-02-02 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384234', 'tblTempUsageDetail_20' ) start [2025-02-02 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384234', 'tblTempUsageDetail_20' ) end [2025-02-02 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384234', 'tblTempVendorCDR_20' ) start [2025-02-02 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384234', 'tblTempVendorCDR_20' ) end [2025-02-02 07:44:18] Production.INFO: ProcessCDR(1,14384234,1,1,2) [2025-02-02 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384234', 'tblTempUsageDetail_20' ) start [2025-02-02 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384234', 'tblTempUsageDetail_20' ) end [2025-02-02 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:44:21] Production.INFO: ==8442== Releasing lock... [2025-02-02 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:44:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:45:05 [end_date_ymd] => 2025-02-02 07:45:05 [RateCDR] => 1 ) [2025-02-02 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-02 04:45:05' and `end` < '2025-02-02 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-02 07:45:18] Production.INFO: count ==85 [2025-02-02 07:45:18] Production.ERROR: pbx CDR StartTime 2025-02-02 04:45:05 - End Time 2025-02-02 07:45:05 [2025-02-02 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384239', 'tblTempUsageDetail_20' ) start [2025-02-02 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384239', 'tblTempUsageDetail_20' ) end [2025-02-02 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384239', 'tblTempVendorCDR_20' ) start [2025-02-02 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384239', 'tblTempVendorCDR_20' ) end [2025-02-02 07:45:18] Production.INFO: ProcessCDR(1,14384239,1,1,2) [2025-02-02 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384239', 'tblTempUsageDetail_20' ) start [2025-02-02 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384239', 'tblTempUsageDetail_20' ) end [2025-02-02 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:45:21] Production.INFO: ==8516== Releasing lock... [2025-02-02 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:45:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:46:05 [end_date_ymd] => 2025-02-02 07:46:05 [RateCDR] => 1 ) [2025-02-02 07:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 04:46:05' and `end` < '2025-02-02 07:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 07:46:18] Production.INFO: count ==85 [2025-02-02 07:46:18] Production.ERROR: pbx CDR StartTime 2025-02-02 04:46:05 - End Time 2025-02-02 07:46:05 [2025-02-02 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384244', 'tblTempUsageDetail_20' ) start [2025-02-02 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384244', 'tblTempUsageDetail_20' ) end [2025-02-02 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384244', 'tblTempVendorCDR_20' ) start [2025-02-02 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384244', 'tblTempVendorCDR_20' ) end [2025-02-02 07:46:18] Production.INFO: ProcessCDR(1,14384244,1,1,2) [2025-02-02 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384244', 'tblTempUsageDetail_20' ) start [2025-02-02 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384244', 'tblTempUsageDetail_20' ) end [2025-02-02 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:46:21] Production.INFO: ==8591== Releasing lock... [2025-02-02 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:46:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:47:05 [end_date_ymd] => 2025-02-02 07:47:05 [RateCDR] => 1 ) [2025-02-02 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-02 04:47:05' and `end` < '2025-02-02 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-02 07:47:18] Production.INFO: count ==85 [2025-02-02 07:47:18] Production.ERROR: pbx CDR StartTime 2025-02-02 04:47:05 - End Time 2025-02-02 07:47:05 [2025-02-02 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384249', 'tblTempUsageDetail_20' ) start [2025-02-02 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384249', 'tblTempUsageDetail_20' ) end [2025-02-02 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384249', 'tblTempVendorCDR_20' ) start [2025-02-02 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384249', 'tblTempVendorCDR_20' ) end [2025-02-02 07:47:18] Production.INFO: ProcessCDR(1,14384249,1,1,2) [2025-02-02 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384249', 'tblTempUsageDetail_20' ) start [2025-02-02 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384249', 'tblTempUsageDetail_20' ) end [2025-02-02 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:47:21] Production.INFO: ==8661== Releasing lock... [2025-02-02 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:47:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:48:06 [end_date_ymd] => 2025-02-02 07:48:06 [RateCDR] => 1 ) [2025-02-02 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-02 04:48:06' and `end` < '2025-02-02 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-02 07:48:19] Production.INFO: count ==85 [2025-02-02 07:48:19] Production.ERROR: pbx CDR StartTime 2025-02-02 04:48:06 - End Time 2025-02-02 07:48:06 [2025-02-02 07:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384254', 'tblTempUsageDetail_20' ) start [2025-02-02 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384254', 'tblTempUsageDetail_20' ) end [2025-02-02 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384254', 'tblTempVendorCDR_20' ) start [2025-02-02 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384254', 'tblTempVendorCDR_20' ) end [2025-02-02 07:48:19] Production.INFO: ProcessCDR(1,14384254,1,1,2) [2025-02-02 07:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384254', 'tblTempUsageDetail_20' ) start [2025-02-02 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384254', 'tblTempUsageDetail_20' ) end [2025-02-02 07:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:48:22] Production.INFO: ==8732== Releasing lock... [2025-02-02 07:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:48:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:49:05 [end_date_ymd] => 2025-02-02 07:49:05 [RateCDR] => 1 ) [2025-02-02 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-02 04:49:05' and `end` < '2025-02-02 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-02 07:49:18] Production.INFO: count ==85 [2025-02-02 07:49:18] Production.ERROR: pbx CDR StartTime 2025-02-02 04:49:05 - End Time 2025-02-02 07:49:05 [2025-02-02 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384259', 'tblTempUsageDetail_20' ) start [2025-02-02 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384259', 'tblTempUsageDetail_20' ) end [2025-02-02 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384259', 'tblTempVendorCDR_20' ) start [2025-02-02 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384259', 'tblTempVendorCDR_20' ) end [2025-02-02 07:49:18] Production.INFO: ProcessCDR(1,14384259,1,1,2) [2025-02-02 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384259', 'tblTempUsageDetail_20' ) start [2025-02-02 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384259', 'tblTempUsageDetail_20' ) end [2025-02-02 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:49:21] Production.INFO: ==8822== Releasing lock... [2025-02-02 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:49:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:50:06 [end_date_ymd] => 2025-02-02 07:50:06 [RateCDR] => 1 ) [2025-02-02 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-02 04:50:06' and `end` < '2025-02-02 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-02 07:50:20] Production.INFO: count ==79 [2025-02-02 07:50:20] Production.ERROR: pbx CDR StartTime 2025-02-02 04:50:06 - End Time 2025-02-02 07:50:06 [2025-02-02 07:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384265', 'tblTempUsageDetail_20' ) start [2025-02-02 07:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384265', 'tblTempUsageDetail_20' ) end [2025-02-02 07:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384265', 'tblTempVendorCDR_20' ) start [2025-02-02 07:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384265', 'tblTempVendorCDR_20' ) end [2025-02-02 07:50:20] Production.INFO: ProcessCDR(1,14384265,1,1,2) [2025-02-02 07:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384265', 'tblTempUsageDetail_20' ) start [2025-02-02 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384265', 'tblTempUsageDetail_20' ) end [2025-02-02 07:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:50:23] Production.INFO: ==8936== Releasing lock... [2025-02-02 07:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:50:23] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:51:04 [end_date_ymd] => 2025-02-02 07:51:04 [RateCDR] => 1 ) [2025-02-02 07:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 04:51:04' and `end` < '2025-02-02 07:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 07:51:18] Production.INFO: count ==77 [2025-02-02 07:51:18] Production.ERROR: pbx CDR StartTime 2025-02-02 04:51:04 - End Time 2025-02-02 07:51:04 [2025-02-02 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384270', 'tblTempUsageDetail_20' ) start [2025-02-02 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384270', 'tblTempUsageDetail_20' ) end [2025-02-02 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384270', 'tblTempVendorCDR_20' ) start [2025-02-02 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384270', 'tblTempVendorCDR_20' ) end [2025-02-02 07:51:18] Production.INFO: ProcessCDR(1,14384270,1,1,2) [2025-02-02 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384270', 'tblTempUsageDetail_20' ) start [2025-02-02 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384270', 'tblTempUsageDetail_20' ) end [2025-02-02 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:51:21] Production.INFO: ==9010== Releasing lock... [2025-02-02 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:51:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:52:06 [end_date_ymd] => 2025-02-02 07:52:06 [RateCDR] => 1 ) [2025-02-02 07:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 04:52:06' and `end` < '2025-02-02 07:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 07:52:18] Production.INFO: count ==77 [2025-02-02 07:52:18] Production.ERROR: pbx CDR StartTime 2025-02-02 04:52:06 - End Time 2025-02-02 07:52:06 [2025-02-02 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384275', 'tblTempUsageDetail_20' ) start [2025-02-02 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384275', 'tblTempUsageDetail_20' ) end [2025-02-02 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384275', 'tblTempVendorCDR_20' ) start [2025-02-02 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384275', 'tblTempVendorCDR_20' ) end [2025-02-02 07:52:18] Production.INFO: ProcessCDR(1,14384275,1,1,2) [2025-02-02 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384275', 'tblTempUsageDetail_20' ) start [2025-02-02 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384275', 'tblTempUsageDetail_20' ) end [2025-02-02 07:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:52:22] Production.INFO: ==9082== Releasing lock... [2025-02-02 07:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:52:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:53:05 [end_date_ymd] => 2025-02-02 07:53:05 [RateCDR] => 1 ) [2025-02-02 07:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 04:53:05' and `end` < '2025-02-02 07:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 07:53:18] Production.INFO: count ==77 [2025-02-02 07:53:18] Production.ERROR: pbx CDR StartTime 2025-02-02 04:53:05 - End Time 2025-02-02 07:53:05 [2025-02-02 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384280', 'tblTempUsageDetail_20' ) start [2025-02-02 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384280', 'tblTempUsageDetail_20' ) end [2025-02-02 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384280', 'tblTempVendorCDR_20' ) start [2025-02-02 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384280', 'tblTempVendorCDR_20' ) end [2025-02-02 07:53:18] Production.INFO: ProcessCDR(1,14384280,1,1,2) [2025-02-02 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384280', 'tblTempUsageDetail_20' ) start [2025-02-02 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384280', 'tblTempUsageDetail_20' ) end [2025-02-02 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:53:21] Production.INFO: ==9153== Releasing lock... [2025-02-02 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:53:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:54:05 [end_date_ymd] => 2025-02-02 07:54:05 [RateCDR] => 1 ) [2025-02-02 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-02 04:54:05' and `end` < '2025-02-02 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-02 07:54:18] Production.INFO: count ==77 [2025-02-02 07:54:18] Production.ERROR: pbx CDR StartTime 2025-02-02 04:54:05 - End Time 2025-02-02 07:54:05 [2025-02-02 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384285', 'tblTempUsageDetail_20' ) start [2025-02-02 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384285', 'tblTempUsageDetail_20' ) end [2025-02-02 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384285', 'tblTempVendorCDR_20' ) start [2025-02-02 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384285', 'tblTempVendorCDR_20' ) end [2025-02-02 07:54:18] Production.INFO: ProcessCDR(1,14384285,1,1,2) [2025-02-02 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384285', 'tblTempUsageDetail_20' ) start [2025-02-02 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384285', 'tblTempUsageDetail_20' ) end [2025-02-02 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:54:21] Production.INFO: ==9226== Releasing lock... [2025-02-02 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:54:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:55:05 [end_date_ymd] => 2025-02-02 07:55:05 [RateCDR] => 1 ) [2025-02-02 07:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 04:55:05' and `end` < '2025-02-02 07:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 07:55:18] Production.INFO: count ==77 [2025-02-02 07:55:18] Production.ERROR: pbx CDR StartTime 2025-02-02 04:55:05 - End Time 2025-02-02 07:55:05 [2025-02-02 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384290', 'tblTempUsageDetail_20' ) start [2025-02-02 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384290', 'tblTempUsageDetail_20' ) end [2025-02-02 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384290', 'tblTempVendorCDR_20' ) start [2025-02-02 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384290', 'tblTempVendorCDR_20' ) end [2025-02-02 07:55:18] Production.INFO: ProcessCDR(1,14384290,1,1,2) [2025-02-02 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384290', 'tblTempUsageDetail_20' ) start [2025-02-02 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384290', 'tblTempUsageDetail_20' ) end [2025-02-02 07:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:55:21] Production.INFO: ==9307== Releasing lock... [2025-02-02 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:55:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:56:05 [end_date_ymd] => 2025-02-02 07:56:05 [RateCDR] => 1 ) [2025-02-02 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-02 04:56:05' and `end` < '2025-02-02 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-02 07:56:18] Production.INFO: count ==77 [2025-02-02 07:56:18] Production.ERROR: pbx CDR StartTime 2025-02-02 04:56:05 - End Time 2025-02-02 07:56:05 [2025-02-02 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384295', 'tblTempUsageDetail_20' ) start [2025-02-02 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384295', 'tblTempUsageDetail_20' ) end [2025-02-02 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384295', 'tblTempVendorCDR_20' ) start [2025-02-02 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384295', 'tblTempVendorCDR_20' ) end [2025-02-02 07:56:18] Production.INFO: ProcessCDR(1,14384295,1,1,2) [2025-02-02 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384295', 'tblTempUsageDetail_20' ) start [2025-02-02 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384295', 'tblTempUsageDetail_20' ) end [2025-02-02 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:56:21] Production.INFO: ==9394== Releasing lock... [2025-02-02 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:56:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:57:05 [end_date_ymd] => 2025-02-02 07:57:05 [RateCDR] => 1 ) [2025-02-02 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-02 04:57:05' and `end` < '2025-02-02 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-02 07:57:17] Production.INFO: count ==77 [2025-02-02 07:57:17] Production.ERROR: pbx CDR StartTime 2025-02-02 04:57:05 - End Time 2025-02-02 07:57:05 [2025-02-02 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384300', 'tblTempUsageDetail_20' ) start [2025-02-02 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384300', 'tblTempUsageDetail_20' ) end [2025-02-02 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384300', 'tblTempVendorCDR_20' ) start [2025-02-02 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384300', 'tblTempVendorCDR_20' ) end [2025-02-02 07:57:17] Production.INFO: ProcessCDR(1,14384300,1,1,2) [2025-02-02 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384300', 'tblTempUsageDetail_20' ) start [2025-02-02 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384300', 'tblTempUsageDetail_20' ) end [2025-02-02 07:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:57:20] Production.INFO: ==9467== Releasing lock... [2025-02-02 07:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:57:20] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:58:05 [end_date_ymd] => 2025-02-02 07:58:05 [RateCDR] => 1 ) [2025-02-02 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-02 04:58:05' and `end` < '2025-02-02 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-02 07:58:17] Production.INFO: count ==77 [2025-02-02 07:58:17] Production.ERROR: pbx CDR StartTime 2025-02-02 04:58:05 - End Time 2025-02-02 07:58:05 [2025-02-02 07:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384305', 'tblTempUsageDetail_20' ) start [2025-02-02 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384305', 'tblTempUsageDetail_20' ) end [2025-02-02 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384305', 'tblTempVendorCDR_20' ) start [2025-02-02 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384305', 'tblTempVendorCDR_20' ) end [2025-02-02 07:58:17] Production.INFO: ProcessCDR(1,14384305,1,1,2) [2025-02-02 07:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384305', 'tblTempUsageDetail_20' ) start [2025-02-02 07:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384305', 'tblTempUsageDetail_20' ) end [2025-02-02 07:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:58:20] Production.INFO: ==9538== Releasing lock... [2025-02-02 07:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:58:20] Production.INFO: 28 MB #Memory Used# [2025-02-02 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 04:59:05 [end_date_ymd] => 2025-02-02 07:59:05 [RateCDR] => 1 ) [2025-02-02 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-02 04:59:05' and `end` < '2025-02-02 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-02 07:59:18] Production.INFO: count ==77 [2025-02-02 07:59:18] Production.ERROR: pbx CDR StartTime 2025-02-02 04:59:05 - End Time 2025-02-02 07:59:05 [2025-02-02 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384310', 'tblTempUsageDetail_20' ) start [2025-02-02 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384310', 'tblTempUsageDetail_20' ) end [2025-02-02 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384310', 'tblTempVendorCDR_20' ) start [2025-02-02 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384310', 'tblTempVendorCDR_20' ) end [2025-02-02 07:59:18] Production.INFO: ProcessCDR(1,14384310,1,1,2) [2025-02-02 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384310', 'tblTempUsageDetail_20' ) start [2025-02-02 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384310', 'tblTempUsageDetail_20' ) end [2025-02-02 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 07:59:21] Production.INFO: ==9611== Releasing lock... [2025-02-02 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 07:59:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:00:05 [end_date_ymd] => 2025-02-02 08:00:05 [RateCDR] => 1 ) [2025-02-02 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-02 05:00:05' and `end` < '2025-02-02 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-02 08:00:18] Production.INFO: count ==81 [2025-02-02 08:00:18] Production.ERROR: pbx CDR StartTime 2025-02-02 05:00:05 - End Time 2025-02-02 08:00:05 [2025-02-02 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384316', 'tblTempUsageDetail_20' ) start [2025-02-02 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384316', 'tblTempUsageDetail_20' ) end [2025-02-02 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384316', 'tblTempVendorCDR_20' ) start [2025-02-02 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384316', 'tblTempVendorCDR_20' ) end [2025-02-02 08:00:18] Production.INFO: ProcessCDR(1,14384316,1,1,2) [2025-02-02 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384316', 'tblTempUsageDetail_20' ) start [2025-02-02 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384316', 'tblTempUsageDetail_20' ) end [2025-02-02 08:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:00:22] Production.INFO: ==9684== Releasing lock... [2025-02-02 08:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:00:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:01:05 [end_date_ymd] => 2025-02-02 08:01:05 [RateCDR] => 1 ) [2025-02-02 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-02 05:01:05' and `end` < '2025-02-02 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-02 08:01:18] Production.INFO: count ==85 [2025-02-02 08:01:18] Production.ERROR: pbx CDR StartTime 2025-02-02 05:01:05 - End Time 2025-02-02 08:01:05 [2025-02-02 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384321', 'tblTempUsageDetail_20' ) start [2025-02-02 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384321', 'tblTempUsageDetail_20' ) end [2025-02-02 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384321', 'tblTempVendorCDR_20' ) start [2025-02-02 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384321', 'tblTempVendorCDR_20' ) end [2025-02-02 08:01:18] Production.INFO: ProcessCDR(1,14384321,1,1,2) [2025-02-02 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384321', 'tblTempUsageDetail_20' ) start [2025-02-02 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384321', 'tblTempUsageDetail_20' ) end [2025-02-02 08:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:01:21] Production.INFO: ==9769== Releasing lock... [2025-02-02 08:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:01:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:02:05 [end_date_ymd] => 2025-02-02 08:02:05 [RateCDR] => 1 ) [2025-02-02 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-02 05:02:05' and `end` < '2025-02-02 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-02 08:02:18] Production.INFO: count ==85 [2025-02-02 08:02:18] Production.ERROR: pbx CDR StartTime 2025-02-02 05:02:05 - End Time 2025-02-02 08:02:05 [2025-02-02 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384326', 'tblTempUsageDetail_20' ) start [2025-02-02 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384326', 'tblTempUsageDetail_20' ) end [2025-02-02 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384326', 'tblTempVendorCDR_20' ) start [2025-02-02 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384326', 'tblTempVendorCDR_20' ) end [2025-02-02 08:02:18] Production.INFO: ProcessCDR(1,14384326,1,1,2) [2025-02-02 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384326', 'tblTempUsageDetail_20' ) start [2025-02-02 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384326', 'tblTempUsageDetail_20' ) end [2025-02-02 08:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:02:22] Production.INFO: ==9840== Releasing lock... [2025-02-02 08:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:02:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:03:05 [end_date_ymd] => 2025-02-02 08:03:05 [RateCDR] => 1 ) [2025-02-02 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-02 05:03:05' and `end` < '2025-02-02 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-02 08:03:18] Production.INFO: count ==85 [2025-02-02 08:03:18] Production.ERROR: pbx CDR StartTime 2025-02-02 05:03:05 - End Time 2025-02-02 08:03:05 [2025-02-02 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384331', 'tblTempUsageDetail_20' ) start [2025-02-02 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384331', 'tblTempUsageDetail_20' ) end [2025-02-02 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384331', 'tblTempVendorCDR_20' ) start [2025-02-02 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384331', 'tblTempVendorCDR_20' ) end [2025-02-02 08:03:18] Production.INFO: ProcessCDR(1,14384331,1,1,2) [2025-02-02 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384331', 'tblTempUsageDetail_20' ) start [2025-02-02 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384331', 'tblTempUsageDetail_20' ) end [2025-02-02 08:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:03:21] Production.INFO: ==9926== Releasing lock... [2025-02-02 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:03:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:04:05 [end_date_ymd] => 2025-02-02 08:04:05 [RateCDR] => 1 ) [2025-02-02 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-02 05:04:05' and `end` < '2025-02-02 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-02 08:04:18] Production.INFO: count ==85 [2025-02-02 08:04:18] Production.ERROR: pbx CDR StartTime 2025-02-02 05:04:05 - End Time 2025-02-02 08:04:05 [2025-02-02 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384336', 'tblTempUsageDetail_20' ) start [2025-02-02 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384336', 'tblTempUsageDetail_20' ) end [2025-02-02 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384336', 'tblTempVendorCDR_20' ) start [2025-02-02 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384336', 'tblTempVendorCDR_20' ) end [2025-02-02 08:04:18] Production.INFO: ProcessCDR(1,14384336,1,1,2) [2025-02-02 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384336', 'tblTempUsageDetail_20' ) start [2025-02-02 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384336', 'tblTempUsageDetail_20' ) end [2025-02-02 08:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:04:21] Production.INFO: ==10001== Releasing lock... [2025-02-02 08:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:04:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:05:05 [end_date_ymd] => 2025-02-02 08:05:05 [RateCDR] => 1 ) [2025-02-02 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-02 05:05:05' and `end` < '2025-02-02 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-02 08:05:18] Production.INFO: count ==85 [2025-02-02 08:05:18] Production.ERROR: pbx CDR StartTime 2025-02-02 05:05:05 - End Time 2025-02-02 08:05:05 [2025-02-02 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384341', 'tblTempUsageDetail_20' ) start [2025-02-02 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384341', 'tblTempUsageDetail_20' ) end [2025-02-02 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384341', 'tblTempVendorCDR_20' ) start [2025-02-02 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384341', 'tblTempVendorCDR_20' ) end [2025-02-02 08:05:18] Production.INFO: ProcessCDR(1,14384341,1,1,2) [2025-02-02 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384341', 'tblTempUsageDetail_20' ) start [2025-02-02 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384341', 'tblTempUsageDetail_20' ) end [2025-02-02 08:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:05:21] Production.INFO: ==10110== Releasing lock... [2025-02-02 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:05:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:06:05 [end_date_ymd] => 2025-02-02 08:06:05 [RateCDR] => 1 ) [2025-02-02 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-02 05:06:05' and `end` < '2025-02-02 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-02 08:06:19] Production.INFO: count ==85 [2025-02-02 08:06:19] Production.ERROR: pbx CDR StartTime 2025-02-02 05:06:05 - End Time 2025-02-02 08:06:05 [2025-02-02 08:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384346', 'tblTempUsageDetail_20' ) start [2025-02-02 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384346', 'tblTempUsageDetail_20' ) end [2025-02-02 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384346', 'tblTempVendorCDR_20' ) start [2025-02-02 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384346', 'tblTempVendorCDR_20' ) end [2025-02-02 08:06:19] Production.INFO: ProcessCDR(1,14384346,1,1,2) [2025-02-02 08:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384346', 'tblTempUsageDetail_20' ) start [2025-02-02 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384346', 'tblTempUsageDetail_20' ) end [2025-02-02 08:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:06:22] Production.INFO: ==10182== Releasing lock... [2025-02-02 08:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:06:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:07:05 [end_date_ymd] => 2025-02-02 08:07:05 [RateCDR] => 1 ) [2025-02-02 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-02 05:07:05' and `end` < '2025-02-02 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-02 08:07:18] Production.INFO: count ==85 [2025-02-02 08:07:18] Production.ERROR: pbx CDR StartTime 2025-02-02 05:07:05 - End Time 2025-02-02 08:07:05 [2025-02-02 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384351', 'tblTempUsageDetail_20' ) start [2025-02-02 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384351', 'tblTempUsageDetail_20' ) end [2025-02-02 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384351', 'tblTempVendorCDR_20' ) start [2025-02-02 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384351', 'tblTempVendorCDR_20' ) end [2025-02-02 08:07:18] Production.INFO: ProcessCDR(1,14384351,1,1,2) [2025-02-02 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384351', 'tblTempUsageDetail_20' ) start [2025-02-02 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384351', 'tblTempUsageDetail_20' ) end [2025-02-02 08:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:07:21] Production.INFO: ==10255== Releasing lock... [2025-02-02 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:07:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:08:06 [end_date_ymd] => 2025-02-02 08:08:06 [RateCDR] => 1 ) [2025-02-02 08:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 05:08:06' and `end` < '2025-02-02 08:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 08:08:19] Production.INFO: count ==85 [2025-02-02 08:08:19] Production.ERROR: pbx CDR StartTime 2025-02-02 05:08:06 - End Time 2025-02-02 08:08:06 [2025-02-02 08:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384356', 'tblTempUsageDetail_20' ) start [2025-02-02 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384356', 'tblTempUsageDetail_20' ) end [2025-02-02 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384356', 'tblTempVendorCDR_20' ) start [2025-02-02 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384356', 'tblTempVendorCDR_20' ) end [2025-02-02 08:08:19] Production.INFO: ProcessCDR(1,14384356,1,1,2) [2025-02-02 08:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384356', 'tblTempUsageDetail_20' ) start [2025-02-02 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384356', 'tblTempUsageDetail_20' ) end [2025-02-02 08:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:08:22] Production.INFO: ==10327== Releasing lock... [2025-02-02 08:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:08:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:09:05 [end_date_ymd] => 2025-02-02 08:09:05 [RateCDR] => 1 ) [2025-02-02 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-02 05:09:05' and `end` < '2025-02-02 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-02 08:09:17] Production.INFO: count ==85 [2025-02-02 08:09:17] Production.ERROR: pbx CDR StartTime 2025-02-02 05:09:05 - End Time 2025-02-02 08:09:05 [2025-02-02 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384361', 'tblTempUsageDetail_20' ) start [2025-02-02 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384361', 'tblTempUsageDetail_20' ) end [2025-02-02 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384361', 'tblTempVendorCDR_20' ) start [2025-02-02 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384361', 'tblTempVendorCDR_20' ) end [2025-02-02 08:09:17] Production.INFO: ProcessCDR(1,14384361,1,1,2) [2025-02-02 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384361', 'tblTempUsageDetail_20' ) start [2025-02-02 08:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384361', 'tblTempUsageDetail_20' ) end [2025-02-02 08:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:09:20] Production.INFO: ==10399== Releasing lock... [2025-02-02 08:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:09:20] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:10:06 [end_date_ymd] => 2025-02-02 08:10:06 [RateCDR] => 1 ) [2025-02-02 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-02 05:10:06' and `end` < '2025-02-02 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-02 08:10:19] Production.INFO: count ==85 [2025-02-02 08:10:19] Production.ERROR: pbx CDR StartTime 2025-02-02 05:10:06 - End Time 2025-02-02 08:10:06 [2025-02-02 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384367', 'tblTempUsageDetail_20' ) start [2025-02-02 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384367', 'tblTempUsageDetail_20' ) end [2025-02-02 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384367', 'tblTempVendorCDR_20' ) start [2025-02-02 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384367', 'tblTempVendorCDR_20' ) end [2025-02-02 08:10:19] Production.INFO: ProcessCDR(1,14384367,1,1,2) [2025-02-02 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384367', 'tblTempUsageDetail_20' ) start [2025-02-02 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384367', 'tblTempUsageDetail_20' ) end [2025-02-02 08:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:10:22] Production.INFO: ==10491== Releasing lock... [2025-02-02 08:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:10:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:11:05 [end_date_ymd] => 2025-02-02 08:11:05 [RateCDR] => 1 ) [2025-02-02 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-02 05:11:05' and `end` < '2025-02-02 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-02 08:11:18] Production.INFO: count ==85 [2025-02-02 08:11:18] Production.ERROR: pbx CDR StartTime 2025-02-02 05:11:05 - End Time 2025-02-02 08:11:05 [2025-02-02 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384372', 'tblTempUsageDetail_20' ) start [2025-02-02 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384372', 'tblTempUsageDetail_20' ) end [2025-02-02 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384372', 'tblTempVendorCDR_20' ) start [2025-02-02 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384372', 'tblTempVendorCDR_20' ) end [2025-02-02 08:11:18] Production.INFO: ProcessCDR(1,14384372,1,1,2) [2025-02-02 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384372', 'tblTempUsageDetail_20' ) start [2025-02-02 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384372', 'tblTempUsageDetail_20' ) end [2025-02-02 08:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:11:22] Production.INFO: ==10564== Releasing lock... [2025-02-02 08:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:11:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:12:05 [end_date_ymd] => 2025-02-02 08:12:05 [RateCDR] => 1 ) [2025-02-02 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-02 05:12:05' and `end` < '2025-02-02 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-02 08:12:18] Production.INFO: count ==85 [2025-02-02 08:12:18] Production.ERROR: pbx CDR StartTime 2025-02-02 05:12:05 - End Time 2025-02-02 08:12:05 [2025-02-02 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384377', 'tblTempUsageDetail_20' ) start [2025-02-02 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384377', 'tblTempUsageDetail_20' ) end [2025-02-02 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384377', 'tblTempVendorCDR_20' ) start [2025-02-02 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384377', 'tblTempVendorCDR_20' ) end [2025-02-02 08:12:18] Production.INFO: ProcessCDR(1,14384377,1,1,2) [2025-02-02 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384377', 'tblTempUsageDetail_20' ) start [2025-02-02 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384377', 'tblTempUsageDetail_20' ) end [2025-02-02 08:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:12:22] Production.INFO: ==10637== Releasing lock... [2025-02-02 08:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:12:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:13:05 [end_date_ymd] => 2025-02-02 08:13:05 [RateCDR] => 1 ) [2025-02-02 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-02 05:13:05' and `end` < '2025-02-02 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-02 08:13:18] Production.INFO: count ==85 [2025-02-02 08:13:18] Production.ERROR: pbx CDR StartTime 2025-02-02 05:13:05 - End Time 2025-02-02 08:13:05 [2025-02-02 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384382', 'tblTempUsageDetail_20' ) start [2025-02-02 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384382', 'tblTempUsageDetail_20' ) end [2025-02-02 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384382', 'tblTempVendorCDR_20' ) start [2025-02-02 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384382', 'tblTempVendorCDR_20' ) end [2025-02-02 08:13:18] Production.INFO: ProcessCDR(1,14384382,1,1,2) [2025-02-02 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384382', 'tblTempUsageDetail_20' ) start [2025-02-02 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384382', 'tblTempUsageDetail_20' ) end [2025-02-02 08:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:13:21] Production.INFO: ==10709== Releasing lock... [2025-02-02 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:13:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:14:05 [end_date_ymd] => 2025-02-02 08:14:05 [RateCDR] => 1 ) [2025-02-02 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-02 05:14:05' and `end` < '2025-02-02 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-02 08:14:19] Production.INFO: count ==86 [2025-02-02 08:14:19] Production.ERROR: pbx CDR StartTime 2025-02-02 05:14:05 - End Time 2025-02-02 08:14:05 [2025-02-02 08:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384387', 'tblTempUsageDetail_20' ) start [2025-02-02 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384387', 'tblTempUsageDetail_20' ) end [2025-02-02 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384387', 'tblTempVendorCDR_20' ) start [2025-02-02 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384387', 'tblTempVendorCDR_20' ) end [2025-02-02 08:14:19] Production.INFO: ProcessCDR(1,14384387,1,1,2) [2025-02-02 08:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384387', 'tblTempUsageDetail_20' ) start [2025-02-02 08:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384387', 'tblTempUsageDetail_20' ) end [2025-02-02 08:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:14:24] Production.INFO: ==10786== Releasing lock... [2025-02-02 08:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:14:24] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:15:05 [end_date_ymd] => 2025-02-02 08:15:05 [RateCDR] => 1 ) [2025-02-02 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-02 05:15:05' and `end` < '2025-02-02 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-02 08:15:17] Production.INFO: count ==86 [2025-02-02 08:15:17] Production.ERROR: pbx CDR StartTime 2025-02-02 05:15:05 - End Time 2025-02-02 08:15:05 [2025-02-02 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384392', 'tblTempUsageDetail_20' ) start [2025-02-02 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384392', 'tblTempUsageDetail_20' ) end [2025-02-02 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384392', 'tblTempVendorCDR_20' ) start [2025-02-02 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384392', 'tblTempVendorCDR_20' ) end [2025-02-02 08:15:17] Production.INFO: ProcessCDR(1,14384392,1,1,2) [2025-02-02 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384392', 'tblTempUsageDetail_20' ) start [2025-02-02 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384392', 'tblTempUsageDetail_20' ) end [2025-02-02 08:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:15:21] Production.INFO: ==10856== Releasing lock... [2025-02-02 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:15:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:16:05 [end_date_ymd] => 2025-02-02 08:16:05 [RateCDR] => 1 ) [2025-02-02 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-02 05:16:05' and `end` < '2025-02-02 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-02 08:16:18] Production.INFO: count ==86 [2025-02-02 08:16:18] Production.ERROR: pbx CDR StartTime 2025-02-02 05:16:05 - End Time 2025-02-02 08:16:05 [2025-02-02 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384397', 'tblTempUsageDetail_20' ) start [2025-02-02 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384397', 'tblTempUsageDetail_20' ) end [2025-02-02 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384397', 'tblTempVendorCDR_20' ) start [2025-02-02 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384397', 'tblTempVendorCDR_20' ) end [2025-02-02 08:16:18] Production.INFO: ProcessCDR(1,14384397,1,1,2) [2025-02-02 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384397', 'tblTempUsageDetail_20' ) start [2025-02-02 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384397', 'tblTempUsageDetail_20' ) end [2025-02-02 08:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:16:21] Production.INFO: ==10929== Releasing lock... [2025-02-02 08:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:16:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:17:05 [end_date_ymd] => 2025-02-02 08:17:05 [RateCDR] => 1 ) [2025-02-02 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-02 05:17:05' and `end` < '2025-02-02 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-02 08:17:18] Production.INFO: count ==86 [2025-02-02 08:17:18] Production.ERROR: pbx CDR StartTime 2025-02-02 05:17:05 - End Time 2025-02-02 08:17:05 [2025-02-02 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384402', 'tblTempUsageDetail_20' ) start [2025-02-02 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384402', 'tblTempUsageDetail_20' ) end [2025-02-02 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384402', 'tblTempVendorCDR_20' ) start [2025-02-02 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384402', 'tblTempVendorCDR_20' ) end [2025-02-02 08:17:18] Production.INFO: ProcessCDR(1,14384402,1,1,2) [2025-02-02 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384402', 'tblTempUsageDetail_20' ) start [2025-02-02 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384402', 'tblTempUsageDetail_20' ) end [2025-02-02 08:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:17:21] Production.INFO: ==11020== Releasing lock... [2025-02-02 08:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:17:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:18:05 [end_date_ymd] => 2025-02-02 08:18:05 [RateCDR] => 1 ) [2025-02-02 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-02 05:18:05' and `end` < '2025-02-02 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-02 08:18:19] Production.INFO: count ==86 [2025-02-02 08:18:19] Production.ERROR: pbx CDR StartTime 2025-02-02 05:18:05 - End Time 2025-02-02 08:18:05 [2025-02-02 08:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384407', 'tblTempUsageDetail_20' ) start [2025-02-02 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384407', 'tblTempUsageDetail_20' ) end [2025-02-02 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384407', 'tblTempVendorCDR_20' ) start [2025-02-02 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384407', 'tblTempVendorCDR_20' ) end [2025-02-02 08:18:19] Production.INFO: ProcessCDR(1,14384407,1,1,2) [2025-02-02 08:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384407', 'tblTempUsageDetail_20' ) start [2025-02-02 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384407', 'tblTempUsageDetail_20' ) end [2025-02-02 08:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:18:22] Production.INFO: ==11101== Releasing lock... [2025-02-02 08:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:18:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:19:05 [end_date_ymd] => 2025-02-02 08:19:05 [RateCDR] => 1 ) [2025-02-02 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-02 05:19:05' and `end` < '2025-02-02 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-02 08:19:18] Production.INFO: count ==86 [2025-02-02 08:19:18] Production.ERROR: pbx CDR StartTime 2025-02-02 05:19:05 - End Time 2025-02-02 08:19:05 [2025-02-02 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384412', 'tblTempUsageDetail_20' ) start [2025-02-02 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384412', 'tblTempUsageDetail_20' ) end [2025-02-02 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384412', 'tblTempVendorCDR_20' ) start [2025-02-02 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384412', 'tblTempVendorCDR_20' ) end [2025-02-02 08:19:18] Production.INFO: ProcessCDR(1,14384412,1,1,2) [2025-02-02 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384412', 'tblTempUsageDetail_20' ) start [2025-02-02 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384412', 'tblTempUsageDetail_20' ) end [2025-02-02 08:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:19:21] Production.INFO: ==11175== Releasing lock... [2025-02-02 08:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:19:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:20:06 [end_date_ymd] => 2025-02-02 08:20:06 [RateCDR] => 1 ) [2025-02-02 08:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 05:20:06' and `end` < '2025-02-02 08:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 08:20:18] Production.INFO: count ==88 [2025-02-02 08:20:18] Production.ERROR: pbx CDR StartTime 2025-02-02 05:20:06 - End Time 2025-02-02 08:20:06 [2025-02-02 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384418', 'tblTempUsageDetail_20' ) start [2025-02-02 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384418', 'tblTempUsageDetail_20' ) end [2025-02-02 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384418', 'tblTempVendorCDR_20' ) start [2025-02-02 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384418', 'tblTempVendorCDR_20' ) end [2025-02-02 08:20:18] Production.INFO: ProcessCDR(1,14384418,1,1,2) [2025-02-02 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384418', 'tblTempUsageDetail_20' ) start [2025-02-02 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384418', 'tblTempUsageDetail_20' ) end [2025-02-02 08:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:20:21] Production.INFO: ==11248== Releasing lock... [2025-02-02 08:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:20:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:21:05 [end_date_ymd] => 2025-02-02 08:21:05 [RateCDR] => 1 ) [2025-02-02 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-02 05:21:05' and `end` < '2025-02-02 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-02 08:21:18] Production.INFO: count ==88 [2025-02-02 08:21:18] Production.ERROR: pbx CDR StartTime 2025-02-02 05:21:05 - End Time 2025-02-02 08:21:05 [2025-02-02 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384423', 'tblTempUsageDetail_20' ) start [2025-02-02 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384423', 'tblTempUsageDetail_20' ) end [2025-02-02 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384423', 'tblTempVendorCDR_20' ) start [2025-02-02 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384423', 'tblTempVendorCDR_20' ) end [2025-02-02 08:21:18] Production.INFO: ProcessCDR(1,14384423,1,1,2) [2025-02-02 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384423', 'tblTempUsageDetail_20' ) start [2025-02-02 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384423', 'tblTempUsageDetail_20' ) end [2025-02-02 08:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:21:21] Production.INFO: ==11362== Releasing lock... [2025-02-02 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:21:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:22:05 [end_date_ymd] => 2025-02-02 08:22:05 [RateCDR] => 1 ) [2025-02-02 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-02 05:22:05' and `end` < '2025-02-02 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-02 08:22:17] Production.INFO: count ==88 [2025-02-02 08:22:17] Production.ERROR: pbx CDR StartTime 2025-02-02 05:22:05 - End Time 2025-02-02 08:22:05 [2025-02-02 08:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384428', 'tblTempUsageDetail_20' ) start [2025-02-02 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384428', 'tblTempUsageDetail_20' ) end [2025-02-02 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384428', 'tblTempVendorCDR_20' ) start [2025-02-02 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384428', 'tblTempVendorCDR_20' ) end [2025-02-02 08:22:17] Production.INFO: ProcessCDR(1,14384428,1,1,2) [2025-02-02 08:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384428', 'tblTempUsageDetail_20' ) start [2025-02-02 08:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384428', 'tblTempUsageDetail_20' ) end [2025-02-02 08:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:22:20] Production.INFO: ==11435== Releasing lock... [2025-02-02 08:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:22:20] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:23:05 [end_date_ymd] => 2025-02-02 08:23:05 [RateCDR] => 1 ) [2025-02-02 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-02 05:23:05' and `end` < '2025-02-02 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-02 08:23:19] Production.INFO: count ==88 [2025-02-02 08:23:19] Production.ERROR: pbx CDR StartTime 2025-02-02 05:23:05 - End Time 2025-02-02 08:23:05 [2025-02-02 08:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384433', 'tblTempUsageDetail_20' ) start [2025-02-02 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384433', 'tblTempUsageDetail_20' ) end [2025-02-02 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384433', 'tblTempVendorCDR_20' ) start [2025-02-02 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384433', 'tblTempVendorCDR_20' ) end [2025-02-02 08:23:19] Production.INFO: ProcessCDR(1,14384433,1,1,2) [2025-02-02 08:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384433', 'tblTempUsageDetail_20' ) start [2025-02-02 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384433', 'tblTempUsageDetail_20' ) end [2025-02-02 08:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:23:22] Production.INFO: ==11517== Releasing lock... [2025-02-02 08:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:23:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:24:05 [end_date_ymd] => 2025-02-02 08:24:05 [RateCDR] => 1 ) [2025-02-02 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-02 05:24:05' and `end` < '2025-02-02 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-02 08:24:19] Production.INFO: count ==91 [2025-02-02 08:24:19] Production.ERROR: pbx CDR StartTime 2025-02-02 05:24:05 - End Time 2025-02-02 08:24:05 [2025-02-02 08:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384438', 'tblTempUsageDetail_20' ) start [2025-02-02 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384438', 'tblTempUsageDetail_20' ) end [2025-02-02 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384438', 'tblTempVendorCDR_20' ) start [2025-02-02 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384438', 'tblTempVendorCDR_20' ) end [2025-02-02 08:24:19] Production.INFO: ProcessCDR(1,14384438,1,1,2) [2025-02-02 08:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384438', 'tblTempUsageDetail_20' ) start [2025-02-02 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384438', 'tblTempUsageDetail_20' ) end [2025-02-02 08:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:24:22] Production.INFO: ==11599== Releasing lock... [2025-02-02 08:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:24:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:25:06 [end_date_ymd] => 2025-02-02 08:25:06 [RateCDR] => 1 ) [2025-02-02 08: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-02 05:25:06' and `end` < '2025-02-02 08: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-02 08:25:18] Production.INFO: count ==91 [2025-02-02 08:25:18] Production.ERROR: pbx CDR StartTime 2025-02-02 05:25:06 - End Time 2025-02-02 08:25:06 [2025-02-02 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384443', 'tblTempUsageDetail_20' ) start [2025-02-02 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384443', 'tblTempUsageDetail_20' ) end [2025-02-02 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384443', 'tblTempVendorCDR_20' ) start [2025-02-02 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384443', 'tblTempVendorCDR_20' ) end [2025-02-02 08:25:18] Production.INFO: ProcessCDR(1,14384443,1,1,2) [2025-02-02 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384443', 'tblTempUsageDetail_20' ) start [2025-02-02 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384443', 'tblTempUsageDetail_20' ) end [2025-02-02 08:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:25:21] Production.INFO: ==11674== Releasing lock... [2025-02-02 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:25:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:26:05 [end_date_ymd] => 2025-02-02 08:26:05 [RateCDR] => 1 ) [2025-02-02 08:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 05:26:05' and `end` < '2025-02-02 08:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 08:26:18] Production.INFO: count ==91 [2025-02-02 08:26:18] Production.ERROR: pbx CDR StartTime 2025-02-02 05:26:05 - End Time 2025-02-02 08:26:05 [2025-02-02 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384448', 'tblTempUsageDetail_20' ) start [2025-02-02 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384448', 'tblTempUsageDetail_20' ) end [2025-02-02 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384448', 'tblTempVendorCDR_20' ) start [2025-02-02 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384448', 'tblTempVendorCDR_20' ) end [2025-02-02 08:26:18] Production.INFO: ProcessCDR(1,14384448,1,1,2) [2025-02-02 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384448', 'tblTempUsageDetail_20' ) start [2025-02-02 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384448', 'tblTempUsageDetail_20' ) end [2025-02-02 08:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:26:21] Production.INFO: ==11745== Releasing lock... [2025-02-02 08:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:26:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:27:05 [end_date_ymd] => 2025-02-02 08:27:05 [RateCDR] => 1 ) [2025-02-02 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-02 05:27:05' and `end` < '2025-02-02 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-02 08:27:18] Production.INFO: count ==91 [2025-02-02 08:27:18] Production.ERROR: pbx CDR StartTime 2025-02-02 05:27:05 - End Time 2025-02-02 08:27:05 [2025-02-02 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384453', 'tblTempUsageDetail_20' ) start [2025-02-02 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384453', 'tblTempUsageDetail_20' ) end [2025-02-02 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384453', 'tblTempVendorCDR_20' ) start [2025-02-02 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384453', 'tblTempVendorCDR_20' ) end [2025-02-02 08:27:18] Production.INFO: ProcessCDR(1,14384453,1,1,2) [2025-02-02 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384453', 'tblTempUsageDetail_20' ) start [2025-02-02 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384453', 'tblTempUsageDetail_20' ) end [2025-02-02 08:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:27:21] Production.INFO: ==11815== Releasing lock... [2025-02-02 08:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:27:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:28:06 [end_date_ymd] => 2025-02-02 08:28:06 [RateCDR] => 1 ) [2025-02-02 08:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 05:28:06' and `end` < '2025-02-02 08:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 08:28:18] Production.INFO: count ==91 [2025-02-02 08:28:18] Production.ERROR: pbx CDR StartTime 2025-02-02 05:28:06 - End Time 2025-02-02 08:28:06 [2025-02-02 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384458', 'tblTempUsageDetail_20' ) start [2025-02-02 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384458', 'tblTempUsageDetail_20' ) end [2025-02-02 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384458', 'tblTempVendorCDR_20' ) start [2025-02-02 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384458', 'tblTempVendorCDR_20' ) end [2025-02-02 08:28:18] Production.INFO: ProcessCDR(1,14384458,1,1,2) [2025-02-02 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384458', 'tblTempUsageDetail_20' ) start [2025-02-02 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384458', 'tblTempUsageDetail_20' ) end [2025-02-02 08:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:28:21] Production.INFO: ==11889== Releasing lock... [2025-02-02 08:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:28:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:29:05 [end_date_ymd] => 2025-02-02 08:29:05 [RateCDR] => 1 ) [2025-02-02 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-02 05:29:05' and `end` < '2025-02-02 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-02 08:29:18] Production.INFO: count ==91 [2025-02-02 08:29:18] Production.ERROR: pbx CDR StartTime 2025-02-02 05:29:05 - End Time 2025-02-02 08:29:05 [2025-02-02 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384463', 'tblTempUsageDetail_20' ) start [2025-02-02 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384463', 'tblTempUsageDetail_20' ) end [2025-02-02 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384463', 'tblTempVendorCDR_20' ) start [2025-02-02 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384463', 'tblTempVendorCDR_20' ) end [2025-02-02 08:29:18] Production.INFO: ProcessCDR(1,14384463,1,1,2) [2025-02-02 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384463', 'tblTempUsageDetail_20' ) start [2025-02-02 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384463', 'tblTempUsageDetail_20' ) end [2025-02-02 08:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:29:21] Production.INFO: ==11960== Releasing lock... [2025-02-02 08:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:29:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:30:06 [end_date_ymd] => 2025-02-02 08:30:06 [RateCDR] => 1 ) [2025-02-02 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-02 05:30:06' and `end` < '2025-02-02 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-02 08:30:18] Production.INFO: count ==93 [2025-02-02 08:30:18] Production.ERROR: pbx CDR StartTime 2025-02-02 05:30:06 - End Time 2025-02-02 08:30:06 [2025-02-02 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384469', 'tblTempUsageDetail_20' ) start [2025-02-02 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384469', 'tblTempUsageDetail_20' ) end [2025-02-02 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384469', 'tblTempVendorCDR_20' ) start [2025-02-02 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384469', 'tblTempVendorCDR_20' ) end [2025-02-02 08:30:18] Production.INFO: ProcessCDR(1,14384469,1,1,2) [2025-02-02 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384469', 'tblTempUsageDetail_20' ) start [2025-02-02 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384469', 'tblTempUsageDetail_20' ) end [2025-02-02 08:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:30:22] Production.INFO: ==12055== Releasing lock... [2025-02-02 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:30:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:31:04 [end_date_ymd] => 2025-02-02 08:31:04 [RateCDR] => 1 ) [2025-02-02 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-02 05:31:04' and `end` < '2025-02-02 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-02 08:31:17] Production.INFO: count ==94 [2025-02-02 08:31:17] Production.ERROR: pbx CDR StartTime 2025-02-02 05:31:04 - End Time 2025-02-02 08:31:04 [2025-02-02 08:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384474', 'tblTempUsageDetail_20' ) start [2025-02-02 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384474', 'tblTempUsageDetail_20' ) end [2025-02-02 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384474', 'tblTempVendorCDR_20' ) start [2025-02-02 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384474', 'tblTempVendorCDR_20' ) end [2025-02-02 08:31:17] Production.INFO: ProcessCDR(1,14384474,1,1,2) [2025-02-02 08:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384474', 'tblTempUsageDetail_20' ) start [2025-02-02 08:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384474', 'tblTempUsageDetail_20' ) end [2025-02-02 08:31:20] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:31:20] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:31:20] Production.INFO: ==12130== Releasing lock... [2025-02-02 08:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:31:20] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:32:05 [end_date_ymd] => 2025-02-02 08:32:05 [RateCDR] => 1 ) [2025-02-02 08:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 05:32:05' and `end` < '2025-02-02 08:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 08:32:19] Production.INFO: count ==94 [2025-02-02 08:32:19] Production.ERROR: pbx CDR StartTime 2025-02-02 05:32:05 - End Time 2025-02-02 08:32:05 [2025-02-02 08:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384479', 'tblTempUsageDetail_20' ) start [2025-02-02 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384479', 'tblTempUsageDetail_20' ) end [2025-02-02 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384479', 'tblTempVendorCDR_20' ) start [2025-02-02 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384479', 'tblTempVendorCDR_20' ) end [2025-02-02 08:32:19] Production.INFO: ProcessCDR(1,14384479,1,1,2) [2025-02-02 08:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384479', 'tblTempUsageDetail_20' ) start [2025-02-02 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384479', 'tblTempUsageDetail_20' ) end [2025-02-02 08:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:32:22] Production.INFO: ==12210== Releasing lock... [2025-02-02 08:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:32:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:33:05 [end_date_ymd] => 2025-02-02 08:33:05 [RateCDR] => 1 ) [2025-02-02 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-02 05:33:05' and `end` < '2025-02-02 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-02 08:33:18] Production.INFO: count ==94 [2025-02-02 08:33:18] Production.ERROR: pbx CDR StartTime 2025-02-02 05:33:05 - End Time 2025-02-02 08:33:05 [2025-02-02 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384484', 'tblTempUsageDetail_20' ) start [2025-02-02 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384484', 'tblTempUsageDetail_20' ) end [2025-02-02 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384484', 'tblTempVendorCDR_20' ) start [2025-02-02 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384484', 'tblTempVendorCDR_20' ) end [2025-02-02 08:33:18] Production.INFO: ProcessCDR(1,14384484,1,1,2) [2025-02-02 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384484', 'tblTempUsageDetail_20' ) start [2025-02-02 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384484', 'tblTempUsageDetail_20' ) end [2025-02-02 08:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:33:21] Production.INFO: ==12289== Releasing lock... [2025-02-02 08:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:33:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:34:05 [end_date_ymd] => 2025-02-02 08:34:05 [RateCDR] => 1 ) [2025-02-02 08:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 05:34:05' and `end` < '2025-02-02 08:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 08:34:18] Production.INFO: count ==94 [2025-02-02 08:34:18] Production.ERROR: pbx CDR StartTime 2025-02-02 05:34:05 - End Time 2025-02-02 08:34:05 [2025-02-02 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384489', 'tblTempUsageDetail_20' ) start [2025-02-02 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384489', 'tblTempUsageDetail_20' ) end [2025-02-02 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384489', 'tblTempVendorCDR_20' ) start [2025-02-02 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384489', 'tblTempVendorCDR_20' ) end [2025-02-02 08:34:18] Production.INFO: ProcessCDR(1,14384489,1,1,2) [2025-02-02 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384489', 'tblTempUsageDetail_20' ) start [2025-02-02 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384489', 'tblTempUsageDetail_20' ) end [2025-02-02 08:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:34:22] Production.INFO: ==12368== Releasing lock... [2025-02-02 08:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:34:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:35:04 [end_date_ymd] => 2025-02-02 08:35:04 [RateCDR] => 1 ) [2025-02-02 08:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 05:35:04' and `end` < '2025-02-02 08:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 08:35:17] Production.INFO: count ==94 [2025-02-02 08:35:17] Production.ERROR: pbx CDR StartTime 2025-02-02 05:35:04 - End Time 2025-02-02 08:35:04 [2025-02-02 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384494', 'tblTempUsageDetail_20' ) start [2025-02-02 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384494', 'tblTempUsageDetail_20' ) end [2025-02-02 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384494', 'tblTempVendorCDR_20' ) start [2025-02-02 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384494', 'tblTempVendorCDR_20' ) end [2025-02-02 08:35:17] Production.INFO: ProcessCDR(1,14384494,1,1,2) [2025-02-02 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384494', 'tblTempUsageDetail_20' ) start [2025-02-02 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384494', 'tblTempUsageDetail_20' ) end [2025-02-02 08:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:35:20] Production.INFO: ==12457== Releasing lock... [2025-02-02 08:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:35:20] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:36:05 [end_date_ymd] => 2025-02-02 08:36:05 [RateCDR] => 1 ) [2025-02-02 08:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 05:36:05' and `end` < '2025-02-02 08:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 08:36:18] Production.INFO: count ==94 [2025-02-02 08:36:18] Production.ERROR: pbx CDR StartTime 2025-02-02 05:36:05 - End Time 2025-02-02 08:36:05 [2025-02-02 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384499', 'tblTempUsageDetail_20' ) start [2025-02-02 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384499', 'tblTempUsageDetail_20' ) end [2025-02-02 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384499', 'tblTempVendorCDR_20' ) start [2025-02-02 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384499', 'tblTempVendorCDR_20' ) end [2025-02-02 08:36:18] Production.INFO: ProcessCDR(1,14384499,1,1,2) [2025-02-02 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384499', 'tblTempUsageDetail_20' ) start [2025-02-02 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384499', 'tblTempUsageDetail_20' ) end [2025-02-02 08:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:36:22] Production.INFO: ==12568== Releasing lock... [2025-02-02 08:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:36:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:37:05 [end_date_ymd] => 2025-02-02 08:37:05 [RateCDR] => 1 ) [2025-02-02 08:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 05:37:05' and `end` < '2025-02-02 08:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 08:37:18] Production.INFO: count ==94 [2025-02-02 08:37:18] Production.ERROR: pbx CDR StartTime 2025-02-02 05:37:05 - End Time 2025-02-02 08:37:05 [2025-02-02 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384504', 'tblTempUsageDetail_20' ) start [2025-02-02 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384504', 'tblTempUsageDetail_20' ) end [2025-02-02 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384504', 'tblTempVendorCDR_20' ) start [2025-02-02 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384504', 'tblTempVendorCDR_20' ) end [2025-02-02 08:37:18] Production.INFO: ProcessCDR(1,14384504,1,1,2) [2025-02-02 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384504', 'tblTempUsageDetail_20' ) start [2025-02-02 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384504', 'tblTempUsageDetail_20' ) end [2025-02-02 08:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:37:22] Production.INFO: ==12648== Releasing lock... [2025-02-02 08:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:37:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:38:05 [end_date_ymd] => 2025-02-02 08:38:05 [RateCDR] => 1 ) [2025-02-02 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-02 05:38:05' and `end` < '2025-02-02 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-02 08:38:18] Production.INFO: count ==94 [2025-02-02 08:38:18] Production.ERROR: pbx CDR StartTime 2025-02-02 05:38:05 - End Time 2025-02-02 08:38:05 [2025-02-02 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384509', 'tblTempUsageDetail_20' ) start [2025-02-02 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384509', 'tblTempUsageDetail_20' ) end [2025-02-02 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384509', 'tblTempVendorCDR_20' ) start [2025-02-02 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384509', 'tblTempVendorCDR_20' ) end [2025-02-02 08:38:18] Production.INFO: ProcessCDR(1,14384509,1,1,2) [2025-02-02 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384509', 'tblTempUsageDetail_20' ) start [2025-02-02 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384509', 'tblTempUsageDetail_20' ) end [2025-02-02 08:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:38:21] Production.INFO: ==12731== Releasing lock... [2025-02-02 08:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:38:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:39:05 [end_date_ymd] => 2025-02-02 08:39:05 [RateCDR] => 1 ) [2025-02-02 08:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 05:39:05' and `end` < '2025-02-02 08:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 08:39:18] Production.INFO: count ==94 [2025-02-02 08:39:18] Production.ERROR: pbx CDR StartTime 2025-02-02 05:39:05 - End Time 2025-02-02 08:39:05 [2025-02-02 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384514', 'tblTempUsageDetail_20' ) start [2025-02-02 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384514', 'tblTempUsageDetail_20' ) end [2025-02-02 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384514', 'tblTempVendorCDR_20' ) start [2025-02-02 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384514', 'tblTempVendorCDR_20' ) end [2025-02-02 08:39:18] Production.INFO: ProcessCDR(1,14384514,1,1,2) [2025-02-02 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384514', 'tblTempUsageDetail_20' ) start [2025-02-02 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384514', 'tblTempUsageDetail_20' ) end [2025-02-02 08:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:39:21] Production.INFO: ==12810== Releasing lock... [2025-02-02 08:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:39:21] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:40:06 [end_date_ymd] => 2025-02-02 08:40:06 [RateCDR] => 1 ) [2025-02-02 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-02 05:40:06' and `end` < '2025-02-02 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-02 08:40:19] Production.INFO: count ==98 [2025-02-02 08:40:19] Production.ERROR: pbx CDR StartTime 2025-02-02 05:40:06 - End Time 2025-02-02 08:40:06 [2025-02-02 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384520', 'tblTempUsageDetail_20' ) start [2025-02-02 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384520', 'tblTempUsageDetail_20' ) end [2025-02-02 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384520', 'tblTempVendorCDR_20' ) start [2025-02-02 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384520', 'tblTempVendorCDR_20' ) end [2025-02-02 08:40:19] Production.INFO: ProcessCDR(1,14384520,1,1,2) [2025-02-02 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384520', 'tblTempUsageDetail_20' ) start [2025-02-02 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384520', 'tblTempUsageDetail_20' ) end [2025-02-02 08:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:40:22] Production.INFO: ==12890== Releasing lock... [2025-02-02 08:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:40:22] Production.INFO: 28 MB #Memory Used# [2025-02-02 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:41:05 [end_date_ymd] => 2025-02-02 08:41:05 [RateCDR] => 1 ) [2025-02-02 08:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 05:41:05' and `end` < '2025-02-02 08:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 08:41:20] Production.INFO: count ==108 [2025-02-02 08:41:20] Production.ERROR: pbx CDR StartTime 2025-02-02 05:41:05 - End Time 2025-02-02 08:41:05 [2025-02-02 08:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384525', 'tblTempUsageDetail_20' ) start [2025-02-02 08:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384525', 'tblTempUsageDetail_20' ) end [2025-02-02 08:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384525', 'tblTempVendorCDR_20' ) start [2025-02-02 08:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384525', 'tblTempVendorCDR_20' ) end [2025-02-02 08:41:20] Production.INFO: ProcessCDR(1,14384525,1,1,2) [2025-02-02 08:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384525', 'tblTempUsageDetail_20' ) start [2025-02-02 08:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384525', 'tblTempUsageDetail_20' ) end [2025-02-02 08:41:25] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:41:25] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:41:25] Production.INFO: ==12972== Releasing lock... [2025-02-02 08:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:41:25] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:42:05 [end_date_ymd] => 2025-02-02 08:42:05 [RateCDR] => 1 ) [2025-02-02 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-02 05:42:05' and `end` < '2025-02-02 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-02 08:42:18] Production.INFO: count ==108 [2025-02-02 08:42:18] Production.ERROR: pbx CDR StartTime 2025-02-02 05:42:05 - End Time 2025-02-02 08:42:05 [2025-02-02 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384530', 'tblTempUsageDetail_20' ) start [2025-02-02 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384530', 'tblTempUsageDetail_20' ) end [2025-02-02 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384530', 'tblTempVendorCDR_20' ) start [2025-02-02 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384530', 'tblTempVendorCDR_20' ) end [2025-02-02 08:42:18] Production.INFO: ProcessCDR(1,14384530,1,1,2) [2025-02-02 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384530', 'tblTempUsageDetail_20' ) start [2025-02-02 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384530', 'tblTempUsageDetail_20' ) end [2025-02-02 08:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:42:22] Production.INFO: ==13049== Releasing lock... [2025-02-02 08:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:42:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 08:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:43:06 [end_date_ymd] => 2025-02-02 08:43:06 [RateCDR] => 1 ) [2025-02-02 08: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-02 05:43:06' and `end` < '2025-02-02 08: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-02 08:43:19] Production.INFO: count ==108 [2025-02-02 08:43:19] Production.ERROR: pbx CDR StartTime 2025-02-02 05:43:06 - End Time 2025-02-02 08:43:06 [2025-02-02 08:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384535', 'tblTempUsageDetail_20' ) start [2025-02-02 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384535', 'tblTempUsageDetail_20' ) end [2025-02-02 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384535', 'tblTempVendorCDR_20' ) start [2025-02-02 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384535', 'tblTempVendorCDR_20' ) end [2025-02-02 08:43:19] Production.INFO: ProcessCDR(1,14384535,1,1,2) [2025-02-02 08:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384535', 'tblTempUsageDetail_20' ) start [2025-02-02 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384535', 'tblTempUsageDetail_20' ) end [2025-02-02 08:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:43:22] Production.INFO: ==13127== Releasing lock... [2025-02-02 08:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:43:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:44:05 [end_date_ymd] => 2025-02-02 08:44:05 [RateCDR] => 1 ) [2025-02-02 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-02 05:44:05' and `end` < '2025-02-02 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-02 08:44:18] Production.INFO: count ==108 [2025-02-02 08:44:18] Production.ERROR: pbx CDR StartTime 2025-02-02 05:44:05 - End Time 2025-02-02 08:44:05 [2025-02-02 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384540', 'tblTempUsageDetail_20' ) start [2025-02-02 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384540', 'tblTempUsageDetail_20' ) end [2025-02-02 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384540', 'tblTempVendorCDR_20' ) start [2025-02-02 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384540', 'tblTempVendorCDR_20' ) end [2025-02-02 08:44:18] Production.INFO: ProcessCDR(1,14384540,1,1,2) [2025-02-02 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384540', 'tblTempUsageDetail_20' ) start [2025-02-02 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384540', 'tblTempUsageDetail_20' ) end [2025-02-02 08:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:44:21] Production.INFO: ==13210== Releasing lock... [2025-02-02 08:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:44:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:45:05 [end_date_ymd] => 2025-02-02 08:45:05 [RateCDR] => 1 ) [2025-02-02 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-02 05:45:05' and `end` < '2025-02-02 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-02 08:45:17] Production.INFO: count ==108 [2025-02-02 08:45:17] Production.ERROR: pbx CDR StartTime 2025-02-02 05:45:05 - End Time 2025-02-02 08:45:05 [2025-02-02 08:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384545', 'tblTempUsageDetail_20' ) start [2025-02-02 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384545', 'tblTempUsageDetail_20' ) end [2025-02-02 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384545', 'tblTempVendorCDR_20' ) start [2025-02-02 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384545', 'tblTempVendorCDR_20' ) end [2025-02-02 08:45:17] Production.INFO: ProcessCDR(1,14384545,1,1,2) [2025-02-02 08:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384545', 'tblTempUsageDetail_20' ) start [2025-02-02 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384545', 'tblTempUsageDetail_20' ) end [2025-02-02 08:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:45:20] Production.INFO: ==13289== Releasing lock... [2025-02-02 08:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:45:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:46:05 [end_date_ymd] => 2025-02-02 08:46:05 [RateCDR] => 1 ) [2025-02-02 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-02 05:46:05' and `end` < '2025-02-02 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-02 08:46:18] Production.INFO: count ==108 [2025-02-02 08:46:18] Production.ERROR: pbx CDR StartTime 2025-02-02 05:46:05 - End Time 2025-02-02 08:46:05 [2025-02-02 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384550', 'tblTempUsageDetail_20' ) start [2025-02-02 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384550', 'tblTempUsageDetail_20' ) end [2025-02-02 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384550', 'tblTempVendorCDR_20' ) start [2025-02-02 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384550', 'tblTempVendorCDR_20' ) end [2025-02-02 08:46:18] Production.INFO: ProcessCDR(1,14384550,1,1,2) [2025-02-02 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384550', 'tblTempUsageDetail_20' ) start [2025-02-02 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384550', 'tblTempUsageDetail_20' ) end [2025-02-02 08:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:46:21] Production.INFO: ==13370== Releasing lock... [2025-02-02 08:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:46:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:47:05 [end_date_ymd] => 2025-02-02 08:47:05 [RateCDR] => 1 ) [2025-02-02 08:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 05:47:05' and `end` < '2025-02-02 08:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 08:47:18] Production.INFO: count ==108 [2025-02-02 08:47:18] Production.ERROR: pbx CDR StartTime 2025-02-02 05:47:05 - End Time 2025-02-02 08:47:05 [2025-02-02 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384555', 'tblTempUsageDetail_20' ) start [2025-02-02 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384555', 'tblTempUsageDetail_20' ) end [2025-02-02 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384555', 'tblTempVendorCDR_20' ) start [2025-02-02 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384555', 'tblTempVendorCDR_20' ) end [2025-02-02 08:47:18] Production.INFO: ProcessCDR(1,14384555,1,1,2) [2025-02-02 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384555', 'tblTempUsageDetail_20' ) start [2025-02-02 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384555', 'tblTempUsageDetail_20' ) end [2025-02-02 08:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:47:22] Production.INFO: ==13445== Releasing lock... [2025-02-02 08:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:47:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:48:05 [end_date_ymd] => 2025-02-02 08:48:05 [RateCDR] => 1 ) [2025-02-02 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-02 05:48:05' and `end` < '2025-02-02 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-02 08:48:18] Production.INFO: count ==108 [2025-02-02 08:48:18] Production.ERROR: pbx CDR StartTime 2025-02-02 05:48:05 - End Time 2025-02-02 08:48:05 [2025-02-02 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384560', 'tblTempUsageDetail_20' ) start [2025-02-02 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384560', 'tblTempUsageDetail_20' ) end [2025-02-02 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384560', 'tblTempVendorCDR_20' ) start [2025-02-02 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384560', 'tblTempVendorCDR_20' ) end [2025-02-02 08:48:18] Production.INFO: ProcessCDR(1,14384560,1,1,2) [2025-02-02 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384560', 'tblTempUsageDetail_20' ) start [2025-02-02 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384560', 'tblTempUsageDetail_20' ) end [2025-02-02 08:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:48:21] Production.INFO: ==13525== Releasing lock... [2025-02-02 08:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:48:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:49:05 [end_date_ymd] => 2025-02-02 08:49:05 [RateCDR] => 1 ) [2025-02-02 08:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 05:49:05' and `end` < '2025-02-02 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-02 08:49:18] Production.INFO: count ==108 [2025-02-02 08:49:18] Production.ERROR: pbx CDR StartTime 2025-02-02 05:49:05 - End Time 2025-02-02 08:49:05 [2025-02-02 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384565', 'tblTempUsageDetail_20' ) start [2025-02-02 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384565', 'tblTempUsageDetail_20' ) end [2025-02-02 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384565', 'tblTempVendorCDR_20' ) start [2025-02-02 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384565', 'tblTempVendorCDR_20' ) end [2025-02-02 08:49:18] Production.INFO: ProcessCDR(1,14384565,1,1,2) [2025-02-02 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384565', 'tblTempUsageDetail_20' ) start [2025-02-02 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384565', 'tblTempUsageDetail_20' ) end [2025-02-02 08:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:49:21] Production.INFO: ==13622== Releasing lock... [2025-02-02 08:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:49:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 08:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:50:07 [end_date_ymd] => 2025-02-02 08:50:07 [RateCDR] => 1 ) [2025-02-02 08: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-02 05:50:07' and `end` < '2025-02-02 08: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-02 08:50:19] Production.INFO: count ==108 [2025-02-02 08:50:19] Production.ERROR: pbx CDR StartTime 2025-02-02 05:50:07 - End Time 2025-02-02 08:50:07 [2025-02-02 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384571', 'tblTempUsageDetail_20' ) start [2025-02-02 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384571', 'tblTempUsageDetail_20' ) end [2025-02-02 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384571', 'tblTempVendorCDR_20' ) start [2025-02-02 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384571', 'tblTempVendorCDR_20' ) end [2025-02-02 08:50:19] Production.INFO: ProcessCDR(1,14384571,1,1,2) [2025-02-02 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384571', 'tblTempUsageDetail_20' ) start [2025-02-02 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384571', 'tblTempUsageDetail_20' ) end [2025-02-02 08:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:50:22] Production.INFO: ==13702== Releasing lock... [2025-02-02 08:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:50:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:51:05 [end_date_ymd] => 2025-02-02 08:51:05 [RateCDR] => 1 ) [2025-02-02 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-02 05:51:05' and `end` < '2025-02-02 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-02 08:51:18] Production.INFO: count ==108 [2025-02-02 08:51:18] Production.ERROR: pbx CDR StartTime 2025-02-02 05:51:05 - End Time 2025-02-02 08:51:05 [2025-02-02 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384576', 'tblTempUsageDetail_20' ) start [2025-02-02 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384576', 'tblTempUsageDetail_20' ) end [2025-02-02 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384576', 'tblTempVendorCDR_20' ) start [2025-02-02 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384576', 'tblTempVendorCDR_20' ) end [2025-02-02 08:51:18] Production.INFO: ProcessCDR(1,14384576,1,1,2) [2025-02-02 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384576', 'tblTempUsageDetail_20' ) start [2025-02-02 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384576', 'tblTempUsageDetail_20' ) end [2025-02-02 08:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:51:21] Production.INFO: ==13787== Releasing lock... [2025-02-02 08:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:51:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 08:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:52:06 [end_date_ymd] => 2025-02-02 08:52:06 [RateCDR] => 1 ) [2025-02-02 08: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-02 05:52:06' and `end` < '2025-02-02 08: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-02 08:52:19] Production.INFO: count ==108 [2025-02-02 08:52:19] Production.ERROR: pbx CDR StartTime 2025-02-02 05:52:06 - End Time 2025-02-02 08:52:06 [2025-02-02 08:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384581', 'tblTempUsageDetail_20' ) start [2025-02-02 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384581', 'tblTempUsageDetail_20' ) end [2025-02-02 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384581', 'tblTempVendorCDR_20' ) start [2025-02-02 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384581', 'tblTempVendorCDR_20' ) end [2025-02-02 08:52:19] Production.INFO: ProcessCDR(1,14384581,1,1,2) [2025-02-02 08:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384581', 'tblTempUsageDetail_20' ) start [2025-02-02 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384581', 'tblTempUsageDetail_20' ) end [2025-02-02 08:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:52:22] Production.INFO: ==13909== Releasing lock... [2025-02-02 08:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:52:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:53:05 [end_date_ymd] => 2025-02-02 08:53:05 [RateCDR] => 1 ) [2025-02-02 08:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 05:53:05' and `end` < '2025-02-02 08:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 08:53:19] Production.INFO: count ==108 [2025-02-02 08:53:19] Production.ERROR: pbx CDR StartTime 2025-02-02 05:53:05 - End Time 2025-02-02 08:53:05 [2025-02-02 08:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384586', 'tblTempUsageDetail_20' ) start [2025-02-02 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384586', 'tblTempUsageDetail_20' ) end [2025-02-02 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384586', 'tblTempVendorCDR_20' ) start [2025-02-02 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384586', 'tblTempVendorCDR_20' ) end [2025-02-02 08:53:19] Production.INFO: ProcessCDR(1,14384586,1,1,2) [2025-02-02 08:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384586', 'tblTempUsageDetail_20' ) start [2025-02-02 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384586', 'tblTempUsageDetail_20' ) end [2025-02-02 08:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:53:22] Production.INFO: ==13993== Releasing lock... [2025-02-02 08:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:53:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 08:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:54:06 [end_date_ymd] => 2025-02-02 08:54:06 [RateCDR] => 1 ) [2025-02-02 08:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 05:54:06' and `end` < '2025-02-02 08:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 08:54:19] Production.INFO: count ==108 [2025-02-02 08:54:19] Production.ERROR: pbx CDR StartTime 2025-02-02 05:54:06 - End Time 2025-02-02 08:54:06 [2025-02-02 08:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384591', 'tblTempUsageDetail_20' ) start [2025-02-02 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384591', 'tblTempUsageDetail_20' ) end [2025-02-02 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384591', 'tblTempVendorCDR_20' ) start [2025-02-02 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384591', 'tblTempVendorCDR_20' ) end [2025-02-02 08:54:19] Production.INFO: ProcessCDR(1,14384591,1,1,2) [2025-02-02 08:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384591', 'tblTempUsageDetail_20' ) start [2025-02-02 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384591', 'tblTempUsageDetail_20' ) end [2025-02-02 08:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:54:22] Production.INFO: ==14072== Releasing lock... [2025-02-02 08:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:54:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:55:05 [end_date_ymd] => 2025-02-02 08:55:05 [RateCDR] => 1 ) [2025-02-02 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-02 05:55:05' and `end` < '2025-02-02 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-02 08:55:18] Production.INFO: count ==108 [2025-02-02 08:55:18] Production.ERROR: pbx CDR StartTime 2025-02-02 05:55:05 - End Time 2025-02-02 08:55:05 [2025-02-02 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384596', 'tblTempUsageDetail_20' ) start [2025-02-02 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384596', 'tblTempUsageDetail_20' ) end [2025-02-02 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384596', 'tblTempVendorCDR_20' ) start [2025-02-02 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384596', 'tblTempVendorCDR_20' ) end [2025-02-02 08:55:18] Production.INFO: ProcessCDR(1,14384596,1,1,2) [2025-02-02 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384596', 'tblTempUsageDetail_20' ) start [2025-02-02 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384596', 'tblTempUsageDetail_20' ) end [2025-02-02 08:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:55:21] Production.INFO: ==14162== Releasing lock... [2025-02-02 08:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:55:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:56:05 [end_date_ymd] => 2025-02-02 08:56:05 [RateCDR] => 1 ) [2025-02-02 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-02 05:56:05' and `end` < '2025-02-02 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-02 08:56:19] Production.INFO: count ==108 [2025-02-02 08:56:19] Production.ERROR: pbx CDR StartTime 2025-02-02 05:56:05 - End Time 2025-02-02 08:56:05 [2025-02-02 08:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384601', 'tblTempUsageDetail_20' ) start [2025-02-02 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384601', 'tblTempUsageDetail_20' ) end [2025-02-02 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384601', 'tblTempVendorCDR_20' ) start [2025-02-02 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384601', 'tblTempVendorCDR_20' ) end [2025-02-02 08:56:19] Production.INFO: ProcessCDR(1,14384601,1,1,2) [2025-02-02 08:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384601', 'tblTempUsageDetail_20' ) start [2025-02-02 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384601', 'tblTempUsageDetail_20' ) end [2025-02-02 08:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:56:22] Production.INFO: ==14249== Releasing lock... [2025-02-02 08:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:56:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:57:05 [end_date_ymd] => 2025-02-02 08:57:05 [RateCDR] => 1 ) [2025-02-02 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-02 05:57:05' and `end` < '2025-02-02 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-02 08:57:18] Production.INFO: count ==108 [2025-02-02 08:57:18] Production.ERROR: pbx CDR StartTime 2025-02-02 05:57:05 - End Time 2025-02-02 08:57:05 [2025-02-02 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384606', 'tblTempUsageDetail_20' ) start [2025-02-02 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384606', 'tblTempUsageDetail_20' ) end [2025-02-02 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384606', 'tblTempVendorCDR_20' ) start [2025-02-02 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384606', 'tblTempVendorCDR_20' ) end [2025-02-02 08:57:18] Production.INFO: ProcessCDR(1,14384606,1,1,2) [2025-02-02 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384606', 'tblTempUsageDetail_20' ) start [2025-02-02 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384606', 'tblTempUsageDetail_20' ) end [2025-02-02 08:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:57:21] Production.INFO: ==14330== Releasing lock... [2025-02-02 08:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:57:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 08:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:58:06 [end_date_ymd] => 2025-02-02 08:58:06 [RateCDR] => 1 ) [2025-02-02 08:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 05:58:06' and `end` < '2025-02-02 08:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 08:58:19] Production.INFO: count ==108 [2025-02-02 08:58:19] Production.ERROR: pbx CDR StartTime 2025-02-02 05:58:06 - End Time 2025-02-02 08:58:06 [2025-02-02 08:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384611', 'tblTempUsageDetail_20' ) start [2025-02-02 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384611', 'tblTempUsageDetail_20' ) end [2025-02-02 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384611', 'tblTempVendorCDR_20' ) start [2025-02-02 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384611', 'tblTempVendorCDR_20' ) end [2025-02-02 08:58:19] Production.INFO: ProcessCDR(1,14384611,1,1,2) [2025-02-02 08:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384611', 'tblTempUsageDetail_20' ) start [2025-02-02 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384611', 'tblTempUsageDetail_20' ) end [2025-02-02 08:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:58:22] Production.INFO: ==14409== Releasing lock... [2025-02-02 08:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:58:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 05:59:05 [end_date_ymd] => 2025-02-02 08:59:05 [RateCDR] => 1 ) [2025-02-02 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-02 05:59:05' and `end` < '2025-02-02 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-02 08:59:18] Production.INFO: count ==108 [2025-02-02 08:59:18] Production.ERROR: pbx CDR StartTime 2025-02-02 05:59:05 - End Time 2025-02-02 08:59:05 [2025-02-02 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384616', 'tblTempUsageDetail_20' ) start [2025-02-02 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384616', 'tblTempUsageDetail_20' ) end [2025-02-02 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384616', 'tblTempVendorCDR_20' ) start [2025-02-02 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384616', 'tblTempVendorCDR_20' ) end [2025-02-02 08:59:18] Production.INFO: ProcessCDR(1,14384616,1,1,2) [2025-02-02 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 08:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384616', 'tblTempUsageDetail_20' ) start [2025-02-02 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384616', 'tblTempUsageDetail_20' ) end [2025-02-02 08:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 08:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 08:59:21] Production.INFO: ==14487== Releasing lock... [2025-02-02 08:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 08:59:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:00:06 [end_date_ymd] => 2025-02-02 09:00:06 [RateCDR] => 1 ) [2025-02-02 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-02 06:00:06' and `end` < '2025-02-02 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-02 09:00:19] Production.INFO: count ==108 [2025-02-02 09:00:19] Production.ERROR: pbx CDR StartTime 2025-02-02 06:00:06 - End Time 2025-02-02 09:00:06 [2025-02-02 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384621', 'tblTempUsageDetail_20' ) start [2025-02-02 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384621', 'tblTempUsageDetail_20' ) end [2025-02-02 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384621', 'tblTempVendorCDR_20' ) start [2025-02-02 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384621', 'tblTempVendorCDR_20' ) end [2025-02-02 09:00:19] Production.INFO: ProcessCDR(1,14384621,1,1,2) [2025-02-02 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384621', 'tblTempUsageDetail_20' ) start [2025-02-02 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384621', 'tblTempUsageDetail_20' ) end [2025-02-02 09:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:00:22] Production.INFO: ==14570== Releasing lock... [2025-02-02 09:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:00:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:01:05 [end_date_ymd] => 2025-02-02 09:01:05 [RateCDR] => 1 ) [2025-02-02 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-02 06:01:05' and `end` < '2025-02-02 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-02 09:01:18] Production.INFO: count ==108 [2025-02-02 09:01:18] Production.ERROR: pbx CDR StartTime 2025-02-02 06:01:05 - End Time 2025-02-02 09:01:05 [2025-02-02 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384627', 'tblTempUsageDetail_20' ) start [2025-02-02 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384627', 'tblTempUsageDetail_20' ) end [2025-02-02 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384627', 'tblTempVendorCDR_20' ) start [2025-02-02 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384627', 'tblTempVendorCDR_20' ) end [2025-02-02 09:01:18] Production.INFO: ProcessCDR(1,14384627,1,1,2) [2025-02-02 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384627', 'tblTempUsageDetail_20' ) start [2025-02-02 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384627', 'tblTempUsageDetail_20' ) end [2025-02-02 09:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:01:22] Production.INFO: ==14661== Releasing lock... [2025-02-02 09:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:01:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:02:05 [end_date_ymd] => 2025-02-02 09:02:05 [RateCDR] => 1 ) [2025-02-02 09:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 06:02:05' and `end` < '2025-02-02 09:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 09:02:18] Production.INFO: count ==108 [2025-02-02 09:02:18] Production.ERROR: pbx CDR StartTime 2025-02-02 06:02:05 - End Time 2025-02-02 09:02:05 [2025-02-02 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384628', 'tblTempUsageDetail_20' ) start [2025-02-02 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384628', 'tblTempUsageDetail_20' ) end [2025-02-02 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384628', 'tblTempVendorCDR_20' ) start [2025-02-02 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384628', 'tblTempVendorCDR_20' ) end [2025-02-02 09:02:18] Production.INFO: ProcessCDR(1,14384628,1,1,2) [2025-02-02 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384628', 'tblTempUsageDetail_20' ) start [2025-02-02 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384628', 'tblTempUsageDetail_20' ) end [2025-02-02 09:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:02:22] Production.INFO: ==14761== Releasing lock... [2025-02-02 09:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:02:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:03:05 [end_date_ymd] => 2025-02-02 09:03:05 [RateCDR] => 1 ) [2025-02-02 09:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 06:03:05' and `end` < '2025-02-02 09:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 09:03:18] Production.INFO: count ==108 [2025-02-02 09:03:18] Production.ERROR: pbx CDR StartTime 2025-02-02 06:03:05 - End Time 2025-02-02 09:03:05 [2025-02-02 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384637', 'tblTempUsageDetail_20' ) start [2025-02-02 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384637', 'tblTempUsageDetail_20' ) end [2025-02-02 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384637', 'tblTempVendorCDR_20' ) start [2025-02-02 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384637', 'tblTempVendorCDR_20' ) end [2025-02-02 09:03:18] Production.INFO: ProcessCDR(1,14384637,1,1,2) [2025-02-02 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384637', 'tblTempUsageDetail_20' ) start [2025-02-02 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384637', 'tblTempUsageDetail_20' ) end [2025-02-02 09:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:03:21] Production.INFO: ==14841== Releasing lock... [2025-02-02 09:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:03:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:04:06 [end_date_ymd] => 2025-02-02 09:04:06 [RateCDR] => 1 ) [2025-02-02 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-02 06:04:06' and `end` < '2025-02-02 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-02 09:04:19] Production.INFO: count ==108 [2025-02-02 09:04:19] Production.ERROR: pbx CDR StartTime 2025-02-02 06:04:06 - End Time 2025-02-02 09:04:06 [2025-02-02 09:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384642', 'tblTempUsageDetail_20' ) start [2025-02-02 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384642', 'tblTempUsageDetail_20' ) end [2025-02-02 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384642', 'tblTempVendorCDR_20' ) start [2025-02-02 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384642', 'tblTempVendorCDR_20' ) end [2025-02-02 09:04:19] Production.INFO: ProcessCDR(1,14384642,1,1,2) [2025-02-02 09:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384642', 'tblTempUsageDetail_20' ) start [2025-02-02 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384642', 'tblTempUsageDetail_20' ) end [2025-02-02 09:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:04:22] Production.INFO: ==14920== Releasing lock... [2025-02-02 09:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:04:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:05:05 [end_date_ymd] => 2025-02-02 09:05:05 [RateCDR] => 1 ) [2025-02-02 09:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 06:05:05' and `end` < '2025-02-02 09:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 09:05:17] Production.INFO: count ==108 [2025-02-02 09:05:17] Production.ERROR: pbx CDR StartTime 2025-02-02 06:05:05 - End Time 2025-02-02 09:05:05 [2025-02-02 09:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384647', 'tblTempUsageDetail_20' ) start [2025-02-02 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384647', 'tblTempUsageDetail_20' ) end [2025-02-02 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384647', 'tblTempVendorCDR_20' ) start [2025-02-02 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384647', 'tblTempVendorCDR_20' ) end [2025-02-02 09:05:17] Production.INFO: ProcessCDR(1,14384647,1,1,2) [2025-02-02 09:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384647', 'tblTempUsageDetail_20' ) start [2025-02-02 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384647', 'tblTempUsageDetail_20' ) end [2025-02-02 09:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:05:21] Production.INFO: ==14994== Releasing lock... [2025-02-02 09:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:05:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:06:06 [end_date_ymd] => 2025-02-02 09:06:06 [RateCDR] => 1 ) [2025-02-02 09:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 06:06:06' and `end` < '2025-02-02 09:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 09:06:19] Production.INFO: count ==109 [2025-02-02 09:06:19] Production.ERROR: pbx CDR StartTime 2025-02-02 06:06:06 - End Time 2025-02-02 09:06:06 [2025-02-02 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384652', 'tblTempUsageDetail_20' ) start [2025-02-02 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384652', 'tblTempUsageDetail_20' ) end [2025-02-02 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384652', 'tblTempVendorCDR_20' ) start [2025-02-02 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384652', 'tblTempVendorCDR_20' ) end [2025-02-02 09:06:19] Production.INFO: ProcessCDR(1,14384652,1,1,2) [2025-02-02 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384652', 'tblTempUsageDetail_20' ) start [2025-02-02 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384652', 'tblTempUsageDetail_20' ) end [2025-02-02 09:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:06:22] Production.INFO: ==15073== Releasing lock... [2025-02-02 09:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:06:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:07:05 [end_date_ymd] => 2025-02-02 09:07:05 [RateCDR] => 1 ) [2025-02-02 09:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 06:07:05' and `end` < '2025-02-02 09:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 09:07:19] Production.INFO: count ==109 [2025-02-02 09:07:19] Production.ERROR: pbx CDR StartTime 2025-02-02 06:07:05 - End Time 2025-02-02 09:07:05 [2025-02-02 09:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384657', 'tblTempUsageDetail_20' ) start [2025-02-02 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384657', 'tblTempUsageDetail_20' ) end [2025-02-02 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384657', 'tblTempVendorCDR_20' ) start [2025-02-02 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384657', 'tblTempVendorCDR_20' ) end [2025-02-02 09:07:19] Production.INFO: ProcessCDR(1,14384657,1,1,2) [2025-02-02 09:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384657', 'tblTempUsageDetail_20' ) start [2025-02-02 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384657', 'tblTempUsageDetail_20' ) end [2025-02-02 09:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:07:22] Production.INFO: ==15188== Releasing lock... [2025-02-02 09:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:07:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:08:05 [end_date_ymd] => 2025-02-02 09:08:05 [RateCDR] => 1 ) [2025-02-02 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-02 06:08:05' and `end` < '2025-02-02 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-02 09:08:19] Production.INFO: count ==109 [2025-02-02 09:08:19] Production.ERROR: pbx CDR StartTime 2025-02-02 06:08:05 - End Time 2025-02-02 09:08:05 [2025-02-02 09:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384662', 'tblTempUsageDetail_20' ) start [2025-02-02 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384662', 'tblTempUsageDetail_20' ) end [2025-02-02 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384662', 'tblTempVendorCDR_20' ) start [2025-02-02 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384662', 'tblTempVendorCDR_20' ) end [2025-02-02 09:08:19] Production.INFO: ProcessCDR(1,14384662,1,1,2) [2025-02-02 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384662', 'tblTempUsageDetail_20' ) start [2025-02-02 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384662', 'tblTempUsageDetail_20' ) end [2025-02-02 09:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:08:22] Production.INFO: ==15264== Releasing lock... [2025-02-02 09:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:08:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:09:06 [end_date_ymd] => 2025-02-02 09:09:06 [RateCDR] => 1 ) [2025-02-02 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-02 06:09:06' and `end` < '2025-02-02 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-02 09:09:19] Production.INFO: count ==109 [2025-02-02 09:09:19] Production.ERROR: pbx CDR StartTime 2025-02-02 06:09:06 - End Time 2025-02-02 09:09:06 [2025-02-02 09:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384667', 'tblTempUsageDetail_20' ) start [2025-02-02 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384667', 'tblTempUsageDetail_20' ) end [2025-02-02 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384667', 'tblTempVendorCDR_20' ) start [2025-02-02 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384667', 'tblTempVendorCDR_20' ) end [2025-02-02 09:09:19] Production.INFO: ProcessCDR(1,14384667,1,1,2) [2025-02-02 09:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384667', 'tblTempUsageDetail_20' ) start [2025-02-02 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384667', 'tblTempUsageDetail_20' ) end [2025-02-02 09:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:09:23] Production.INFO: ==15362== Releasing lock... [2025-02-02 09:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:09:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:10:06 [end_date_ymd] => 2025-02-02 09:10:06 [RateCDR] => 1 ) [2025-02-02 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-02 06:10:06' and `end` < '2025-02-02 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-02 09:10:18] Production.INFO: count ==109 [2025-02-02 09:10:18] Production.ERROR: pbx CDR StartTime 2025-02-02 06:10:06 - End Time 2025-02-02 09:10:06 [2025-02-02 09:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384672', 'tblTempUsageDetail_20' ) start [2025-02-02 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384672', 'tblTempUsageDetail_20' ) end [2025-02-02 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384672', 'tblTempVendorCDR_20' ) start [2025-02-02 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384672', 'tblTempVendorCDR_20' ) end [2025-02-02 09:10:18] Production.INFO: ProcessCDR(1,14384672,1,1,2) [2025-02-02 09:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384672', 'tblTempUsageDetail_20' ) start [2025-02-02 09:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384672', 'tblTempUsageDetail_20' ) end [2025-02-02 09:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:10:22] Production.INFO: ==15436== Releasing lock... [2025-02-02 09:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:10:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:11:05 [end_date_ymd] => 2025-02-02 09:11:05 [RateCDR] => 1 ) [2025-02-02 09:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 06:11:05' and `end` < '2025-02-02 09:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 09:11:19] Production.INFO: count ==109 [2025-02-02 09:11:19] Production.ERROR: pbx CDR StartTime 2025-02-02 06:11:05 - End Time 2025-02-02 09:11:05 [2025-02-02 09:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384678', 'tblTempUsageDetail_20' ) start [2025-02-02 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384678', 'tblTempUsageDetail_20' ) end [2025-02-02 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384678', 'tblTempVendorCDR_20' ) start [2025-02-02 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384678', 'tblTempVendorCDR_20' ) end [2025-02-02 09:11:19] Production.INFO: ProcessCDR(1,14384678,1,1,2) [2025-02-02 09:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384678', 'tblTempUsageDetail_20' ) start [2025-02-02 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384678', 'tblTempUsageDetail_20' ) end [2025-02-02 09:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:11:22] Production.INFO: ==15516== Releasing lock... [2025-02-02 09:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:11:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:12:05 [end_date_ymd] => 2025-02-02 09:12:05 [RateCDR] => 1 ) [2025-02-02 09:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 06:12:05' and `end` < '2025-02-02 09:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 09:12:18] Production.INFO: count ==109 [2025-02-02 09:12:18] Production.ERROR: pbx CDR StartTime 2025-02-02 06:12:05 - End Time 2025-02-02 09:12:05 [2025-02-02 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384683', 'tblTempUsageDetail_20' ) start [2025-02-02 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384683', 'tblTempUsageDetail_20' ) end [2025-02-02 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384683', 'tblTempVendorCDR_20' ) start [2025-02-02 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384683', 'tblTempVendorCDR_20' ) end [2025-02-02 09:12:18] Production.INFO: ProcessCDR(1,14384683,1,1,2) [2025-02-02 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384683', 'tblTempUsageDetail_20' ) start [2025-02-02 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384683', 'tblTempUsageDetail_20' ) end [2025-02-02 09:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:12:22] Production.INFO: ==15599== Releasing lock... [2025-02-02 09:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:12:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-02 09:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:13:06 [end_date_ymd] => 2025-02-02 09:13:06 [RateCDR] => 1 ) [2025-02-02 09: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-02 06:13:06' and `end` < '2025-02-02 09: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-02 09:13:19] Production.INFO: count ==109 [2025-02-02 09:13:19] Production.ERROR: pbx CDR StartTime 2025-02-02 06:13:06 - End Time 2025-02-02 09:13:06 [2025-02-02 09:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384688', 'tblTempUsageDetail_20' ) start [2025-02-02 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384688', 'tblTempUsageDetail_20' ) end [2025-02-02 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384688', 'tblTempVendorCDR_20' ) start [2025-02-02 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384688', 'tblTempVendorCDR_20' ) end [2025-02-02 09:13:19] Production.INFO: ProcessCDR(1,14384688,1,1,2) [2025-02-02 09:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384688', 'tblTempUsageDetail_20' ) start [2025-02-02 09:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384688', 'tblTempUsageDetail_20' ) end [2025-02-02 09:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:13:22] Production.INFO: ==15670== Releasing lock... [2025-02-02 09:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:13:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:14:05 [end_date_ymd] => 2025-02-02 09:14:05 [RateCDR] => 1 ) [2025-02-02 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-02 06:14:05' and `end` < '2025-02-02 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-02 09:14:18] Production.INFO: count ==109 [2025-02-02 09:14:18] Production.ERROR: pbx CDR StartTime 2025-02-02 06:14:05 - End Time 2025-02-02 09:14:05 [2025-02-02 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384693', 'tblTempUsageDetail_20' ) start [2025-02-02 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384693', 'tblTempUsageDetail_20' ) end [2025-02-02 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384693', 'tblTempVendorCDR_20' ) start [2025-02-02 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384693', 'tblTempVendorCDR_20' ) end [2025-02-02 09:14:18] Production.INFO: ProcessCDR(1,14384693,1,1,2) [2025-02-02 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384693', 'tblTempUsageDetail_20' ) start [2025-02-02 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384693', 'tblTempUsageDetail_20' ) end [2025-02-02 09:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:14:21] Production.INFO: ==15743== Releasing lock... [2025-02-02 09:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:14:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:15:05 [end_date_ymd] => 2025-02-02 09:15:05 [RateCDR] => 1 ) [2025-02-02 09:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 06:15:05' and `end` < '2025-02-02 09:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 09:15:18] Production.INFO: count ==109 [2025-02-02 09:15:18] Production.ERROR: pbx CDR StartTime 2025-02-02 06:15:05 - End Time 2025-02-02 09:15:05 [2025-02-02 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384698', 'tblTempUsageDetail_20' ) start [2025-02-02 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384698', 'tblTempUsageDetail_20' ) end [2025-02-02 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384698', 'tblTempVendorCDR_20' ) start [2025-02-02 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384698', 'tblTempVendorCDR_20' ) end [2025-02-02 09:15:18] Production.INFO: ProcessCDR(1,14384698,1,1,2) [2025-02-02 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384698', 'tblTempUsageDetail_20' ) start [2025-02-02 09:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384698', 'tblTempUsageDetail_20' ) end [2025-02-02 09:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:15:21] Production.INFO: ==15819== Releasing lock... [2025-02-02 09:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:15:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:16:05 [end_date_ymd] => 2025-02-02 09:16:05 [RateCDR] => 1 ) [2025-02-02 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-02 06:16:05' and `end` < '2025-02-02 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-02 09:16:18] Production.INFO: count ==109 [2025-02-02 09:16:18] Production.ERROR: pbx CDR StartTime 2025-02-02 06:16:05 - End Time 2025-02-02 09:16:05 [2025-02-02 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384703', 'tblTempUsageDetail_20' ) start [2025-02-02 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384703', 'tblTempUsageDetail_20' ) end [2025-02-02 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384703', 'tblTempVendorCDR_20' ) start [2025-02-02 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384703', 'tblTempVendorCDR_20' ) end [2025-02-02 09:16:18] Production.INFO: ProcessCDR(1,14384703,1,1,2) [2025-02-02 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384703', 'tblTempUsageDetail_20' ) start [2025-02-02 09:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384703', 'tblTempUsageDetail_20' ) end [2025-02-02 09:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:16:21] Production.INFO: ==15892== Releasing lock... [2025-02-02 09:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:16:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:17:05 [end_date_ymd] => 2025-02-02 09:17:05 [RateCDR] => 1 ) [2025-02-02 09:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 06:17:05' and `end` < '2025-02-02 09:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 09:17:19] Production.INFO: count ==109 [2025-02-02 09:17:19] Production.ERROR: pbx CDR StartTime 2025-02-02 06:17:05 - End Time 2025-02-02 09:17:05 [2025-02-02 09:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384708', 'tblTempUsageDetail_20' ) start [2025-02-02 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384708', 'tblTempUsageDetail_20' ) end [2025-02-02 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384708', 'tblTempVendorCDR_20' ) start [2025-02-02 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384708', 'tblTempVendorCDR_20' ) end [2025-02-02 09:17:19] Production.INFO: ProcessCDR(1,14384708,1,1,2) [2025-02-02 09:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384708', 'tblTempUsageDetail_20' ) start [2025-02-02 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384708', 'tblTempUsageDetail_20' ) end [2025-02-02 09:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:17:22] Production.INFO: ==15970== Releasing lock... [2025-02-02 09:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:17:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:18:05 [end_date_ymd] => 2025-02-02 09:18:05 [RateCDR] => 1 ) [2025-02-02 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-02 06:18:05' and `end` < '2025-02-02 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-02 09:18:18] Production.INFO: count ==109 [2025-02-02 09:18:18] Production.ERROR: pbx CDR StartTime 2025-02-02 06:18:05 - End Time 2025-02-02 09:18:05 [2025-02-02 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384713', 'tblTempUsageDetail_20' ) start [2025-02-02 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384713', 'tblTempUsageDetail_20' ) end [2025-02-02 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384713', 'tblTempVendorCDR_20' ) start [2025-02-02 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384713', 'tblTempVendorCDR_20' ) end [2025-02-02 09:18:18] Production.INFO: ProcessCDR(1,14384713,1,1,2) [2025-02-02 09:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384713', 'tblTempUsageDetail_20' ) start [2025-02-02 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384713', 'tblTempUsageDetail_20' ) end [2025-02-02 09:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:18:22] Production.INFO: ==16047== Releasing lock... [2025-02-02 09:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:18:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:19:05 [end_date_ymd] => 2025-02-02 09:19:05 [RateCDR] => 1 ) [2025-02-02 09:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 06:19:05' and `end` < '2025-02-02 09:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 09:19:19] Production.INFO: count ==109 [2025-02-02 09:19:19] Production.ERROR: pbx CDR StartTime 2025-02-02 06:19:05 - End Time 2025-02-02 09:19:05 [2025-02-02 09:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384718', 'tblTempUsageDetail_20' ) start [2025-02-02 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384718', 'tblTempUsageDetail_20' ) end [2025-02-02 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384718', 'tblTempVendorCDR_20' ) start [2025-02-02 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384718', 'tblTempVendorCDR_20' ) end [2025-02-02 09:19:19] Production.INFO: ProcessCDR(1,14384718,1,1,2) [2025-02-02 09:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384718', 'tblTempUsageDetail_20' ) start [2025-02-02 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384718', 'tblTempUsageDetail_20' ) end [2025-02-02 09:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:19:22] Production.INFO: ==16140== Releasing lock... [2025-02-02 09:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:19:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:20:07 [end_date_ymd] => 2025-02-02 09:20:07 [RateCDR] => 1 ) [2025-02-02 09:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 06:20:07' and `end` < '2025-02-02 09:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 09:20:21] Production.INFO: count ==115 [2025-02-02 09:20:21] Production.ERROR: pbx CDR StartTime 2025-02-02 06:20:07 - End Time 2025-02-02 09:20:07 [2025-02-02 09:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384724', 'tblTempUsageDetail_20' ) start [2025-02-02 09:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384724', 'tblTempUsageDetail_20' ) end [2025-02-02 09:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384724', 'tblTempVendorCDR_20' ) start [2025-02-02 09:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384724', 'tblTempVendorCDR_20' ) end [2025-02-02 09:20:21] Production.INFO: ProcessCDR(1,14384724,1,1,2) [2025-02-02 09:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384724', 'tblTempUsageDetail_20' ) start [2025-02-02 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384724', 'tblTempUsageDetail_20' ) end [2025-02-02 09:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:20:24] Production.INFO: ==16217== Releasing lock... [2025-02-02 09:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:20:24] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:21:05 [end_date_ymd] => 2025-02-02 09:21:05 [RateCDR] => 1 ) [2025-02-02 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-02 06:21:05' and `end` < '2025-02-02 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-02 09:21:19] Production.INFO: count ==120 [2025-02-02 09:21:19] Production.ERROR: pbx CDR StartTime 2025-02-02 06:21:05 - End Time 2025-02-02 09:21:05 [2025-02-02 09:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384729', 'tblTempUsageDetail_20' ) start [2025-02-02 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384729', 'tblTempUsageDetail_20' ) end [2025-02-02 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384729', 'tblTempVendorCDR_20' ) start [2025-02-02 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384729', 'tblTempVendorCDR_20' ) end [2025-02-02 09:21:19] Production.INFO: ProcessCDR(1,14384729,1,1,2) [2025-02-02 09:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384729', 'tblTempUsageDetail_20' ) start [2025-02-02 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384729', 'tblTempUsageDetail_20' ) end [2025-02-02 09:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:21:24] Production.INFO: ==16289== Releasing lock... [2025-02-02 09:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:21:24] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:22:05 [end_date_ymd] => 2025-02-02 09:22:05 [RateCDR] => 1 ) [2025-02-02 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-02 06:22:05' and `end` < '2025-02-02 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-02 09:22:18] Production.INFO: count ==120 [2025-02-02 09:22:18] Production.ERROR: pbx CDR StartTime 2025-02-02 06:22:05 - End Time 2025-02-02 09:22:05 [2025-02-02 09:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384734', 'tblTempUsageDetail_20' ) start [2025-02-02 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384734', 'tblTempUsageDetail_20' ) end [2025-02-02 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384734', 'tblTempVendorCDR_20' ) start [2025-02-02 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384734', 'tblTempVendorCDR_20' ) end [2025-02-02 09:22:18] Production.INFO: ProcessCDR(1,14384734,1,1,2) [2025-02-02 09:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384734', 'tblTempUsageDetail_20' ) start [2025-02-02 09:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384734', 'tblTempUsageDetail_20' ) end [2025-02-02 09:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:22:21] Production.INFO: ==16402== Releasing lock... [2025-02-02 09:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:22:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:23:06 [end_date_ymd] => 2025-02-02 09:23:06 [RateCDR] => 1 ) [2025-02-02 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-02 06:23:06' and `end` < '2025-02-02 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-02 09:23:18] Production.INFO: count ==120 [2025-02-02 09:23:19] Production.ERROR: pbx CDR StartTime 2025-02-02 06:23:06 - End Time 2025-02-02 09:23:06 [2025-02-02 09:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384739', 'tblTempUsageDetail_20' ) start [2025-02-02 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384739', 'tblTempUsageDetail_20' ) end [2025-02-02 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384739', 'tblTempVendorCDR_20' ) start [2025-02-02 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384739', 'tblTempVendorCDR_20' ) end [2025-02-02 09:23:19] Production.INFO: ProcessCDR(1,14384739,1,1,2) [2025-02-02 09:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384739', 'tblTempUsageDetail_20' ) start [2025-02-02 09:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384739', 'tblTempUsageDetail_20' ) end [2025-02-02 09:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:23:22] Production.INFO: ==16482== Releasing lock... [2025-02-02 09:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:23:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:24:05 [end_date_ymd] => 2025-02-02 09:24:05 [RateCDR] => 1 ) [2025-02-02 09:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 06:24:05' and `end` < '2025-02-02 09:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 09:24:18] Production.INFO: count ==120 [2025-02-02 09:24:18] Production.ERROR: pbx CDR StartTime 2025-02-02 06:24:05 - End Time 2025-02-02 09:24:05 [2025-02-02 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384744', 'tblTempUsageDetail_20' ) start [2025-02-02 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384744', 'tblTempUsageDetail_20' ) end [2025-02-02 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384744', 'tblTempVendorCDR_20' ) start [2025-02-02 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384744', 'tblTempVendorCDR_20' ) end [2025-02-02 09:24:18] Production.INFO: ProcessCDR(1,14384744,1,1,2) [2025-02-02 09:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384744', 'tblTempUsageDetail_20' ) start [2025-02-02 09:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384744', 'tblTempUsageDetail_20' ) end [2025-02-02 09:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:24:21] Production.INFO: ==16555== Releasing lock... [2025-02-02 09:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:24:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:25:05 [end_date_ymd] => 2025-02-02 09:25:05 [RateCDR] => 1 ) [2025-02-02 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 06:25:05' and `end` < '2025-02-02 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 09:25:18] Production.INFO: count ==120 [2025-02-02 09:25:18] Production.ERROR: pbx CDR StartTime 2025-02-02 06:25:05 - End Time 2025-02-02 09:25:05 [2025-02-02 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384749', 'tblTempUsageDetail_20' ) start [2025-02-02 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384749', 'tblTempUsageDetail_20' ) end [2025-02-02 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384749', 'tblTempVendorCDR_20' ) start [2025-02-02 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384749', 'tblTempVendorCDR_20' ) end [2025-02-02 09:25:18] Production.INFO: ProcessCDR(1,14384749,1,1,2) [2025-02-02 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384749', 'tblTempUsageDetail_20' ) start [2025-02-02 09:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384749', 'tblTempUsageDetail_20' ) end [2025-02-02 09:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:25:21] Production.INFO: ==16628== Releasing lock... [2025-02-02 09:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:25:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:26:05 [end_date_ymd] => 2025-02-02 09:26:05 [RateCDR] => 1 ) [2025-02-02 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-02 06:26:05' and `end` < '2025-02-02 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-02 09:26:19] Production.INFO: count ==120 [2025-02-02 09:26:19] Production.ERROR: pbx CDR StartTime 2025-02-02 06:26:05 - End Time 2025-02-02 09:26:05 [2025-02-02 09:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384754', 'tblTempUsageDetail_20' ) start [2025-02-02 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384754', 'tblTempUsageDetail_20' ) end [2025-02-02 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384754', 'tblTempVendorCDR_20' ) start [2025-02-02 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384754', 'tblTempVendorCDR_20' ) end [2025-02-02 09:26:19] Production.INFO: ProcessCDR(1,14384754,1,1,2) [2025-02-02 09:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384754', 'tblTempUsageDetail_20' ) start [2025-02-02 09:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384754', 'tblTempUsageDetail_20' ) end [2025-02-02 09:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:26:22] Production.INFO: ==16719== Releasing lock... [2025-02-02 09:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:26:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:27:05 [end_date_ymd] => 2025-02-02 09:27:05 [RateCDR] => 1 ) [2025-02-02 09:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 06:27:05' and `end` < '2025-02-02 09:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 09:27:18] Production.INFO: count ==122 [2025-02-02 09:27:18] Production.ERROR: pbx CDR StartTime 2025-02-02 06:27:05 - End Time 2025-02-02 09:27:05 [2025-02-02 09:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384759', 'tblTempUsageDetail_20' ) start [2025-02-02 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384759', 'tblTempUsageDetail_20' ) end [2025-02-02 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384759', 'tblTempVendorCDR_20' ) start [2025-02-02 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384759', 'tblTempVendorCDR_20' ) end [2025-02-02 09:27:18] Production.INFO: ProcessCDR(1,14384759,1,1,2) [2025-02-02 09:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384759', 'tblTempUsageDetail_20' ) start [2025-02-02 09:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384759', 'tblTempUsageDetail_20' ) end [2025-02-02 09:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:27:21] Production.INFO: ==16791== Releasing lock... [2025-02-02 09:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:27:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:28:05 [end_date_ymd] => 2025-02-02 09:28:05 [RateCDR] => 1 ) [2025-02-02 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-02 06:28:05' and `end` < '2025-02-02 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-02 09:28:18] Production.INFO: count ==125 [2025-02-02 09:28:18] Production.ERROR: pbx CDR StartTime 2025-02-02 06:28:05 - End Time 2025-02-02 09:28:05 [2025-02-02 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384764', 'tblTempUsageDetail_20' ) start [2025-02-02 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384764', 'tblTempUsageDetail_20' ) end [2025-02-02 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384764', 'tblTempVendorCDR_20' ) start [2025-02-02 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384764', 'tblTempVendorCDR_20' ) end [2025-02-02 09:28:18] Production.INFO: ProcessCDR(1,14384764,1,1,2) [2025-02-02 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384764', 'tblTempUsageDetail_20' ) start [2025-02-02 09:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384764', 'tblTempUsageDetail_20' ) end [2025-02-02 09:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:28:21] Production.INFO: ==16865== Releasing lock... [2025-02-02 09:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:28:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:29:05 [end_date_ymd] => 2025-02-02 09:29:05 [RateCDR] => 1 ) [2025-02-02 09:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 06:29:05' and `end` < '2025-02-02 09:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 09:29:18] Production.INFO: count ==125 [2025-02-02 09:29:18] Production.ERROR: pbx CDR StartTime 2025-02-02 06:29:05 - End Time 2025-02-02 09:29:05 [2025-02-02 09:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384769', 'tblTempUsageDetail_20' ) start [2025-02-02 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384769', 'tblTempUsageDetail_20' ) end [2025-02-02 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384769', 'tblTempVendorCDR_20' ) start [2025-02-02 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384769', 'tblTempVendorCDR_20' ) end [2025-02-02 09:29:18] Production.INFO: ProcessCDR(1,14384769,1,1,2) [2025-02-02 09:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384769', 'tblTempUsageDetail_20' ) start [2025-02-02 09:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384769', 'tblTempUsageDetail_20' ) end [2025-02-02 09:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:29:21] Production.INFO: ==16937== Releasing lock... [2025-02-02 09:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:29:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:30:06 [end_date_ymd] => 2025-02-02 09:30:06 [RateCDR] => 1 ) [2025-02-02 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-02 06:30:06' and `end` < '2025-02-02 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-02 09:30:18] Production.INFO: count ==126 [2025-02-02 09:30:18] Production.ERROR: pbx CDR StartTime 2025-02-02 06:30:06 - End Time 2025-02-02 09:30:06 [2025-02-02 09:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384775', 'tblTempUsageDetail_20' ) start [2025-02-02 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384775', 'tblTempUsageDetail_20' ) end [2025-02-02 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384775', 'tblTempVendorCDR_20' ) start [2025-02-02 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384775', 'tblTempVendorCDR_20' ) end [2025-02-02 09:30:18] Production.INFO: ProcessCDR(1,14384775,1,1,2) [2025-02-02 09:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384775', 'tblTempUsageDetail_20' ) start [2025-02-02 09:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384775', 'tblTempUsageDetail_20' ) end [2025-02-02 09:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:30:22] Production.INFO: ==17011== Releasing lock... [2025-02-02 09:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:30:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:31:05 [end_date_ymd] => 2025-02-02 09:31:05 [RateCDR] => 1 ) [2025-02-02 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-02 06:31:05' and `end` < '2025-02-02 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-02 09:31:18] Production.INFO: count ==128 [2025-02-02 09:31:18] Production.ERROR: pbx CDR StartTime 2025-02-02 06:31:05 - End Time 2025-02-02 09:31:05 [2025-02-02 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384780', 'tblTempUsageDetail_20' ) start [2025-02-02 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384780', 'tblTempUsageDetail_20' ) end [2025-02-02 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384780', 'tblTempVendorCDR_20' ) start [2025-02-02 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384780', 'tblTempVendorCDR_20' ) end [2025-02-02 09:31:18] Production.INFO: ProcessCDR(1,14384780,1,1,2) [2025-02-02 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384780', 'tblTempUsageDetail_20' ) start [2025-02-02 09:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384780', 'tblTempUsageDetail_20' ) end [2025-02-02 09:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:31:21] Production.INFO: ==17087== Releasing lock... [2025-02-02 09:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:31:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:32:05 [end_date_ymd] => 2025-02-02 09:32:05 [RateCDR] => 1 ) [2025-02-02 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-02 06:32:05' and `end` < '2025-02-02 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-02 09:32:18] Production.INFO: count ==128 [2025-02-02 09:32:18] Production.ERROR: pbx CDR StartTime 2025-02-02 06:32:05 - End Time 2025-02-02 09:32:05 [2025-02-02 09:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384785', 'tblTempUsageDetail_20' ) start [2025-02-02 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384785', 'tblTempUsageDetail_20' ) end [2025-02-02 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384785', 'tblTempVendorCDR_20' ) start [2025-02-02 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384785', 'tblTempVendorCDR_20' ) end [2025-02-02 09:32:18] Production.INFO: ProcessCDR(1,14384785,1,1,2) [2025-02-02 09:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384785', 'tblTempUsageDetail_20' ) start [2025-02-02 09:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384785', 'tblTempUsageDetail_20' ) end [2025-02-02 09:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:32:21] Production.INFO: ==17165== Releasing lock... [2025-02-02 09:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:32:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:33:05 [end_date_ymd] => 2025-02-02 09:33:05 [RateCDR] => 1 ) [2025-02-02 09:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 06:33:05' and `end` < '2025-02-02 09:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 09:33:18] Production.INFO: count ==128 [2025-02-02 09:33:18] Production.ERROR: pbx CDR StartTime 2025-02-02 06:33:05 - End Time 2025-02-02 09:33:05 [2025-02-02 09:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384790', 'tblTempUsageDetail_20' ) start [2025-02-02 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384790', 'tblTempUsageDetail_20' ) end [2025-02-02 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384790', 'tblTempVendorCDR_20' ) start [2025-02-02 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384790', 'tblTempVendorCDR_20' ) end [2025-02-02 09:33:18] Production.INFO: ProcessCDR(1,14384790,1,1,2) [2025-02-02 09:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384790', 'tblTempUsageDetail_20' ) start [2025-02-02 09:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384790', 'tblTempUsageDetail_20' ) end [2025-02-02 09:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:33:21] Production.INFO: ==17238== Releasing lock... [2025-02-02 09:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:33:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:34:05 [end_date_ymd] => 2025-02-02 09:34:05 [RateCDR] => 1 ) [2025-02-02 09:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 06:34:05' and `end` < '2025-02-02 09:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 09:34:18] Production.INFO: count ==128 [2025-02-02 09:34:18] Production.ERROR: pbx CDR StartTime 2025-02-02 06:34:05 - End Time 2025-02-02 09:34:05 [2025-02-02 09:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384795', 'tblTempUsageDetail_20' ) start [2025-02-02 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384795', 'tblTempUsageDetail_20' ) end [2025-02-02 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384795', 'tblTempVendorCDR_20' ) start [2025-02-02 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384795', 'tblTempVendorCDR_20' ) end [2025-02-02 09:34:18] Production.INFO: ProcessCDR(1,14384795,1,1,2) [2025-02-02 09:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384795', 'tblTempUsageDetail_20' ) start [2025-02-02 09:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384795', 'tblTempUsageDetail_20' ) end [2025-02-02 09:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:34:21] Production.INFO: ==17312== Releasing lock... [2025-02-02 09:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:34:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:35:04 [end_date_ymd] => 2025-02-02 09:35:04 [RateCDR] => 1 ) [2025-02-02 09:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 06:35:04' and `end` < '2025-02-02 09:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 09:35:17] Production.INFO: count ==128 [2025-02-02 09:35:17] Production.ERROR: pbx CDR StartTime 2025-02-02 06:35:04 - End Time 2025-02-02 09:35:04 [2025-02-02 09:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384800', 'tblTempUsageDetail_20' ) start [2025-02-02 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384800', 'tblTempUsageDetail_20' ) end [2025-02-02 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384800', 'tblTempVendorCDR_20' ) start [2025-02-02 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384800', 'tblTempVendorCDR_20' ) end [2025-02-02 09:35:17] Production.INFO: ProcessCDR(1,14384800,1,1,2) [2025-02-02 09:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384800', 'tblTempUsageDetail_20' ) start [2025-02-02 09:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384800', 'tblTempUsageDetail_20' ) end [2025-02-02 09:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:35:20] Production.INFO: ==17386== Releasing lock... [2025-02-02 09:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:35:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:36:06 [end_date_ymd] => 2025-02-02 09:36:06 [RateCDR] => 1 ) [2025-02-02 09:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 06:36:06' and `end` < '2025-02-02 09:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 09:36:21] Production.INFO: count ==129 [2025-02-02 09:36:21] Production.ERROR: pbx CDR StartTime 2025-02-02 06:36:06 - End Time 2025-02-02 09:36:06 [2025-02-02 09:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384805', 'tblTempUsageDetail_20' ) start [2025-02-02 09:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384805', 'tblTempUsageDetail_20' ) end [2025-02-02 09:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384805', 'tblTempVendorCDR_20' ) start [2025-02-02 09:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384805', 'tblTempVendorCDR_20' ) end [2025-02-02 09:36:21] Production.INFO: ProcessCDR(1,14384805,1,1,2) [2025-02-02 09:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384805', 'tblTempUsageDetail_20' ) start [2025-02-02 09:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384805', 'tblTempUsageDetail_20' ) end [2025-02-02 09:36:26] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:36:26] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:36:26] Production.INFO: ==17457== Releasing lock... [2025-02-02 09:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:36:26] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:37:06 [end_date_ymd] => 2025-02-02 09:37:06 [RateCDR] => 1 ) [2025-02-02 09:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 06:37:06' and `end` < '2025-02-02 09:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 09:37:20] Production.INFO: count ==129 [2025-02-02 09:37:20] Production.ERROR: pbx CDR StartTime 2025-02-02 06:37:06 - End Time 2025-02-02 09:37:06 [2025-02-02 09:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384810', 'tblTempUsageDetail_20' ) start [2025-02-02 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384810', 'tblTempUsageDetail_20' ) end [2025-02-02 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384810', 'tblTempVendorCDR_20' ) start [2025-02-02 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384810', 'tblTempVendorCDR_20' ) end [2025-02-02 09:37:20] Production.INFO: ProcessCDR(1,14384810,1,1,2) [2025-02-02 09:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384810', 'tblTempUsageDetail_20' ) start [2025-02-02 09:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384810', 'tblTempUsageDetail_20' ) end [2025-02-02 09:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:37:23] Production.INFO: ==17532== Releasing lock... [2025-02-02 09:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:37:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:38:05 [end_date_ymd] => 2025-02-02 09:38:05 [RateCDR] => 1 ) [2025-02-02 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-02 06:38:05' and `end` < '2025-02-02 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-02 09:38:17] Production.INFO: count ==129 [2025-02-02 09:38:17] Production.ERROR: pbx CDR StartTime 2025-02-02 06:38:05 - End Time 2025-02-02 09:38:05 [2025-02-02 09:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384815', 'tblTempUsageDetail_20' ) start [2025-02-02 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384815', 'tblTempUsageDetail_20' ) end [2025-02-02 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384815', 'tblTempVendorCDR_20' ) start [2025-02-02 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384815', 'tblTempVendorCDR_20' ) end [2025-02-02 09:38:17] Production.INFO: ProcessCDR(1,14384815,1,1,2) [2025-02-02 09:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384815', 'tblTempUsageDetail_20' ) start [2025-02-02 09:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384815', 'tblTempUsageDetail_20' ) end [2025-02-02 09:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:38:21] Production.INFO: ==17659== Releasing lock... [2025-02-02 09:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:38:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:39:06 [end_date_ymd] => 2025-02-02 09:39:06 [RateCDR] => 1 ) [2025-02-02 09:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 06:39:06' and `end` < '2025-02-02 09:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 09:39:18] Production.INFO: count ==129 [2025-02-02 09:39:18] Production.ERROR: pbx CDR StartTime 2025-02-02 06:39:06 - End Time 2025-02-02 09:39:06 [2025-02-02 09:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384820', 'tblTempUsageDetail_20' ) start [2025-02-02 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384820', 'tblTempUsageDetail_20' ) end [2025-02-02 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384820', 'tblTempVendorCDR_20' ) start [2025-02-02 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384820', 'tblTempVendorCDR_20' ) end [2025-02-02 09:39:18] Production.INFO: ProcessCDR(1,14384820,1,1,2) [2025-02-02 09:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384820', 'tblTempUsageDetail_20' ) start [2025-02-02 09:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384820', 'tblTempUsageDetail_20' ) end [2025-02-02 09:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:39:21] Production.INFO: ==17741== Releasing lock... [2025-02-02 09:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:39:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:40:06 [end_date_ymd] => 2025-02-02 09:40:06 [RateCDR] => 1 ) [2025-02-02 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-02 06:40:06' and `end` < '2025-02-02 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-02 09:40:20] Production.INFO: count ==129 [2025-02-02 09:40:20] Production.ERROR: pbx CDR StartTime 2025-02-02 06:40:06 - End Time 2025-02-02 09:40:06 [2025-02-02 09:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384826', 'tblTempUsageDetail_20' ) start [2025-02-02 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384826', 'tblTempUsageDetail_20' ) end [2025-02-02 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384826', 'tblTempVendorCDR_20' ) start [2025-02-02 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384826', 'tblTempVendorCDR_20' ) end [2025-02-02 09:40:20] Production.INFO: ProcessCDR(1,14384826,1,1,2) [2025-02-02 09:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384826', 'tblTempUsageDetail_20' ) start [2025-02-02 09:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384826', 'tblTempUsageDetail_20' ) end [2025-02-02 09:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:40:23] Production.INFO: ==17826== Releasing lock... [2025-02-02 09:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:40:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:41:05 [end_date_ymd] => 2025-02-02 09:41:05 [RateCDR] => 1 ) [2025-02-02 09:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 06:41:05' and `end` < '2025-02-02 09:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 09:41:18] Production.INFO: count ==129 [2025-02-02 09:41:18] Production.ERROR: pbx CDR StartTime 2025-02-02 06:41:05 - End Time 2025-02-02 09:41:05 [2025-02-02 09:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384831', 'tblTempUsageDetail_20' ) start [2025-02-02 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384831', 'tblTempUsageDetail_20' ) end [2025-02-02 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384831', 'tblTempVendorCDR_20' ) start [2025-02-02 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384831', 'tblTempVendorCDR_20' ) end [2025-02-02 09:41:18] Production.INFO: ProcessCDR(1,14384831,1,1,2) [2025-02-02 09:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384831', 'tblTempUsageDetail_20' ) start [2025-02-02 09:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384831', 'tblTempUsageDetail_20' ) end [2025-02-02 09:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:41:22] Production.INFO: ==17911== Releasing lock... [2025-02-02 09:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:41:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:42:05 [end_date_ymd] => 2025-02-02 09:42:05 [RateCDR] => 1 ) [2025-02-02 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-02 06:42:05' and `end` < '2025-02-02 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-02 09:42:18] Production.INFO: count ==129 [2025-02-02 09:42:18] Production.ERROR: pbx CDR StartTime 2025-02-02 06:42:05 - End Time 2025-02-02 09:42:05 [2025-02-02 09:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384836', 'tblTempUsageDetail_20' ) start [2025-02-02 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384836', 'tblTempUsageDetail_20' ) end [2025-02-02 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384836', 'tblTempVendorCDR_20' ) start [2025-02-02 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384836', 'tblTempVendorCDR_20' ) end [2025-02-02 09:42:18] Production.INFO: ProcessCDR(1,14384836,1,1,2) [2025-02-02 09:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384836', 'tblTempUsageDetail_20' ) start [2025-02-02 09:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384836', 'tblTempUsageDetail_20' ) end [2025-02-02 09:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:42:21] Production.INFO: ==17993== Releasing lock... [2025-02-02 09:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:42:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:43:06 [end_date_ymd] => 2025-02-02 09:43:06 [RateCDR] => 1 ) [2025-02-02 09:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 06:43:06' and `end` < '2025-02-02 09:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 09:43:19] Production.INFO: count ==129 [2025-02-02 09:43:19] Production.ERROR: pbx CDR StartTime 2025-02-02 06:43:06 - End Time 2025-02-02 09:43:06 [2025-02-02 09:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384841', 'tblTempUsageDetail_20' ) start [2025-02-02 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384841', 'tblTempUsageDetail_20' ) end [2025-02-02 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384841', 'tblTempVendorCDR_20' ) start [2025-02-02 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384841', 'tblTempVendorCDR_20' ) end [2025-02-02 09:43:19] Production.INFO: ProcessCDR(1,14384841,1,1,2) [2025-02-02 09:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384841', 'tblTempUsageDetail_20' ) start [2025-02-02 09:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384841', 'tblTempUsageDetail_20' ) end [2025-02-02 09:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:43:22] Production.INFO: ==18076== Releasing lock... [2025-02-02 09:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:43:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:44:05 [end_date_ymd] => 2025-02-02 09:44:05 [RateCDR] => 1 ) [2025-02-02 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-02 06:44:05' and `end` < '2025-02-02 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-02 09:44:18] Production.INFO: count ==129 [2025-02-02 09:44:18] Production.ERROR: pbx CDR StartTime 2025-02-02 06:44:05 - End Time 2025-02-02 09:44:05 [2025-02-02 09:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384846', 'tblTempUsageDetail_20' ) start [2025-02-02 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384846', 'tblTempUsageDetail_20' ) end [2025-02-02 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384846', 'tblTempVendorCDR_20' ) start [2025-02-02 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384846', 'tblTempVendorCDR_20' ) end [2025-02-02 09:44:18] Production.INFO: ProcessCDR(1,14384846,1,1,2) [2025-02-02 09:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384846', 'tblTempUsageDetail_20' ) start [2025-02-02 09:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384846', 'tblTempUsageDetail_20' ) end [2025-02-02 09:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:44:22] Production.INFO: ==18158== Releasing lock... [2025-02-02 09:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:44:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:45:05 [end_date_ymd] => 2025-02-02 09:45:05 [RateCDR] => 1 ) [2025-02-02 09:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 06:45:05' and `end` < '2025-02-02 09:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 09:45:18] Production.INFO: count ==129 [2025-02-02 09:45:18] Production.ERROR: pbx CDR StartTime 2025-02-02 06:45:05 - End Time 2025-02-02 09:45:05 [2025-02-02 09:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384851', 'tblTempUsageDetail_20' ) start [2025-02-02 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384851', 'tblTempUsageDetail_20' ) end [2025-02-02 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384851', 'tblTempVendorCDR_20' ) start [2025-02-02 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384851', 'tblTempVendorCDR_20' ) end [2025-02-02 09:45:18] Production.INFO: ProcessCDR(1,14384851,1,1,2) [2025-02-02 09:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384851', 'tblTempUsageDetail_20' ) start [2025-02-02 09:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384851', 'tblTempUsageDetail_20' ) end [2025-02-02 09:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:45:22] Production.INFO: ==18236== Releasing lock... [2025-02-02 09:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:45:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:46:06 [end_date_ymd] => 2025-02-02 09:46:06 [RateCDR] => 1 ) [2025-02-02 09:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 06:46:06' and `end` < '2025-02-02 09:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 09:46:19] Production.INFO: count ==129 [2025-02-02 09:46:19] Production.ERROR: pbx CDR StartTime 2025-02-02 06:46:06 - End Time 2025-02-02 09:46:06 [2025-02-02 09:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384856', 'tblTempUsageDetail_20' ) start [2025-02-02 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384856', 'tblTempUsageDetail_20' ) end [2025-02-02 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384856', 'tblTempVendorCDR_20' ) start [2025-02-02 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384856', 'tblTempVendorCDR_20' ) end [2025-02-02 09:46:19] Production.INFO: ProcessCDR(1,14384856,1,1,2) [2025-02-02 09:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384856', 'tblTempUsageDetail_20' ) start [2025-02-02 09:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384856', 'tblTempUsageDetail_20' ) end [2025-02-02 09:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:46:22] Production.INFO: ==18307== Releasing lock... [2025-02-02 09:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:46:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:47:05 [end_date_ymd] => 2025-02-02 09:47:05 [RateCDR] => 1 ) [2025-02-02 09:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 06:47:05' and `end` < '2025-02-02 09:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 09:47:19] Production.INFO: count ==132 [2025-02-02 09:47:19] Production.ERROR: pbx CDR StartTime 2025-02-02 06:47:05 - End Time 2025-02-02 09:47:05 [2025-02-02 09:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384861', 'tblTempUsageDetail_20' ) start [2025-02-02 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384861', 'tblTempUsageDetail_20' ) end [2025-02-02 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384861', 'tblTempVendorCDR_20' ) start [2025-02-02 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384861', 'tblTempVendorCDR_20' ) end [2025-02-02 09:47:19] Production.INFO: ProcessCDR(1,14384861,1,1,2) [2025-02-02 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384861', 'tblTempUsageDetail_20' ) start [2025-02-02 09:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384861', 'tblTempUsageDetail_20' ) end [2025-02-02 09:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:47:22] Production.INFO: ==18380== Releasing lock... [2025-02-02 09:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:47:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-02 09:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:48:06 [end_date_ymd] => 2025-02-02 09:48:06 [RateCDR] => 1 ) [2025-02-02 09: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-02 06:48:06' and `end` < '2025-02-02 09: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-02 09:48:19] Production.INFO: count ==133 [2025-02-02 09:48:19] Production.ERROR: pbx CDR StartTime 2025-02-02 06:48:06 - End Time 2025-02-02 09:48:06 [2025-02-02 09:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384866', 'tblTempUsageDetail_20' ) start [2025-02-02 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384866', 'tblTempUsageDetail_20' ) end [2025-02-02 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384866', 'tblTempVendorCDR_20' ) start [2025-02-02 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384866', 'tblTempVendorCDR_20' ) end [2025-02-02 09:48:19] Production.INFO: ProcessCDR(1,14384866,1,1,2) [2025-02-02 09:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384866', 'tblTempUsageDetail_20' ) start [2025-02-02 09:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384866', 'tblTempUsageDetail_20' ) end [2025-02-02 09:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:48:22] Production.INFO: ==18453== Releasing lock... [2025-02-02 09:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:48:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-02 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:49:05 [end_date_ymd] => 2025-02-02 09:49:05 [RateCDR] => 1 ) [2025-02-02 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-02 06:49:05' and `end` < '2025-02-02 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-02 09:49:18] Production.INFO: count ==149 [2025-02-02 09:49:18] Production.ERROR: pbx CDR StartTime 2025-02-02 06:49:05 - End Time 2025-02-02 09:49:05 [2025-02-02 09:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384871', 'tblTempUsageDetail_20' ) start [2025-02-02 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384871', 'tblTempUsageDetail_20' ) end [2025-02-02 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384871', 'tblTempVendorCDR_20' ) start [2025-02-02 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384871', 'tblTempVendorCDR_20' ) end [2025-02-02 09:49:18] Production.INFO: ProcessCDR(1,14384871,1,1,2) [2025-02-02 09:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384871', 'tblTempUsageDetail_20' ) start [2025-02-02 09:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384871', 'tblTempUsageDetail_20' ) end [2025-02-02 09:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:49:21] Production.INFO: ==18531== Releasing lock... [2025-02-02 09:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:49:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-02 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:50:06 [end_date_ymd] => 2025-02-02 09:50:06 [RateCDR] => 1 ) [2025-02-02 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-02 06:50:06' and `end` < '2025-02-02 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-02 09:50:19] Production.INFO: count ==189 [2025-02-02 09:50:19] Production.ERROR: pbx CDR StartTime 2025-02-02 06:50:06 - End Time 2025-02-02 09:50:06 [2025-02-02 09:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384877', 'tblTempUsageDetail_20' ) start [2025-02-02 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384877', 'tblTempUsageDetail_20' ) end [2025-02-02 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384877', 'tblTempVendorCDR_20' ) start [2025-02-02 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384877', 'tblTempVendorCDR_20' ) end [2025-02-02 09:50:19] Production.INFO: ProcessCDR(1,14384877,1,1,2) [2025-02-02 09:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384877', 'tblTempUsageDetail_20' ) start [2025-02-02 09:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384877', 'tblTempUsageDetail_20' ) end [2025-02-02 09:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:50:22] Production.INFO: ==18608== Releasing lock... [2025-02-02 09:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:50:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-02 09:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:51:06 [end_date_ymd] => 2025-02-02 09:51:06 [RateCDR] => 1 ) [2025-02-02 09:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 06:51:06' and `end` < '2025-02-02 09:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 09:51:20] Production.INFO: count ==242 [2025-02-02 09:51:20] Production.ERROR: pbx CDR StartTime 2025-02-02 06:51:06 - End Time 2025-02-02 09:51:06 [2025-02-02 09:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384882', 'tblTempUsageDetail_20' ) start [2025-02-02 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384882', 'tblTempUsageDetail_20' ) end [2025-02-02 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384882', 'tblTempVendorCDR_20' ) start [2025-02-02 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384882', 'tblTempVendorCDR_20' ) end [2025-02-02 09:51:20] Production.INFO: ProcessCDR(1,14384882,1,1,2) [2025-02-02 09:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384882', 'tblTempUsageDetail_20' ) start [2025-02-02 09:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384882', 'tblTempUsageDetail_20' ) end [2025-02-02 09:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:51:23] Production.INFO: ==18690== Releasing lock... [2025-02-02 09:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:51:23] Production.INFO: 30 MB #Memory Used# [2025-02-02 09:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:52:06 [end_date_ymd] => 2025-02-02 09:52:06 [RateCDR] => 1 ) [2025-02-02 09:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 06:52:06' and `end` < '2025-02-02 09:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 09:52:19] Production.INFO: count ==242 [2025-02-02 09:52:19] Production.ERROR: pbx CDR StartTime 2025-02-02 06:52:06 - End Time 2025-02-02 09:52:06 [2025-02-02 09:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384887', 'tblTempUsageDetail_20' ) start [2025-02-02 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384887', 'tblTempUsageDetail_20' ) end [2025-02-02 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384887', 'tblTempVendorCDR_20' ) start [2025-02-02 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384887', 'tblTempVendorCDR_20' ) end [2025-02-02 09:52:19] Production.INFO: ProcessCDR(1,14384887,1,1,2) [2025-02-02 09:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384887', 'tblTempUsageDetail_20' ) start [2025-02-02 09:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384887', 'tblTempUsageDetail_20' ) end [2025-02-02 09:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:52:22] Production.INFO: ==18766== Releasing lock... [2025-02-02 09:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:52:22] Production.INFO: 30 MB #Memory Used# [2025-02-02 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:53:05 [end_date_ymd] => 2025-02-02 09:53:05 [RateCDR] => 1 ) [2025-02-02 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-02 06:53:05' and `end` < '2025-02-02 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-02 09:53:18] Production.INFO: count ==242 [2025-02-02 09:53:18] Production.ERROR: pbx CDR StartTime 2025-02-02 06:53:05 - End Time 2025-02-02 09:53:05 [2025-02-02 09:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384892', 'tblTempUsageDetail_20' ) start [2025-02-02 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384892', 'tblTempUsageDetail_20' ) end [2025-02-02 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384892', 'tblTempVendorCDR_20' ) start [2025-02-02 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384892', 'tblTempVendorCDR_20' ) end [2025-02-02 09:53:18] Production.INFO: ProcessCDR(1,14384892,1,1,2) [2025-02-02 09:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384892', 'tblTempUsageDetail_20' ) start [2025-02-02 09:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384892', 'tblTempUsageDetail_20' ) end [2025-02-02 09:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:53:21] Production.INFO: ==18880== Releasing lock... [2025-02-02 09:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:53:21] Production.INFO: 30 MB #Memory Used# [2025-02-02 09:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:54:06 [end_date_ymd] => 2025-02-02 09:54:06 [RateCDR] => 1 ) [2025-02-02 09:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 06:54:06' and `end` < '2025-02-02 09:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 09:54:18] Production.INFO: count ==243 [2025-02-02 09:54:19] Production.ERROR: pbx CDR StartTime 2025-02-02 06:54:06 - End Time 2025-02-02 09:54:06 [2025-02-02 09:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384897', 'tblTempUsageDetail_20' ) start [2025-02-02 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384897', 'tblTempUsageDetail_20' ) end [2025-02-02 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384897', 'tblTempVendorCDR_20' ) start [2025-02-02 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384897', 'tblTempVendorCDR_20' ) end [2025-02-02 09:54:19] Production.INFO: ProcessCDR(1,14384897,1,1,2) [2025-02-02 09:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384897', 'tblTempUsageDetail_20' ) start [2025-02-02 09:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384897', 'tblTempUsageDetail_20' ) end [2025-02-02 09:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:54:23] Production.INFO: ==18956== Releasing lock... [2025-02-02 09:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:54:23] Production.INFO: 30 MB #Memory Used# [2025-02-02 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:55:05 [end_date_ymd] => 2025-02-02 09:55:05 [RateCDR] => 1 ) [2025-02-02 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-02 06:55:05' and `end` < '2025-02-02 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-02 09:55:19] Production.INFO: count ==243 [2025-02-02 09:55:19] Production.ERROR: pbx CDR StartTime 2025-02-02 06:55:05 - End Time 2025-02-02 09:55:05 [2025-02-02 09:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384902', 'tblTempUsageDetail_20' ) start [2025-02-02 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384902', 'tblTempUsageDetail_20' ) end [2025-02-02 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384902', 'tblTempVendorCDR_20' ) start [2025-02-02 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384902', 'tblTempVendorCDR_20' ) end [2025-02-02 09:55:19] Production.INFO: ProcessCDR(1,14384902,1,1,2) [2025-02-02 09:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384902', 'tblTempUsageDetail_20' ) start [2025-02-02 09:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384902', 'tblTempUsageDetail_20' ) end [2025-02-02 09:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:55:22] Production.INFO: ==19032== Releasing lock... [2025-02-02 09:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:55:22] Production.INFO: 30 MB #Memory Used# [2025-02-02 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:56:05 [end_date_ymd] => 2025-02-02 09:56:05 [RateCDR] => 1 ) [2025-02-02 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-02 06:56:05' and `end` < '2025-02-02 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-02 09:56:18] Production.INFO: count ==243 [2025-02-02 09:56:18] Production.ERROR: pbx CDR StartTime 2025-02-02 06:56:05 - End Time 2025-02-02 09:56:05 [2025-02-02 09:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384907', 'tblTempUsageDetail_20' ) start [2025-02-02 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384907', 'tblTempUsageDetail_20' ) end [2025-02-02 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384907', 'tblTempVendorCDR_20' ) start [2025-02-02 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384907', 'tblTempVendorCDR_20' ) end [2025-02-02 09:56:18] Production.INFO: ProcessCDR(1,14384907,1,1,2) [2025-02-02 09:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384907', 'tblTempUsageDetail_20' ) start [2025-02-02 09:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384907', 'tblTempUsageDetail_20' ) end [2025-02-02 09:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:56:21] Production.INFO: ==19112== Releasing lock... [2025-02-02 09:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:56:21] Production.INFO: 30 MB #Memory Used# [2025-02-02 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:57:05 [end_date_ymd] => 2025-02-02 09:57:05 [RateCDR] => 1 ) [2025-02-02 09:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 06:57:05' and `end` < '2025-02-02 09:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 09:57:18] Production.INFO: count ==243 [2025-02-02 09:57:18] Production.ERROR: pbx CDR StartTime 2025-02-02 06:57:05 - End Time 2025-02-02 09:57:05 [2025-02-02 09:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384912', 'tblTempUsageDetail_20' ) start [2025-02-02 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384912', 'tblTempUsageDetail_20' ) end [2025-02-02 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384912', 'tblTempVendorCDR_20' ) start [2025-02-02 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384912', 'tblTempVendorCDR_20' ) end [2025-02-02 09:57:18] Production.INFO: ProcessCDR(1,14384912,1,1,2) [2025-02-02 09:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384912', 'tblTempUsageDetail_20' ) start [2025-02-02 09:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384912', 'tblTempUsageDetail_20' ) end [2025-02-02 09:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:57:22] Production.INFO: ==19185== Releasing lock... [2025-02-02 09:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:57:22] Production.INFO: 30 MB #Memory Used# [2025-02-02 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:58:05 [end_date_ymd] => 2025-02-02 09:58:05 [RateCDR] => 1 ) [2025-02-02 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-02 06:58:05' and `end` < '2025-02-02 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-02 09:58:18] Production.INFO: count ==243 [2025-02-02 09:58:18] Production.ERROR: pbx CDR StartTime 2025-02-02 06:58:05 - End Time 2025-02-02 09:58:05 [2025-02-02 09:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384917', 'tblTempUsageDetail_20' ) start [2025-02-02 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384917', 'tblTempUsageDetail_20' ) end [2025-02-02 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384917', 'tblTempVendorCDR_20' ) start [2025-02-02 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384917', 'tblTempVendorCDR_20' ) end [2025-02-02 09:58:18] Production.INFO: ProcessCDR(1,14384917,1,1,2) [2025-02-02 09:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384917', 'tblTempUsageDetail_20' ) start [2025-02-02 09:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384917', 'tblTempUsageDetail_20' ) end [2025-02-02 09:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:58:21] Production.INFO: ==19260== Releasing lock... [2025-02-02 09:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:58:21] Production.INFO: 30 MB #Memory Used# [2025-02-02 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 06:59:05 [end_date_ymd] => 2025-02-02 09:59:05 [RateCDR] => 1 ) [2025-02-02 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-02 06:59:05' and `end` < '2025-02-02 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-02 09:59:18] Production.INFO: count ==244 [2025-02-02 09:59:18] Production.ERROR: pbx CDR StartTime 2025-02-02 06:59:05 - End Time 2025-02-02 09:59:05 [2025-02-02 09:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384922', 'tblTempUsageDetail_20' ) start [2025-02-02 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384922', 'tblTempUsageDetail_20' ) end [2025-02-02 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384922', 'tblTempVendorCDR_20' ) start [2025-02-02 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384922', 'tblTempVendorCDR_20' ) end [2025-02-02 09:59:18] Production.INFO: ProcessCDR(1,14384922,1,1,2) [2025-02-02 09:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 09:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384922', 'tblTempUsageDetail_20' ) start [2025-02-02 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384922', 'tblTempUsageDetail_20' ) end [2025-02-02 09:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 09:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 09:59:23] Production.INFO: ==19334== Releasing lock... [2025-02-02 09:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 09:59:23] Production.INFO: 30 MB #Memory Used# [2025-02-02 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:00:06 [end_date_ymd] => 2025-02-02 10:00:06 [RateCDR] => 1 ) [2025-02-02 10:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 07:00:06' and `end` < '2025-02-02 10:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 10:00:19] Production.INFO: count ==245 [2025-02-02 10:00:19] Production.ERROR: pbx CDR StartTime 2025-02-02 07:00:06 - End Time 2025-02-02 10:00:06 [2025-02-02 10:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384928', 'tblTempUsageDetail_20' ) start [2025-02-02 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384928', 'tblTempUsageDetail_20' ) end [2025-02-02 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384928', 'tblTempVendorCDR_20' ) start [2025-02-02 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384928', 'tblTempVendorCDR_20' ) end [2025-02-02 10:00:19] Production.INFO: ProcessCDR(1,14384928,1,1,2) [2025-02-02 10:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384928', 'tblTempUsageDetail_20' ) start [2025-02-02 10:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384928', 'tblTempUsageDetail_20' ) end [2025-02-02 10:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:00:22] Production.INFO: ==19413== Releasing lock... [2025-02-02 10:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:00:22] Production.INFO: 30 MB #Memory Used# [2025-02-02 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:01:05 [end_date_ymd] => 2025-02-02 10:01:05 [RateCDR] => 1 ) [2025-02-02 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-02 07:01:05' and `end` < '2025-02-02 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-02 10:01:18] Production.INFO: count ==245 [2025-02-02 10:01:18] Production.ERROR: pbx CDR StartTime 2025-02-02 07:01:05 - End Time 2025-02-02 10:01:05 [2025-02-02 10:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384933', 'tblTempUsageDetail_20' ) start [2025-02-02 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384933', 'tblTempUsageDetail_20' ) end [2025-02-02 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384933', 'tblTempVendorCDR_20' ) start [2025-02-02 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384933', 'tblTempVendorCDR_20' ) end [2025-02-02 10:01:18] Production.INFO: ProcessCDR(1,14384933,1,1,2) [2025-02-02 10:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384933', 'tblTempUsageDetail_20' ) start [2025-02-02 10:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384933', 'tblTempUsageDetail_20' ) end [2025-02-02 10:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:01:21] Production.INFO: ==19502== Releasing lock... [2025-02-02 10:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:01:21] Production.INFO: 30 MB #Memory Used# [2025-02-02 10:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:02:06 [end_date_ymd] => 2025-02-02 10:02:06 [RateCDR] => 1 ) [2025-02-02 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-02 07:02:06' and `end` < '2025-02-02 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-02 10:02:20] Production.INFO: count ==246 [2025-02-02 10:02:20] Production.ERROR: pbx CDR StartTime 2025-02-02 07:02:06 - End Time 2025-02-02 10:02:06 [2025-02-02 10:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384938', 'tblTempUsageDetail_20' ) start [2025-02-02 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384938', 'tblTempUsageDetail_20' ) end [2025-02-02 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384938', 'tblTempVendorCDR_20' ) start [2025-02-02 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384938', 'tblTempVendorCDR_20' ) end [2025-02-02 10:02:20] Production.INFO: ProcessCDR(1,14384938,1,1,2) [2025-02-02 10:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384938', 'tblTempUsageDetail_20' ) start [2025-02-02 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384938', 'tblTempUsageDetail_20' ) end [2025-02-02 10:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:02:24] Production.INFO: ==19577== Releasing lock... [2025-02-02 10:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:02:24] Production.INFO: 30 MB #Memory Used# [2025-02-02 10:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:03:06 [end_date_ymd] => 2025-02-02 10:03:06 [RateCDR] => 1 ) [2025-02-02 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-02 07:03:06' and `end` < '2025-02-02 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-02 10:03:20] Production.INFO: count ==246 [2025-02-02 10:03:20] Production.ERROR: pbx CDR StartTime 2025-02-02 07:03:06 - End Time 2025-02-02 10:03:06 [2025-02-02 10:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384943', 'tblTempUsageDetail_20' ) start [2025-02-02 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384943', 'tblTempUsageDetail_20' ) end [2025-02-02 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384943', 'tblTempVendorCDR_20' ) start [2025-02-02 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384943', 'tblTempVendorCDR_20' ) end [2025-02-02 10:03:20] Production.INFO: ProcessCDR(1,14384943,1,1,2) [2025-02-02 10:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384943', 'tblTempUsageDetail_20' ) start [2025-02-02 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384943', 'tblTempUsageDetail_20' ) end [2025-02-02 10:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:03:24] Production.INFO: ==19649== Releasing lock... [2025-02-02 10:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:03:24] Production.INFO: 30 MB #Memory Used# [2025-02-02 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:04:06 [end_date_ymd] => 2025-02-02 10:04:06 [RateCDR] => 1 ) [2025-02-02 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-02 07:04:06' and `end` < '2025-02-02 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-02 10:04:20] Production.INFO: count ==246 [2025-02-02 10:04:20] Production.ERROR: pbx CDR StartTime 2025-02-02 07:04:06 - End Time 2025-02-02 10:04:06 [2025-02-02 10:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384948', 'tblTempUsageDetail_20' ) start [2025-02-02 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384948', 'tblTempUsageDetail_20' ) end [2025-02-02 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384948', 'tblTempVendorCDR_20' ) start [2025-02-02 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384948', 'tblTempVendorCDR_20' ) end [2025-02-02 10:04:20] Production.INFO: ProcessCDR(1,14384948,1,1,2) [2025-02-02 10:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384948', 'tblTempUsageDetail_20' ) start [2025-02-02 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384948', 'tblTempUsageDetail_20' ) end [2025-02-02 10:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:04:23] Production.INFO: ==19727== Releasing lock... [2025-02-02 10:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:04:23] Production.INFO: 30 MB #Memory Used# [2025-02-02 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:05:05 [end_date_ymd] => 2025-02-02 10:05:05 [RateCDR] => 1 ) [2025-02-02 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-02 07:05:05' and `end` < '2025-02-02 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-02 10:05:19] Production.INFO: count ==246 [2025-02-02 10:05:19] Production.ERROR: pbx CDR StartTime 2025-02-02 07:05:05 - End Time 2025-02-02 10:05:05 [2025-02-02 10:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384953', 'tblTempUsageDetail_20' ) start [2025-02-02 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384953', 'tblTempUsageDetail_20' ) end [2025-02-02 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384953', 'tblTempVendorCDR_20' ) start [2025-02-02 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384953', 'tblTempVendorCDR_20' ) end [2025-02-02 10:05:19] Production.INFO: ProcessCDR(1,14384953,1,1,2) [2025-02-02 10:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384953', 'tblTempUsageDetail_20' ) start [2025-02-02 10:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384953', 'tblTempUsageDetail_20' ) end [2025-02-02 10:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:05:22] Production.INFO: ==19800== Releasing lock... [2025-02-02 10:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:05:22] Production.INFO: 30 MB #Memory Used# [2025-02-02 10:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:06:06 [end_date_ymd] => 2025-02-02 10:06:06 [RateCDR] => 1 ) [2025-02-02 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-02 07:06:06' and `end` < '2025-02-02 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-02 10:06:18] Production.INFO: count ==247 [2025-02-02 10:06:18] Production.ERROR: pbx CDR StartTime 2025-02-02 07:06:06 - End Time 2025-02-02 10:06:06 [2025-02-02 10:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384958', 'tblTempUsageDetail_20' ) start [2025-02-02 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384958', 'tblTempUsageDetail_20' ) end [2025-02-02 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384958', 'tblTempVendorCDR_20' ) start [2025-02-02 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384958', 'tblTempVendorCDR_20' ) end [2025-02-02 10:06:18] Production.INFO: ProcessCDR(1,14384958,1,1,2) [2025-02-02 10:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384958', 'tblTempUsageDetail_20' ) start [2025-02-02 10:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384958', 'tblTempUsageDetail_20' ) end [2025-02-02 10:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:06:23] Production.INFO: ==19875== Releasing lock... [2025-02-02 10:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:06:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-02 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:07:05 [end_date_ymd] => 2025-02-02 10:07:05 [RateCDR] => 1 ) [2025-02-02 10:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 07:07:05' and `end` < '2025-02-02 10:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 10:07:19] Production.INFO: count ==248 [2025-02-02 10:07:19] Production.ERROR: pbx CDR StartTime 2025-02-02 07:07:05 - End Time 2025-02-02 10:07:05 [2025-02-02 10:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384963', 'tblTempUsageDetail_20' ) start [2025-02-02 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384963', 'tblTempUsageDetail_20' ) end [2025-02-02 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384963', 'tblTempVendorCDR_20' ) start [2025-02-02 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384963', 'tblTempVendorCDR_20' ) end [2025-02-02 10:07:19] Production.INFO: ProcessCDR(1,14384963,1,1,2) [2025-02-02 10:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384963', 'tblTempUsageDetail_20' ) start [2025-02-02 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384963', 'tblTempUsageDetail_20' ) end [2025-02-02 10:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:07:24] Production.INFO: ==19947== Releasing lock... [2025-02-02 10:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:07:24] Production.INFO: 29.75 MB #Memory Used# [2025-02-02 10:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:08:06 [end_date_ymd] => 2025-02-02 10:08:06 [RateCDR] => 1 ) [2025-02-02 10:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 07:08:06' and `end` < '2025-02-02 10:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 10:08:18] Production.INFO: count ==256 [2025-02-02 10:08:18] Production.ERROR: pbx CDR StartTime 2025-02-02 07:08:06 - End Time 2025-02-02 10:08:06 [2025-02-02 10:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384968', 'tblTempUsageDetail_20' ) start [2025-02-02 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384968', 'tblTempUsageDetail_20' ) end [2025-02-02 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384968', 'tblTempVendorCDR_20' ) start [2025-02-02 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384968', 'tblTempVendorCDR_20' ) end [2025-02-02 10:08:18] Production.INFO: ProcessCDR(1,14384968,1,1,2) [2025-02-02 10:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384968', 'tblTempUsageDetail_20' ) start [2025-02-02 10:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384968', 'tblTempUsageDetail_20' ) end [2025-02-02 10:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:08:24] Production.INFO: ==20025== Releasing lock... [2025-02-02 10:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:08:24] Production.INFO: 30.25 MB #Memory Used# [2025-02-02 10:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:09:06 [end_date_ymd] => 2025-02-02 10:09:06 [RateCDR] => 1 ) [2025-02-02 10:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 07:09:06' and `end` < '2025-02-02 10:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 10:09:20] Production.INFO: count ==261 [2025-02-02 10:09:20] Production.ERROR: pbx CDR StartTime 2025-02-02 07:09:06 - End Time 2025-02-02 10:09:06 [2025-02-02 10:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384973', 'tblTempUsageDetail_20' ) start [2025-02-02 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384973', 'tblTempUsageDetail_20' ) end [2025-02-02 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384973', 'tblTempVendorCDR_20' ) start [2025-02-02 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384973', 'tblTempVendorCDR_20' ) end [2025-02-02 10:09:20] Production.INFO: ProcessCDR(1,14384973,1,1,2) [2025-02-02 10:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384973', 'tblTempUsageDetail_20' ) start [2025-02-02 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384973', 'tblTempUsageDetail_20' ) end [2025-02-02 10:09:25] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:09:25] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:09:25] Production.INFO: ==20136== Releasing lock... [2025-02-02 10:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:09:25] Production.INFO: 30.25 MB #Memory Used# [2025-02-02 10:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:10:07 [end_date_ymd] => 2025-02-02 10:10:07 [RateCDR] => 1 ) [2025-02-02 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-02 07:10:07' and `end` < '2025-02-02 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-02 10:10:20] Production.INFO: count ==276 [2025-02-02 10:10:20] Production.ERROR: pbx CDR StartTime 2025-02-02 07:10:07 - End Time 2025-02-02 10:10:07 [2025-02-02 10:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384979', 'tblTempUsageDetail_20' ) start [2025-02-02 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384979', 'tblTempUsageDetail_20' ) end [2025-02-02 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384979', 'tblTempVendorCDR_20' ) start [2025-02-02 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384979', 'tblTempVendorCDR_20' ) end [2025-02-02 10:10:20] Production.INFO: ProcessCDR(1,14384979,1,1,2) [2025-02-02 10:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384979', 'tblTempUsageDetail_20' ) start [2025-02-02 10:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384979', 'tblTempUsageDetail_20' ) end [2025-02-02 10:10:25] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:10:25] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:10:25] Production.INFO: ==20216== Releasing lock... [2025-02-02 10:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:10:25] Production.INFO: 30.25 MB #Memory Used# [2025-02-02 10:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:11:05 [end_date_ymd] => 2025-02-02 10:11:05 [RateCDR] => 1 ) [2025-02-02 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-02 07:11:05' and `end` < '2025-02-02 10:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 10:11:18] Production.INFO: count ==401 [2025-02-02 10:11:18] Production.ERROR: pbx CDR StartTime 2025-02-02 07:11:05 - End Time 2025-02-02 10:11:05 [2025-02-02 10:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384984', 'tblTempUsageDetail_20' ) start [2025-02-02 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384984', 'tblTempUsageDetail_20' ) end [2025-02-02 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384984', 'tblTempVendorCDR_20' ) start [2025-02-02 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384984', 'tblTempVendorCDR_20' ) end [2025-02-02 10:11:18] Production.INFO: ProcessCDR(1,14384984,1,1,2) [2025-02-02 10:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384984', 'tblTempUsageDetail_20' ) start [2025-02-02 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384984', 'tblTempUsageDetail_20' ) end [2025-02-02 10:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:11:23] Production.INFO: ==20292== Releasing lock... [2025-02-02 10:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:11:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-02 10:12:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:12:07 [end_date_ymd] => 2025-02-02 10:12:07 [RateCDR] => 1 ) [2025-02-02 10: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-02 07:12:07' and `end` < '2025-02-02 10: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-02 10:12:19] Production.INFO: count ==403 [2025-02-02 10:12:19] Production.ERROR: pbx CDR StartTime 2025-02-02 07:12:07 - End Time 2025-02-02 10:12:07 [2025-02-02 10:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384989', 'tblTempUsageDetail_20' ) start [2025-02-02 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384989', 'tblTempUsageDetail_20' ) end [2025-02-02 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384989', 'tblTempVendorCDR_20' ) start [2025-02-02 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384989', 'tblTempVendorCDR_20' ) end [2025-02-02 10:12:19] Production.INFO: ProcessCDR(1,14384989,1,1,2) [2025-02-02 10:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384989', 'tblTempUsageDetail_20' ) start [2025-02-02 10:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384989', 'tblTempUsageDetail_20' ) end [2025-02-02 10:12:25] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:12:25] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:12:25] Production.INFO: ==20364== Releasing lock... [2025-02-02 10:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:12:25] Production.INFO: 32 MB #Memory Used# [2025-02-02 10:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:13:06 [end_date_ymd] => 2025-02-02 10:13:06 [RateCDR] => 1 ) [2025-02-02 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-02 07:13:06' and `end` < '2025-02-02 10: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-02 10:13:20] Production.INFO: count ==404 [2025-02-02 10:13:20] Production.ERROR: pbx CDR StartTime 2025-02-02 07:13:06 - End Time 2025-02-02 10:13:06 [2025-02-02 10:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384994', 'tblTempUsageDetail_20' ) start [2025-02-02 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384994', 'tblTempUsageDetail_20' ) end [2025-02-02 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384994', 'tblTempVendorCDR_20' ) start [2025-02-02 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384994', 'tblTempVendorCDR_20' ) end [2025-02-02 10:13:20] Production.INFO: ProcessCDR(1,14384994,1,1,2) [2025-02-02 10:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384994', 'tblTempUsageDetail_20' ) start [2025-02-02 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384994', 'tblTempUsageDetail_20' ) end [2025-02-02 10:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:13:25] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:13:25] Production.INFO: ==20434== Releasing lock... [2025-02-02 10:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:13:25] Production.INFO: 31.25 MB #Memory Used# [2025-02-02 10:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:14:06 [end_date_ymd] => 2025-02-02 10:14:06 [RateCDR] => 1 ) [2025-02-02 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-02 07:14:06' and `end` < '2025-02-02 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-02 10:14:19] Production.INFO: count ==406 [2025-02-02 10:14:20] Production.ERROR: pbx CDR StartTime 2025-02-02 07:14:06 - End Time 2025-02-02 10:14:06 [2025-02-02 10:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384999', 'tblTempUsageDetail_20' ) start [2025-02-02 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14384999', 'tblTempUsageDetail_20' ) end [2025-02-02 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384999', 'tblTempVendorCDR_20' ) start [2025-02-02 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14384999', 'tblTempVendorCDR_20' ) end [2025-02-02 10:14:20] Production.INFO: ProcessCDR(1,14384999,1,1,2) [2025-02-02 10:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14384999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14384999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14384999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14384999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384999', 'tblTempUsageDetail_20' ) start [2025-02-02 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14384999', 'tblTempUsageDetail_20' ) end [2025-02-02 10:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:14:25] Production.INFO: ==20507== Releasing lock... [2025-02-02 10:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:14:25] Production.INFO: 31.5 MB #Memory Used# [2025-02-02 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:15:05 [end_date_ymd] => 2025-02-02 10:15:05 [RateCDR] => 1 ) [2025-02-02 10:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 07:15:05' and `end` < '2025-02-02 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-02 10:15:18] Production.INFO: count ==406 [2025-02-02 10:15:18] Production.ERROR: pbx CDR StartTime 2025-02-02 07:15:05 - End Time 2025-02-02 10:15:05 [2025-02-02 10:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385004', 'tblTempUsageDetail_20' ) start [2025-02-02 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385004', 'tblTempUsageDetail_20' ) end [2025-02-02 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385004', 'tblTempVendorCDR_20' ) start [2025-02-02 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385004', 'tblTempVendorCDR_20' ) end [2025-02-02 10:15:18] Production.INFO: ProcessCDR(1,14385004,1,1,2) [2025-02-02 10:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385004', 'tblTempUsageDetail_20' ) start [2025-02-02 10:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385004', 'tblTempUsageDetail_20' ) end [2025-02-02 10:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:15:22] Production.INFO: ==20582== Releasing lock... [2025-02-02 10:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:15:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-02 10:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:16:06 [end_date_ymd] => 2025-02-02 10:16:06 [RateCDR] => 1 ) [2025-02-02 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-02 07:16:06' and `end` < '2025-02-02 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-02 10:16:19] Production.INFO: count ==406 [2025-02-02 10:16:19] Production.ERROR: pbx CDR StartTime 2025-02-02 07:16:06 - End Time 2025-02-02 10:16:06 [2025-02-02 10:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385009', 'tblTempUsageDetail_20' ) start [2025-02-02 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385009', 'tblTempUsageDetail_20' ) end [2025-02-02 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385009', 'tblTempVendorCDR_20' ) start [2025-02-02 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385009', 'tblTempVendorCDR_20' ) end [2025-02-02 10:16:19] Production.INFO: ProcessCDR(1,14385009,1,1,2) [2025-02-02 10:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385009', 'tblTempUsageDetail_20' ) start [2025-02-02 10:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385009', 'tblTempUsageDetail_20' ) end [2025-02-02 10:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:16:22] Production.INFO: ==20656== Releasing lock... [2025-02-02 10:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:16:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-02 10:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:17:06 [end_date_ymd] => 2025-02-02 10:17:06 [RateCDR] => 1 ) [2025-02-02 10:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 07:17:06' and `end` < '2025-02-02 10:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 10:17:19] Production.INFO: count ==416 [2025-02-02 10:17:20] Production.ERROR: pbx CDR StartTime 2025-02-02 07:17:06 - End Time 2025-02-02 10:17:06 [2025-02-02 10:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385014', 'tblTempUsageDetail_20' ) start [2025-02-02 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385014', 'tblTempUsageDetail_20' ) end [2025-02-02 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385014', 'tblTempVendorCDR_20' ) start [2025-02-02 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385014', 'tblTempVendorCDR_20' ) end [2025-02-02 10:17:20] Production.INFO: ProcessCDR(1,14385014,1,1,2) [2025-02-02 10:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385014', 'tblTempUsageDetail_20' ) start [2025-02-02 10:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385014', 'tblTempUsageDetail_20' ) end [2025-02-02 10:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:17:23] Production.INFO: ==20725== Releasing lock... [2025-02-02 10:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:17:23] Production.INFO: 32 MB #Memory Used# [2025-02-02 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:18:05 [end_date_ymd] => 2025-02-02 10:18:05 [RateCDR] => 1 ) [2025-02-02 10:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 07:18:05' and `end` < '2025-02-02 10:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 10:18:18] Production.INFO: count ==416 [2025-02-02 10:18:18] Production.ERROR: pbx CDR StartTime 2025-02-02 07:18:05 - End Time 2025-02-02 10:18:05 [2025-02-02 10:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385019', 'tblTempUsageDetail_20' ) start [2025-02-02 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385019', 'tblTempUsageDetail_20' ) end [2025-02-02 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385019', 'tblTempVendorCDR_20' ) start [2025-02-02 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385019', 'tblTempVendorCDR_20' ) end [2025-02-02 10:18:18] Production.INFO: ProcessCDR(1,14385019,1,1,2) [2025-02-02 10:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385019', 'tblTempUsageDetail_20' ) start [2025-02-02 10:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385019', 'tblTempUsageDetail_20' ) end [2025-02-02 10:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:18:21] Production.INFO: ==20798== Releasing lock... [2025-02-02 10:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:18:21] Production.INFO: 32 MB #Memory Used# [2025-02-02 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:19:05 [end_date_ymd] => 2025-02-02 10:19:05 [RateCDR] => 1 ) [2025-02-02 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-02 07:19:05' and `end` < '2025-02-02 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-02 10:19:18] Production.INFO: count ==416 [2025-02-02 10:19:18] Production.ERROR: pbx CDR StartTime 2025-02-02 07:19:05 - End Time 2025-02-02 10:19:05 [2025-02-02 10:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385024', 'tblTempUsageDetail_20' ) start [2025-02-02 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385024', 'tblTempUsageDetail_20' ) end [2025-02-02 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385024', 'tblTempVendorCDR_20' ) start [2025-02-02 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385024', 'tblTempVendorCDR_20' ) end [2025-02-02 10:19:18] Production.INFO: ProcessCDR(1,14385024,1,1,2) [2025-02-02 10:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385024', 'tblTempUsageDetail_20' ) start [2025-02-02 10:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385024', 'tblTempUsageDetail_20' ) end [2025-02-02 10:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:19:21] Production.INFO: ==20873== Releasing lock... [2025-02-02 10:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:19:21] Production.INFO: 32 MB #Memory Used# [2025-02-02 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:20:06 [end_date_ymd] => 2025-02-02 10:20:06 [RateCDR] => 1 ) [2025-02-02 10:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 07:20:06' and `end` < '2025-02-02 10:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 10:20:19] Production.INFO: count ==420 [2025-02-02 10:20:19] Production.ERROR: pbx CDR StartTime 2025-02-02 07:20:06 - End Time 2025-02-02 10:20:06 [2025-02-02 10:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385030', 'tblTempUsageDetail_20' ) start [2025-02-02 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385030', 'tblTempUsageDetail_20' ) end [2025-02-02 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385030', 'tblTempVendorCDR_20' ) start [2025-02-02 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385030', 'tblTempVendorCDR_20' ) end [2025-02-02 10:20:19] Production.INFO: ProcessCDR(1,14385030,1,1,2) [2025-02-02 10:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385030', 'tblTempUsageDetail_20' ) start [2025-02-02 10:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385030', 'tblTempUsageDetail_20' ) end [2025-02-02 10:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:20:22] Production.INFO: ==20947== Releasing lock... [2025-02-02 10:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:20:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-02 10:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:21:04 [end_date_ymd] => 2025-02-02 10:21:04 [RateCDR] => 1 ) [2025-02-02 10: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-02 07:21:04' and `end` < '2025-02-02 10: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-02 10:21:17] Production.INFO: count ==432 [2025-02-02 10:21:17] Production.ERROR: pbx CDR StartTime 2025-02-02 07:21:04 - End Time 2025-02-02 10:21:04 [2025-02-02 10:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385035', 'tblTempUsageDetail_20' ) start [2025-02-02 10:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385035', 'tblTempUsageDetail_20' ) end [2025-02-02 10:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385035', 'tblTempVendorCDR_20' ) start [2025-02-02 10:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385035', 'tblTempVendorCDR_20' ) end [2025-02-02 10:21:17] Production.INFO: ProcessCDR(1,14385035,1,1,2) [2025-02-02 10:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385035', 'tblTempUsageDetail_20' ) start [2025-02-02 10:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385035', 'tblTempUsageDetail_20' ) end [2025-02-02 10:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:21:21] Production.INFO: ==21022== Releasing lock... [2025-02-02 10:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:21:21] Production.INFO: 32 MB #Memory Used# [2025-02-02 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:22:05 [end_date_ymd] => 2025-02-02 10:22:05 [RateCDR] => 1 ) [2025-02-02 10:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 07:22:05' and `end` < '2025-02-02 10:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 10:22:20] Production.INFO: count ==434 [2025-02-02 10:22:21] Production.ERROR: pbx CDR StartTime 2025-02-02 07:22:05 - End Time 2025-02-02 10:22:05 [2025-02-02 10:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385040', 'tblTempUsageDetail_20' ) start [2025-02-02 10:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385040', 'tblTempUsageDetail_20' ) end [2025-02-02 10:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385040', 'tblTempVendorCDR_20' ) start [2025-02-02 10:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385040', 'tblTempVendorCDR_20' ) end [2025-02-02 10:22:21] Production.INFO: ProcessCDR(1,14385040,1,1,2) [2025-02-02 10:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385040', 'tblTempUsageDetail_20' ) start [2025-02-02 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385040', 'tblTempUsageDetail_20' ) end [2025-02-02 10:22:25] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:22:25] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:22:25] Production.INFO: ==21100== Releasing lock... [2025-02-02 10:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:22:25] Production.INFO: 32 MB #Memory Used# [2025-02-02 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:23:05 [end_date_ymd] => 2025-02-02 10:23:05 [RateCDR] => 1 ) [2025-02-02 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-02 07:23:05' and `end` < '2025-02-02 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-02 10:23:20] Production.INFO: count ==438 [2025-02-02 10:23:20] Production.ERROR: pbx CDR StartTime 2025-02-02 07:23:05 - End Time 2025-02-02 10:23:05 [2025-02-02 10:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385045', 'tblTempUsageDetail_20' ) start [2025-02-02 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385045', 'tblTempUsageDetail_20' ) end [2025-02-02 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385045', 'tblTempVendorCDR_20' ) start [2025-02-02 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385045', 'tblTempVendorCDR_20' ) end [2025-02-02 10:23:20] Production.INFO: ProcessCDR(1,14385045,1,1,2) [2025-02-02 10:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385045', 'tblTempUsageDetail_20' ) start [2025-02-02 10:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385045', 'tblTempUsageDetail_20' ) end [2025-02-02 10:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:23:23] Production.INFO: ==21174== Releasing lock... [2025-02-02 10:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:23:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-02 10:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:24:06 [end_date_ymd] => 2025-02-02 10:24:06 [RateCDR] => 1 ) [2025-02-02 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-02 07:24:06' and `end` < '2025-02-02 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-02 10:24:20] Production.INFO: count ==438 [2025-02-02 10:24:20] Production.ERROR: pbx CDR StartTime 2025-02-02 07:24:06 - End Time 2025-02-02 10:24:06 [2025-02-02 10:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385050', 'tblTempUsageDetail_20' ) start [2025-02-02 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385050', 'tblTempUsageDetail_20' ) end [2025-02-02 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385050', 'tblTempVendorCDR_20' ) start [2025-02-02 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385050', 'tblTempVendorCDR_20' ) end [2025-02-02 10:24:20] Production.INFO: ProcessCDR(1,14385050,1,1,2) [2025-02-02 10:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385050', 'tblTempUsageDetail_20' ) start [2025-02-02 10:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385050', 'tblTempUsageDetail_20' ) end [2025-02-02 10:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:24:23] Production.INFO: ==21290== Releasing lock... [2025-02-02 10:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:24:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-02 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:25:05 [end_date_ymd] => 2025-02-02 10:25:05 [RateCDR] => 1 ) [2025-02-02 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-02 07:25:05' and `end` < '2025-02-02 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-02 10:25:19] Production.INFO: count ==439 [2025-02-02 10:25:20] Production.ERROR: pbx CDR StartTime 2025-02-02 07:25:05 - End Time 2025-02-02 10:25:05 [2025-02-02 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385055', 'tblTempUsageDetail_20' ) start [2025-02-02 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385055', 'tblTempUsageDetail_20' ) end [2025-02-02 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385055', 'tblTempVendorCDR_20' ) start [2025-02-02 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385055', 'tblTempVendorCDR_20' ) end [2025-02-02 10:25:20] Production.INFO: ProcessCDR(1,14385055,1,1,2) [2025-02-02 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385055', 'tblTempUsageDetail_20' ) start [2025-02-02 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385055', 'tblTempUsageDetail_20' ) end [2025-02-02 10:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:25:24] Production.INFO: ==21365== Releasing lock... [2025-02-02 10:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:25:24] Production.INFO: 32 MB #Memory Used# [2025-02-02 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:26:05 [end_date_ymd] => 2025-02-02 10:26:05 [RateCDR] => 1 ) [2025-02-02 10:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 07:26:05' and `end` < '2025-02-02 10:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 10:26:18] Production.INFO: count ==443 [2025-02-02 10:26:18] Production.ERROR: pbx CDR StartTime 2025-02-02 07:26:05 - End Time 2025-02-02 10:26:05 [2025-02-02 10:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385060', 'tblTempUsageDetail_20' ) start [2025-02-02 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385060', 'tblTempUsageDetail_20' ) end [2025-02-02 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385060', 'tblTempVendorCDR_20' ) start [2025-02-02 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385060', 'tblTempVendorCDR_20' ) end [2025-02-02 10:26:18] Production.INFO: ProcessCDR(1,14385060,1,1,2) [2025-02-02 10:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385060', 'tblTempUsageDetail_20' ) start [2025-02-02 10:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385060', 'tblTempUsageDetail_20' ) end [2025-02-02 10:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:26:22] Production.INFO: ==21437== Releasing lock... [2025-02-02 10:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:26:22] Production.INFO: 32 MB #Memory Used# [2025-02-02 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:27:05 [end_date_ymd] => 2025-02-02 10:27:05 [RateCDR] => 1 ) [2025-02-02 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-02 07:27:05' and `end` < '2025-02-02 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-02 10:27:18] Production.INFO: count ==452 [2025-02-02 10:27:18] Production.ERROR: pbx CDR StartTime 2025-02-02 07:27:05 - End Time 2025-02-02 10:27:05 [2025-02-02 10:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385065', 'tblTempUsageDetail_20' ) start [2025-02-02 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385065', 'tblTempUsageDetail_20' ) end [2025-02-02 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385065', 'tblTempVendorCDR_20' ) start [2025-02-02 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385065', 'tblTempVendorCDR_20' ) end [2025-02-02 10:27:18] Production.INFO: ProcessCDR(1,14385065,1,1,2) [2025-02-02 10:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385065', 'tblTempUsageDetail_20' ) start [2025-02-02 10:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385065', 'tblTempUsageDetail_20' ) end [2025-02-02 10:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:27:23] Production.INFO: ==21509== Releasing lock... [2025-02-02 10:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:27:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-02 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:28:05 [end_date_ymd] => 2025-02-02 10:28:05 [RateCDR] => 1 ) [2025-02-02 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-02 07:28:05' and `end` < '2025-02-02 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-02 10:28:18] Production.INFO: count ==456 [2025-02-02 10:28:18] Production.ERROR: pbx CDR StartTime 2025-02-02 07:28:05 - End Time 2025-02-02 10:28:05 [2025-02-02 10:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385070', 'tblTempUsageDetail_20' ) start [2025-02-02 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385070', 'tblTempUsageDetail_20' ) end [2025-02-02 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385070', 'tblTempVendorCDR_20' ) start [2025-02-02 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385070', 'tblTempVendorCDR_20' ) end [2025-02-02 10:28:18] Production.INFO: ProcessCDR(1,14385070,1,1,2) [2025-02-02 10:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385070', 'tblTempUsageDetail_20' ) start [2025-02-02 10:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385070', 'tblTempUsageDetail_20' ) end [2025-02-02 10:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:28:21] Production.INFO: ==21584== Releasing lock... [2025-02-02 10:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:28:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-02 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:29:05 [end_date_ymd] => 2025-02-02 10:29:05 [RateCDR] => 1 ) [2025-02-02 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-02 07:29:05' and `end` < '2025-02-02 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-02 10:29:20] Production.INFO: count ==456 [2025-02-02 10:29:20] Production.ERROR: pbx CDR StartTime 2025-02-02 07:29:05 - End Time 2025-02-02 10:29:05 [2025-02-02 10:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385075', 'tblTempUsageDetail_20' ) start [2025-02-02 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385075', 'tblTempUsageDetail_20' ) end [2025-02-02 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385075', 'tblTempVendorCDR_20' ) start [2025-02-02 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385075', 'tblTempVendorCDR_20' ) end [2025-02-02 10:29:20] Production.INFO: ProcessCDR(1,14385075,1,1,2) [2025-02-02 10:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385075', 'tblTempUsageDetail_20' ) start [2025-02-02 10:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385075', 'tblTempUsageDetail_20' ) end [2025-02-02 10:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:29:23] Production.INFO: ==21657== Releasing lock... [2025-02-02 10:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:29:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-02 10:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:30:05 [end_date_ymd] => 2025-02-02 10:30:05 [RateCDR] => 1 ) [2025-02-02 10:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 07:30:05' and `end` < '2025-02-02 10:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 10:30:18] Production.INFO: count ==459 [2025-02-02 10:30:18] Production.ERROR: pbx CDR StartTime 2025-02-02 07:30:05 - End Time 2025-02-02 10:30:05 [2025-02-02 10:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385081', 'tblTempUsageDetail_20' ) start [2025-02-02 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385081', 'tblTempUsageDetail_20' ) end [2025-02-02 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385081', 'tblTempVendorCDR_20' ) start [2025-02-02 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385081', 'tblTempVendorCDR_20' ) end [2025-02-02 10:30:18] Production.INFO: ProcessCDR(1,14385081,1,1,2) [2025-02-02 10:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385081', 'tblTempUsageDetail_20' ) start [2025-02-02 10:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385081', 'tblTempUsageDetail_20' ) end [2025-02-02 10:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:30:22] Production.INFO: ==21736== Releasing lock... [2025-02-02 10:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:30:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:31:05 [end_date_ymd] => 2025-02-02 10:31:05 [RateCDR] => 1 ) [2025-02-02 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-02 07:31:05' and `end` < '2025-02-02 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-02 10:31:18] Production.INFO: count ==465 [2025-02-02 10:31:18] Production.ERROR: pbx CDR StartTime 2025-02-02 07:31:05 - End Time 2025-02-02 10:31:05 [2025-02-02 10:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385086', 'tblTempUsageDetail_20' ) start [2025-02-02 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385086', 'tblTempUsageDetail_20' ) end [2025-02-02 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385086', 'tblTempVendorCDR_20' ) start [2025-02-02 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385086', 'tblTempVendorCDR_20' ) end [2025-02-02 10:31:18] Production.INFO: ProcessCDR(1,14385086,1,1,2) [2025-02-02 10:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385086', 'tblTempUsageDetail_20' ) start [2025-02-02 10:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385086', 'tblTempUsageDetail_20' ) end [2025-02-02 10:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:31:22] Production.INFO: ==21810== Releasing lock... [2025-02-02 10:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:31:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-02 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:32:05 [end_date_ymd] => 2025-02-02 10:32:05 [RateCDR] => 1 ) [2025-02-02 10:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 07:32:05' and `end` < '2025-02-02 10:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 10:32:18] Production.INFO: count ==489 [2025-02-02 10:32:18] Production.ERROR: pbx CDR StartTime 2025-02-02 07:32:05 - End Time 2025-02-02 10:32:05 [2025-02-02 10:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385091', 'tblTempUsageDetail_20' ) start [2025-02-02 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385091', 'tblTempUsageDetail_20' ) end [2025-02-02 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385091', 'tblTempVendorCDR_20' ) start [2025-02-02 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385091', 'tblTempVendorCDR_20' ) end [2025-02-02 10:32:18] Production.INFO: ProcessCDR(1,14385091,1,1,2) [2025-02-02 10:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385091', 'tblTempUsageDetail_20' ) start [2025-02-02 10:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385091', 'tblTempUsageDetail_20' ) end [2025-02-02 10:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:32:21] Production.INFO: ==21883== Releasing lock... [2025-02-02 10:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:32:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-02 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:33:05 [end_date_ymd] => 2025-02-02 10:33:05 [RateCDR] => 1 ) [2025-02-02 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-02 07:33:05' and `end` < '2025-02-02 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-02 10:33:19] Production.INFO: count ==573 [2025-02-02 10:33:19] Production.ERROR: pbx CDR StartTime 2025-02-02 07:33:05 - End Time 2025-02-02 10:33:05 [2025-02-02 10:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385096', 'tblTempUsageDetail_20' ) start [2025-02-02 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385096', 'tblTempUsageDetail_20' ) end [2025-02-02 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385096', 'tblTempVendorCDR_20' ) start [2025-02-02 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385096', 'tblTempVendorCDR_20' ) end [2025-02-02 10:33:19] Production.INFO: ProcessCDR(1,14385096,1,1,2) [2025-02-02 10:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385096', 'tblTempUsageDetail_20' ) start [2025-02-02 10:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385096', 'tblTempUsageDetail_20' ) end [2025-02-02 10:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:33:22] Production.INFO: ==21955== Releasing lock... [2025-02-02 10:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:33:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-02 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:34:05 [end_date_ymd] => 2025-02-02 10:34:05 [RateCDR] => 1 ) [2025-02-02 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-02 07:34:05' and `end` < '2025-02-02 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-02 10:34:19] Production.INFO: count ==578 [2025-02-02 10:34:20] Production.ERROR: pbx CDR StartTime 2025-02-02 07:34:05 - End Time 2025-02-02 10:34:05 [2025-02-02 10:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385101', 'tblTempUsageDetail_20' ) start [2025-02-02 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385101', 'tblTempUsageDetail_20' ) end [2025-02-02 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385101', 'tblTempVendorCDR_20' ) start [2025-02-02 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385101', 'tblTempVendorCDR_20' ) end [2025-02-02 10:34:20] Production.INFO: ProcessCDR(1,14385101,1,1,2) [2025-02-02 10:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385101', 'tblTempUsageDetail_20' ) start [2025-02-02 10:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385101', 'tblTempUsageDetail_20' ) end [2025-02-02 10:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:34:23] Production.INFO: ==22033== Releasing lock... [2025-02-02 10:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:34:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-02 10:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:35:06 [end_date_ymd] => 2025-02-02 10:35:06 [RateCDR] => 1 ) [2025-02-02 10:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 07:35:06' and `end` < '2025-02-02 10:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 10:35:19] Production.INFO: count ==579 [2025-02-02 10:35:19] Production.ERROR: pbx CDR StartTime 2025-02-02 07:35:06 - End Time 2025-02-02 10:35:06 [2025-02-02 10:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385106', 'tblTempUsageDetail_20' ) start [2025-02-02 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385106', 'tblTempUsageDetail_20' ) end [2025-02-02 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385106', 'tblTempVendorCDR_20' ) start [2025-02-02 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385106', 'tblTempVendorCDR_20' ) end [2025-02-02 10:35:19] Production.INFO: ProcessCDR(1,14385106,1,1,2) [2025-02-02 10:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385106', 'tblTempUsageDetail_20' ) start [2025-02-02 10:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385106', 'tblTempUsageDetail_20' ) end [2025-02-02 10:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:35:23] Production.INFO: ==22105== Releasing lock... [2025-02-02 10:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:35:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-02 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:36:05 [end_date_ymd] => 2025-02-02 10:36:05 [RateCDR] => 1 ) [2025-02-02 10:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 07:36:05' and `end` < '2025-02-02 10:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 10:36:18] Production.INFO: count ==580 [2025-02-02 10:36:18] Production.ERROR: pbx CDR StartTime 2025-02-02 07:36:05 - End Time 2025-02-02 10:36:05 [2025-02-02 10:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385111', 'tblTempUsageDetail_20' ) start [2025-02-02 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385111', 'tblTempUsageDetail_20' ) end [2025-02-02 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385111', 'tblTempVendorCDR_20' ) start [2025-02-02 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385111', 'tblTempVendorCDR_20' ) end [2025-02-02 10:36:18] Production.INFO: ProcessCDR(1,14385111,1,1,2) [2025-02-02 10:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385111', 'tblTempUsageDetail_20' ) start [2025-02-02 10:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385111', 'tblTempUsageDetail_20' ) end [2025-02-02 10:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:36:21] Production.INFO: ==22177== Releasing lock... [2025-02-02 10:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:36:21] Production.INFO: 33 MB #Memory Used# [2025-02-02 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:37:05 [end_date_ymd] => 2025-02-02 10:37:05 [RateCDR] => 1 ) [2025-02-02 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-02 07:37:05' and `end` < '2025-02-02 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-02 10:37:20] Production.INFO: count ==580 [2025-02-02 10:37:21] Production.ERROR: pbx CDR StartTime 2025-02-02 07:37:05 - End Time 2025-02-02 10:37:05 [2025-02-02 10:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385116', 'tblTempUsageDetail_20' ) start [2025-02-02 10:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385116', 'tblTempUsageDetail_20' ) end [2025-02-02 10:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385116', 'tblTempVendorCDR_20' ) start [2025-02-02 10:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385116', 'tblTempVendorCDR_20' ) end [2025-02-02 10:37:21] Production.INFO: ProcessCDR(1,14385116,1,1,2) [2025-02-02 10:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385116', 'tblTempUsageDetail_20' ) start [2025-02-02 10:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385116', 'tblTempUsageDetail_20' ) end [2025-02-02 10:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:37:24] Production.INFO: ==22248== Releasing lock... [2025-02-02 10:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:37:24] Production.INFO: 33 MB #Memory Used# [2025-02-02 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:38:05 [end_date_ymd] => 2025-02-02 10:38:05 [RateCDR] => 1 ) [2025-02-02 10:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 07:38:05' and `end` < '2025-02-02 10:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 10:38:18] Production.INFO: count ==626 [2025-02-02 10:38:18] Production.ERROR: pbx CDR StartTime 2025-02-02 07:38:05 - End Time 2025-02-02 10:38:05 [2025-02-02 10:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385121', 'tblTempUsageDetail_20' ) start [2025-02-02 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385121', 'tblTempUsageDetail_20' ) end [2025-02-02 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385121', 'tblTempVendorCDR_20' ) start [2025-02-02 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385121', 'tblTempVendorCDR_20' ) end [2025-02-02 10:38:18] Production.INFO: ProcessCDR(1,14385121,1,1,2) [2025-02-02 10:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385121', 'tblTempUsageDetail_20' ) start [2025-02-02 10:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385121', 'tblTempUsageDetail_20' ) end [2025-02-02 10:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:38:21] Production.INFO: ==22329== Releasing lock... [2025-02-02 10:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:38:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-02 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:39:05 [end_date_ymd] => 2025-02-02 10:39:05 [RateCDR] => 1 ) [2025-02-02 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-02 07:39:05' and `end` < '2025-02-02 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-02 10:39:18] Production.INFO: count ==685 [2025-02-02 10:39:18] Production.ERROR: pbx CDR StartTime 2025-02-02 07:39:05 - End Time 2025-02-02 10:39:05 [2025-02-02 10:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385126', 'tblTempUsageDetail_20' ) start [2025-02-02 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385126', 'tblTempUsageDetail_20' ) end [2025-02-02 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385126', 'tblTempVendorCDR_20' ) start [2025-02-02 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385126', 'tblTempVendorCDR_20' ) end [2025-02-02 10:39:18] Production.INFO: ProcessCDR(1,14385126,1,1,2) [2025-02-02 10:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385126', 'tblTempUsageDetail_20' ) start [2025-02-02 10:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385126', 'tblTempUsageDetail_20' ) end [2025-02-02 10:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:39:23] Production.INFO: ==22399== Releasing lock... [2025-02-02 10:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:39:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-02 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:40:06 [end_date_ymd] => 2025-02-02 10:40:06 [RateCDR] => 1 ) [2025-02-02 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-02 07:40:06' and `end` < '2025-02-02 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-02 10:40:19] Production.INFO: count ==689 [2025-02-02 10:40:20] Production.ERROR: pbx CDR StartTime 2025-02-02 07:40:06 - End Time 2025-02-02 10:40:06 [2025-02-02 10:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385132', 'tblTempUsageDetail_20' ) start [2025-02-02 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385132', 'tblTempUsageDetail_20' ) end [2025-02-02 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385132', 'tblTempVendorCDR_20' ) start [2025-02-02 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385132', 'tblTempVendorCDR_20' ) end [2025-02-02 10:40:20] Production.INFO: ProcessCDR(1,14385132,1,1,2) [2025-02-02 10:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385132', 'tblTempUsageDetail_20' ) start [2025-02-02 10:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385132', 'tblTempUsageDetail_20' ) end [2025-02-02 10:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:40:23] Production.INFO: ==22512== Releasing lock... [2025-02-02 10:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:40:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-02 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:41:05 [end_date_ymd] => 2025-02-02 10:41:05 [RateCDR] => 1 ) [2025-02-02 10:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 07:41:05' and `end` < '2025-02-02 10:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 10:41:21] Production.INFO: count ==704 [2025-02-02 10:41:21] Production.ERROR: pbx CDR StartTime 2025-02-02 07:41:05 - End Time 2025-02-02 10:41:05 [2025-02-02 10:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385137', 'tblTempUsageDetail_20' ) start [2025-02-02 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385137', 'tblTempUsageDetail_20' ) end [2025-02-02 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385137', 'tblTempVendorCDR_20' ) start [2025-02-02 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385137', 'tblTempVendorCDR_20' ) end [2025-02-02 10:41:21] Production.INFO: ProcessCDR(1,14385137,1,1,2) [2025-02-02 10:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385137', 'tblTempUsageDetail_20' ) start [2025-02-02 10:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385137', 'tblTempUsageDetail_20' ) end [2025-02-02 10:41:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:41:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:41:24] Production.INFO: ==22584== Releasing lock... [2025-02-02 10:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:41:24] Production.INFO: 33.75 MB #Memory Used# [2025-02-02 10:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:42:06 [end_date_ymd] => 2025-02-02 10:42:06 [RateCDR] => 1 ) [2025-02-02 10: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-02 07:42:06' and `end` < '2025-02-02 10: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-02 10:42:20] Production.INFO: count ==707 [2025-02-02 10:42:20] Production.ERROR: pbx CDR StartTime 2025-02-02 07:42:06 - End Time 2025-02-02 10:42:06 [2025-02-02 10:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385142', 'tblTempUsageDetail_20' ) start [2025-02-02 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385142', 'tblTempUsageDetail_20' ) end [2025-02-02 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385142', 'tblTempVendorCDR_20' ) start [2025-02-02 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385142', 'tblTempVendorCDR_20' ) end [2025-02-02 10:42:20] Production.INFO: ProcessCDR(1,14385142,1,1,2) [2025-02-02 10:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385142', 'tblTempUsageDetail_20' ) start [2025-02-02 10:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385142', 'tblTempUsageDetail_20' ) end [2025-02-02 10:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:42:23] Production.INFO: ==22655== Releasing lock... [2025-02-02 10:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:42:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-02 10:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:43:06 [end_date_ymd] => 2025-02-02 10:43:06 [RateCDR] => 1 ) [2025-02-02 10: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-02 07:43:06' and `end` < '2025-02-02 10: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-02 10:43:19] Production.INFO: count ==707 [2025-02-02 10:43:20] Production.ERROR: pbx CDR StartTime 2025-02-02 07:43:06 - End Time 2025-02-02 10:43:06 [2025-02-02 10:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385147', 'tblTempUsageDetail_20' ) start [2025-02-02 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385147', 'tblTempUsageDetail_20' ) end [2025-02-02 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385147', 'tblTempVendorCDR_20' ) start [2025-02-02 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385147', 'tblTempVendorCDR_20' ) end [2025-02-02 10:43:20] Production.INFO: ProcessCDR(1,14385147,1,1,2) [2025-02-02 10:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385147', 'tblTempUsageDetail_20' ) start [2025-02-02 10:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385147', 'tblTempUsageDetail_20' ) end [2025-02-02 10:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:43:23] Production.INFO: ==22727== Releasing lock... [2025-02-02 10:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:43:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-02 10:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:44:04 [end_date_ymd] => 2025-02-02 10:44:04 [RateCDR] => 1 ) [2025-02-02 10:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 07:44:04' and `end` < '2025-02-02 10:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 10:44:17] Production.INFO: count ==707 [2025-02-02 10:44:17] Production.ERROR: pbx CDR StartTime 2025-02-02 07:44:04 - End Time 2025-02-02 10:44:04 [2025-02-02 10:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385152', 'tblTempUsageDetail_20' ) start [2025-02-02 10:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385152', 'tblTempUsageDetail_20' ) end [2025-02-02 10:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385152', 'tblTempVendorCDR_20' ) start [2025-02-02 10:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385152', 'tblTempVendorCDR_20' ) end [2025-02-02 10:44:17] Production.INFO: ProcessCDR(1,14385152,1,1,2) [2025-02-02 10:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385152', 'tblTempUsageDetail_20' ) start [2025-02-02 10:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385152', 'tblTempUsageDetail_20' ) end [2025-02-02 10:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:44:20] Production.INFO: ==22796== Releasing lock... [2025-02-02 10:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:44:20] Production.INFO: 33.75 MB #Memory Used# [2025-02-02 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:45:05 [end_date_ymd] => 2025-02-02 10:45:05 [RateCDR] => 1 ) [2025-02-02 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-02 07:45:05' and `end` < '2025-02-02 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-02 10:45:19] Production.INFO: count ==707 [2025-02-02 10:45:19] Production.ERROR: pbx CDR StartTime 2025-02-02 07:45:05 - End Time 2025-02-02 10:45:05 [2025-02-02 10:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385157', 'tblTempUsageDetail_20' ) start [2025-02-02 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385157', 'tblTempUsageDetail_20' ) end [2025-02-02 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385157', 'tblTempVendorCDR_20' ) start [2025-02-02 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385157', 'tblTempVendorCDR_20' ) end [2025-02-02 10:45:19] Production.INFO: ProcessCDR(1,14385157,1,1,2) [2025-02-02 10:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385157', 'tblTempUsageDetail_20' ) start [2025-02-02 10:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385157', 'tblTempUsageDetail_20' ) end [2025-02-02 10:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:45:22] Production.INFO: ==22868== Releasing lock... [2025-02-02 10:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:45:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-02 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:46:05 [end_date_ymd] => 2025-02-02 10:46:05 [RateCDR] => 1 ) [2025-02-02 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-02 07:46:05' and `end` < '2025-02-02 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-02 10:46:18] Production.INFO: count ==707 [2025-02-02 10:46:18] Production.ERROR: pbx CDR StartTime 2025-02-02 07:46:05 - End Time 2025-02-02 10:46:05 [2025-02-02 10:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385162', 'tblTempUsageDetail_20' ) start [2025-02-02 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385162', 'tblTempUsageDetail_20' ) end [2025-02-02 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385162', 'tblTempVendorCDR_20' ) start [2025-02-02 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385162', 'tblTempVendorCDR_20' ) end [2025-02-02 10:46:18] Production.INFO: ProcessCDR(1,14385162,1,1,2) [2025-02-02 10:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385162', 'tblTempUsageDetail_20' ) start [2025-02-02 10:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385162', 'tblTempUsageDetail_20' ) end [2025-02-02 10:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:46:21] Production.INFO: ==22940== Releasing lock... [2025-02-02 10:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:46:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-02 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:47:05 [end_date_ymd] => 2025-02-02 10:47:05 [RateCDR] => 1 ) [2025-02-02 10:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 07:47:05' and `end` < '2025-02-02 10:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 10:47:19] Production.INFO: count ==707 [2025-02-02 10:47:19] Production.ERROR: pbx CDR StartTime 2025-02-02 07:47:05 - End Time 2025-02-02 10:47:05 [2025-02-02 10:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385167', 'tblTempUsageDetail_20' ) start [2025-02-02 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385167', 'tblTempUsageDetail_20' ) end [2025-02-02 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385167', 'tblTempVendorCDR_20' ) start [2025-02-02 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385167', 'tblTempVendorCDR_20' ) end [2025-02-02 10:47:19] Production.INFO: ProcessCDR(1,14385167,1,1,2) [2025-02-02 10:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385167', 'tblTempUsageDetail_20' ) start [2025-02-02 10:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385167', 'tblTempUsageDetail_20' ) end [2025-02-02 10:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:47:22] Production.INFO: ==23009== Releasing lock... [2025-02-02 10:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:47:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-02 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:48:05 [end_date_ymd] => 2025-02-02 10:48:05 [RateCDR] => 1 ) [2025-02-02 10:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 07:48:05' and `end` < '2025-02-02 10:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 10:48:19] Production.INFO: count ==707 [2025-02-02 10:48:19] Production.ERROR: pbx CDR StartTime 2025-02-02 07:48:05 - End Time 2025-02-02 10:48:05 [2025-02-02 10:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385172', 'tblTempUsageDetail_20' ) start [2025-02-02 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385172', 'tblTempUsageDetail_20' ) end [2025-02-02 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385172', 'tblTempVendorCDR_20' ) start [2025-02-02 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385172', 'tblTempVendorCDR_20' ) end [2025-02-02 10:48:19] Production.INFO: ProcessCDR(1,14385172,1,1,2) [2025-02-02 10:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385172', 'tblTempUsageDetail_20' ) start [2025-02-02 10:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385172', 'tblTempUsageDetail_20' ) end [2025-02-02 10:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:48:22] Production.INFO: ==23085== Releasing lock... [2025-02-02 10:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:48:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-02 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:49:05 [end_date_ymd] => 2025-02-02 10:49:05 [RateCDR] => 1 ) [2025-02-02 10:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 07:49:05' and `end` < '2025-02-02 10:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 10:49:19] Production.INFO: count ==707 [2025-02-02 10:49:19] Production.ERROR: pbx CDR StartTime 2025-02-02 07:49:05 - End Time 2025-02-02 10:49:05 [2025-02-02 10:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385177', 'tblTempUsageDetail_20' ) start [2025-02-02 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385177', 'tblTempUsageDetail_20' ) end [2025-02-02 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385177', 'tblTempVendorCDR_20' ) start [2025-02-02 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385177', 'tblTempVendorCDR_20' ) end [2025-02-02 10:49:19] Production.INFO: ProcessCDR(1,14385177,1,1,2) [2025-02-02 10:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385177', 'tblTempUsageDetail_20' ) start [2025-02-02 10:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385177', 'tblTempUsageDetail_20' ) end [2025-02-02 10:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:49:22] Production.INFO: ==23160== Releasing lock... [2025-02-02 10:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:49:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-02 10:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:50:05 [end_date_ymd] => 2025-02-02 10:50:05 [RateCDR] => 1 ) [2025-02-02 10: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-02 07:50:05' and `end` < '2025-02-02 10: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-02 10:50:17] Production.INFO: count ==709 [2025-02-02 10:50:18] Production.ERROR: pbx CDR StartTime 2025-02-02 07:50:05 - End Time 2025-02-02 10:50:05 [2025-02-02 10:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385182', 'tblTempUsageDetail_20' ) start [2025-02-02 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385182', 'tblTempUsageDetail_20' ) end [2025-02-02 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385182', 'tblTempVendorCDR_20' ) start [2025-02-02 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385182', 'tblTempVendorCDR_20' ) end [2025-02-02 10:50:18] Production.INFO: ProcessCDR(1,14385182,1,1,2) [2025-02-02 10:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385182', 'tblTempUsageDetail_20' ) start [2025-02-02 10:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385182', 'tblTempUsageDetail_20' ) end [2025-02-02 10:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:50:21] Production.INFO: ==23231== Releasing lock... [2025-02-02 10:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:50:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-02 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:51:05 [end_date_ymd] => 2025-02-02 10:51:05 [RateCDR] => 1 ) [2025-02-02 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-02 07:51:05' and `end` < '2025-02-02 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-02 10:51:18] Production.INFO: count ==757 [2025-02-02 10:51:18] Production.ERROR: pbx CDR StartTime 2025-02-02 07:51:05 - End Time 2025-02-02 10:51:05 [2025-02-02 10:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385188', 'tblTempUsageDetail_20' ) start [2025-02-02 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385188', 'tblTempUsageDetail_20' ) end [2025-02-02 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385188', 'tblTempVendorCDR_20' ) start [2025-02-02 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385188', 'tblTempVendorCDR_20' ) end [2025-02-02 10:51:18] Production.INFO: ProcessCDR(1,14385188,1,1,2) [2025-02-02 10:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385188', 'tblTempUsageDetail_20' ) start [2025-02-02 10:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385188', 'tblTempUsageDetail_20' ) end [2025-02-02 10:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:51:21] Production.INFO: ==23306== Releasing lock... [2025-02-02 10:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:51:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-02 10:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:52:06 [end_date_ymd] => 2025-02-02 10:52:06 [RateCDR] => 1 ) [2025-02-02 10: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-02 07:52:06' and `end` < '2025-02-02 10: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-02 10:52:20] Production.INFO: count ==836 [2025-02-02 10:52:20] Production.ERROR: pbx CDR StartTime 2025-02-02 07:52:06 - End Time 2025-02-02 10:52:06 [2025-02-02 10:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385193', 'tblTempUsageDetail_20' ) start [2025-02-02 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385193', 'tblTempUsageDetail_20' ) end [2025-02-02 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385193', 'tblTempVendorCDR_20' ) start [2025-02-02 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385193', 'tblTempVendorCDR_20' ) end [2025-02-02 10:52:20] Production.INFO: ProcessCDR(1,14385193,1,1,2) [2025-02-02 10:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385193', 'tblTempUsageDetail_20' ) start [2025-02-02 10:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385193', 'tblTempUsageDetail_20' ) end [2025-02-02 10:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:52:24] Production.INFO: ==23376== Releasing lock... [2025-02-02 10:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:52:24] Production.INFO: 34.5 MB #Memory Used# [2025-02-02 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:53:05 [end_date_ymd] => 2025-02-02 10:53:05 [RateCDR] => 1 ) [2025-02-02 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-02 07:53:05' and `end` < '2025-02-02 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-02 10:53:21] Production.INFO: count ==836 [2025-02-02 10:53:21] Production.ERROR: pbx CDR StartTime 2025-02-02 07:53:05 - End Time 2025-02-02 10:53:05 [2025-02-02 10:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385198', 'tblTempUsageDetail_20' ) start [2025-02-02 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385198', 'tblTempUsageDetail_20' ) end [2025-02-02 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385198', 'tblTempVendorCDR_20' ) start [2025-02-02 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385198', 'tblTempVendorCDR_20' ) end [2025-02-02 10:53:21] Production.INFO: ProcessCDR(1,14385198,1,1,2) [2025-02-02 10:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385198', 'tblTempUsageDetail_20' ) start [2025-02-02 10:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385198', 'tblTempUsageDetail_20' ) end [2025-02-02 10:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:53:24] Production.INFO: ==23450== Releasing lock... [2025-02-02 10:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:53:24] Production.INFO: 34.5 MB #Memory Used# [2025-02-02 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:54:05 [end_date_ymd] => 2025-02-02 10:54:05 [RateCDR] => 1 ) [2025-02-02 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-02 07:54:05' and `end` < '2025-02-02 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-02 10:54:18] Production.INFO: count ==836 [2025-02-02 10:54:18] Production.ERROR: pbx CDR StartTime 2025-02-02 07:54:05 - End Time 2025-02-02 10:54:05 [2025-02-02 10:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385203', 'tblTempUsageDetail_20' ) start [2025-02-02 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385203', 'tblTempUsageDetail_20' ) end [2025-02-02 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385203', 'tblTempVendorCDR_20' ) start [2025-02-02 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385203', 'tblTempVendorCDR_20' ) end [2025-02-02 10:54:18] Production.INFO: ProcessCDR(1,14385203,1,1,2) [2025-02-02 10:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385203', 'tblTempUsageDetail_20' ) start [2025-02-02 10:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385203', 'tblTempUsageDetail_20' ) end [2025-02-02 10:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:54:21] Production.INFO: ==23520== Releasing lock... [2025-02-02 10:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:54:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-02 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:55:05 [end_date_ymd] => 2025-02-02 10:55:05 [RateCDR] => 1 ) [2025-02-02 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-02 07:55:05' and `end` < '2025-02-02 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-02 10:55:18] Production.INFO: count ==842 [2025-02-02 10:55:18] Production.ERROR: pbx CDR StartTime 2025-02-02 07:55:05 - End Time 2025-02-02 10:55:05 [2025-02-02 10:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385208', 'tblTempUsageDetail_20' ) start [2025-02-02 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385208', 'tblTempUsageDetail_20' ) end [2025-02-02 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385208', 'tblTempVendorCDR_20' ) start [2025-02-02 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385208', 'tblTempVendorCDR_20' ) end [2025-02-02 10:55:18] Production.INFO: ProcessCDR(1,14385208,1,1,2) [2025-02-02 10:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385208', 'tblTempUsageDetail_20' ) start [2025-02-02 10:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385208', 'tblTempUsageDetail_20' ) end [2025-02-02 10:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:55:21] Production.INFO: ==23629== Releasing lock... [2025-02-02 10:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:55:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-02 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:56:05 [end_date_ymd] => 2025-02-02 10:56:05 [RateCDR] => 1 ) [2025-02-02 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-02 07:56:05' and `end` < '2025-02-02 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-02 10:56:18] Production.INFO: count ==894 [2025-02-02 10:56:19] Production.ERROR: pbx CDR StartTime 2025-02-02 07:56:05 - End Time 2025-02-02 10:56:05 [2025-02-02 10:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385213', 'tblTempUsageDetail_20' ) start [2025-02-02 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385213', 'tblTempUsageDetail_20' ) end [2025-02-02 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385213', 'tblTempVendorCDR_20' ) start [2025-02-02 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385213', 'tblTempVendorCDR_20' ) end [2025-02-02 10:56:19] Production.INFO: ProcessCDR(1,14385213,1,1,2) [2025-02-02 10:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385213', 'tblTempUsageDetail_20' ) start [2025-02-02 10:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385213', 'tblTempUsageDetail_20' ) end [2025-02-02 10:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:56:23] Production.INFO: ==23712== Releasing lock... [2025-02-02 10:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:56:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-02 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:57:05 [end_date_ymd] => 2025-02-02 10:57:05 [RateCDR] => 1 ) [2025-02-02 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-02 07:57:05' and `end` < '2025-02-02 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-02 10:57:19] Production.INFO: count ==948 [2025-02-02 10:57:19] Production.ERROR: pbx CDR StartTime 2025-02-02 07:57:05 - End Time 2025-02-02 10:57:05 [2025-02-02 10:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385218', 'tblTempUsageDetail_20' ) start [2025-02-02 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385218', 'tblTempUsageDetail_20' ) end [2025-02-02 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385218', 'tblTempVendorCDR_20' ) start [2025-02-02 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385218', 'tblTempVendorCDR_20' ) end [2025-02-02 10:57:19] Production.INFO: ProcessCDR(1,14385218,1,1,2) [2025-02-02 10:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385218', 'tblTempUsageDetail_20' ) start [2025-02-02 10:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385218', 'tblTempUsageDetail_20' ) end [2025-02-02 10:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:57:24] Production.INFO: ==23786== Releasing lock... [2025-02-02 10:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:57:24] Production.INFO: 36 MB #Memory Used# [2025-02-02 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:58:05 [end_date_ymd] => 2025-02-02 10:58:05 [RateCDR] => 1 ) [2025-02-02 10:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 07:58:05' and `end` < '2025-02-02 10:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 10:58:18] Production.INFO: count ==948 [2025-02-02 10:58:18] Production.ERROR: pbx CDR StartTime 2025-02-02 07:58:05 - End Time 2025-02-02 10:58:05 [2025-02-02 10:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385223', 'tblTempUsageDetail_20' ) start [2025-02-02 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385223', 'tblTempUsageDetail_20' ) end [2025-02-02 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385223', 'tblTempVendorCDR_20' ) start [2025-02-02 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385223', 'tblTempVendorCDR_20' ) end [2025-02-02 10:58:19] Production.INFO: ProcessCDR(1,14385223,1,1,2) [2025-02-02 10:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385223', 'tblTempUsageDetail_20' ) start [2025-02-02 10:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385223', 'tblTempUsageDetail_20' ) end [2025-02-02 10:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:58:22] Production.INFO: ==23857== Releasing lock... [2025-02-02 10:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:58:22] Production.INFO: 36 MB #Memory Used# [2025-02-02 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 07:59:05 [end_date_ymd] => 2025-02-02 10:59:05 [RateCDR] => 1 ) [2025-02-02 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-02 07:59:05' and `end` < '2025-02-02 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-02 10:59:20] Production.INFO: count ==948 [2025-02-02 10:59:21] Production.ERROR: pbx CDR StartTime 2025-02-02 07:59:05 - End Time 2025-02-02 10:59:05 [2025-02-02 10:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385228', 'tblTempUsageDetail_20' ) start [2025-02-02 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385228', 'tblTempUsageDetail_20' ) end [2025-02-02 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385228', 'tblTempVendorCDR_20' ) start [2025-02-02 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385228', 'tblTempVendorCDR_20' ) end [2025-02-02 10:59:21] Production.INFO: ProcessCDR(1,14385228,1,1,2) [2025-02-02 10:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 10:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 10:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385228', 'tblTempUsageDetail_20' ) start [2025-02-02 10:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385228', 'tblTempUsageDetail_20' ) end [2025-02-02 10:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 10:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 10:59:24] Production.INFO: ==23928== Releasing lock... [2025-02-02 10:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 10:59:24] Production.INFO: 36 MB #Memory Used# [2025-02-02 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:00:06 [end_date_ymd] => 2025-02-02 11:00:06 [RateCDR] => 1 ) [2025-02-02 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-02 08:00:06' and `end` < '2025-02-02 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-02 11:00:19] Production.INFO: count ==950 [2025-02-02 11:00:19] Production.ERROR: pbx CDR StartTime 2025-02-02 08:00:06 - End Time 2025-02-02 11:00:06 [2025-02-02 11:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385234', 'tblTempUsageDetail_20' ) start [2025-02-02 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385234', 'tblTempUsageDetail_20' ) end [2025-02-02 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385234', 'tblTempVendorCDR_20' ) start [2025-02-02 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385234', 'tblTempVendorCDR_20' ) end [2025-02-02 11:00:19] Production.INFO: ProcessCDR(1,14385234,1,1,2) [2025-02-02 11:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385234', 'tblTempUsageDetail_20' ) start [2025-02-02 11:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385234', 'tblTempUsageDetail_20' ) end [2025-02-02 11:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:00:22] Production.INFO: ==24003== Releasing lock... [2025-02-02 11:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:00:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-02 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:01:05 [end_date_ymd] => 2025-02-02 11:01:05 [RateCDR] => 1 ) [2025-02-02 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-02 08:01:05' and `end` < '2025-02-02 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-02 11:01:19] Production.INFO: count ==968 [2025-02-02 11:01:20] Production.ERROR: pbx CDR StartTime 2025-02-02 08:01:05 - End Time 2025-02-02 11:01:05 [2025-02-02 11:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385239', 'tblTempUsageDetail_20' ) start [2025-02-02 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385239', 'tblTempUsageDetail_20' ) end [2025-02-02 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385239', 'tblTempVendorCDR_20' ) start [2025-02-02 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385239', 'tblTempVendorCDR_20' ) end [2025-02-02 11:01:20] Production.INFO: ProcessCDR(1,14385239,1,1,2) [2025-02-02 11:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385239', 'tblTempUsageDetail_20' ) start [2025-02-02 11:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385239', 'tblTempUsageDetail_20' ) end [2025-02-02 11:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:01:23] Production.INFO: ==24165== Releasing lock... [2025-02-02 11:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:01:23] Production.INFO: 36 MB #Memory Used# [2025-02-02 11:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:02:06 [end_date_ymd] => 2025-02-02 11:02:06 [RateCDR] => 1 ) [2025-02-02 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-02 08:02:06' and `end` < '2025-02-02 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-02 11:02:19] Production.INFO: count ==968 [2025-02-02 11:02:20] Production.ERROR: pbx CDR StartTime 2025-02-02 08:02:06 - End Time 2025-02-02 11:02:06 [2025-02-02 11:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385244', 'tblTempUsageDetail_20' ) start [2025-02-02 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385244', 'tblTempUsageDetail_20' ) end [2025-02-02 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385244', 'tblTempVendorCDR_20' ) start [2025-02-02 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385244', 'tblTempVendorCDR_20' ) end [2025-02-02 11:02:20] Production.INFO: ProcessCDR(1,14385244,1,1,2) [2025-02-02 11:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385244', 'tblTempUsageDetail_20' ) start [2025-02-02 11:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385244', 'tblTempUsageDetail_20' ) end [2025-02-02 11:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:02:23] Production.INFO: ==24237== Releasing lock... [2025-02-02 11:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:02:23] Production.INFO: 36 MB #Memory Used# [2025-02-02 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:03:05 [end_date_ymd] => 2025-02-02 11:03:05 [RateCDR] => 1 ) [2025-02-02 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-02 08:03:05' and `end` < '2025-02-02 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-02 11:03:20] Production.INFO: count ==968 [2025-02-02 11:03:20] Production.ERROR: pbx CDR StartTime 2025-02-02 08:03:05 - End Time 2025-02-02 11:03:05 [2025-02-02 11:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385249', 'tblTempUsageDetail_20' ) start [2025-02-02 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385249', 'tblTempUsageDetail_20' ) end [2025-02-02 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385249', 'tblTempVendorCDR_20' ) start [2025-02-02 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385249', 'tblTempVendorCDR_20' ) end [2025-02-02 11:03:20] Production.INFO: ProcessCDR(1,14385249,1,1,2) [2025-02-02 11:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385249', 'tblTempUsageDetail_20' ) start [2025-02-02 11:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385249', 'tblTempUsageDetail_20' ) end [2025-02-02 11:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:03:23] Production.INFO: ==24307== Releasing lock... [2025-02-02 11:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:03:23] Production.INFO: 36 MB #Memory Used# [2025-02-02 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:04:05 [end_date_ymd] => 2025-02-02 11:04:05 [RateCDR] => 1 ) [2025-02-02 11:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 08:04:05' and `end` < '2025-02-02 11:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 11:04:18] Production.INFO: count ==970 [2025-02-02 11:04:18] Production.ERROR: pbx CDR StartTime 2025-02-02 08:04:05 - End Time 2025-02-02 11:04:05 [2025-02-02 11:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385254', 'tblTempUsageDetail_20' ) start [2025-02-02 11:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385254', 'tblTempUsageDetail_20' ) end [2025-02-02 11:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385254', 'tblTempVendorCDR_20' ) start [2025-02-02 11:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385254', 'tblTempVendorCDR_20' ) end [2025-02-02 11:04:18] Production.INFO: ProcessCDR(1,14385254,1,1,2) [2025-02-02 11:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385254', 'tblTempUsageDetail_20' ) start [2025-02-02 11:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385254', 'tblTempUsageDetail_20' ) end [2025-02-02 11:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:04:21] Production.INFO: ==24379== Releasing lock... [2025-02-02 11:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:04:21] Production.INFO: 36 MB #Memory Used# [2025-02-02 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:05:05 [end_date_ymd] => 2025-02-02 11:05:05 [RateCDR] => 1 ) [2025-02-02 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-02 08:05:05' and `end` < '2025-02-02 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-02 11:05:18] Production.INFO: count ==970 [2025-02-02 11:05:18] Production.ERROR: pbx CDR StartTime 2025-02-02 08:05:05 - End Time 2025-02-02 11:05:05 [2025-02-02 11:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385259', 'tblTempUsageDetail_20' ) start [2025-02-02 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385259', 'tblTempUsageDetail_20' ) end [2025-02-02 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385259', 'tblTempVendorCDR_20' ) start [2025-02-02 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385259', 'tblTempVendorCDR_20' ) end [2025-02-02 11:05:18] Production.INFO: ProcessCDR(1,14385259,1,1,2) [2025-02-02 11:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385259', 'tblTempUsageDetail_20' ) start [2025-02-02 11:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385259', 'tblTempUsageDetail_20' ) end [2025-02-02 11:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:05:22] Production.INFO: ==24527== Releasing lock... [2025-02-02 11:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:05:22] Production.INFO: 36 MB #Memory Used# [2025-02-02 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:06:05 [end_date_ymd] => 2025-02-02 11:06:05 [RateCDR] => 1 ) [2025-02-02 11:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 08:06:05' and `end` < '2025-02-02 11:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 11:06:18] Production.INFO: count ==973 [2025-02-02 11:06:18] Production.ERROR: pbx CDR StartTime 2025-02-02 08:06:05 - End Time 2025-02-02 11:06:05 [2025-02-02 11:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385264', 'tblTempUsageDetail_20' ) start [2025-02-02 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385264', 'tblTempUsageDetail_20' ) end [2025-02-02 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385264', 'tblTempVendorCDR_20' ) start [2025-02-02 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385264', 'tblTempVendorCDR_20' ) end [2025-02-02 11:06:18] Production.INFO: ProcessCDR(1,14385264,1,1,2) [2025-02-02 11:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385264', 'tblTempUsageDetail_20' ) start [2025-02-02 11:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385264', 'tblTempUsageDetail_20' ) end [2025-02-02 11:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:06:22] Production.INFO: ==24598== Releasing lock... [2025-02-02 11:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:06:22] Production.INFO: 36 MB #Memory Used# [2025-02-02 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:07:05 [end_date_ymd] => 2025-02-02 11:07:05 [RateCDR] => 1 ) [2025-02-02 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-02 08:07:05' and `end` < '2025-02-02 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-02 11:07:19] Production.INFO: count ==975 [2025-02-02 11:07:20] Production.ERROR: pbx CDR StartTime 2025-02-02 08:07:05 - End Time 2025-02-02 11:07:05 [2025-02-02 11:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385269', 'tblTempUsageDetail_20' ) start [2025-02-02 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385269', 'tblTempUsageDetail_20' ) end [2025-02-02 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385269', 'tblTempVendorCDR_20' ) start [2025-02-02 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385269', 'tblTempVendorCDR_20' ) end [2025-02-02 11:07:20] Production.INFO: ProcessCDR(1,14385269,1,1,2) [2025-02-02 11:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385269', 'tblTempUsageDetail_20' ) start [2025-02-02 11:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385269', 'tblTempUsageDetail_20' ) end [2025-02-02 11:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:07:23] Production.INFO: ==24667== Releasing lock... [2025-02-02 11:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:07:23] Production.INFO: 35.75 MB #Memory Used# [2025-02-02 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:08:05 [end_date_ymd] => 2025-02-02 11:08:05 [RateCDR] => 1 ) [2025-02-02 11:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 08:08:05' and `end` < '2025-02-02 11:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 11:08:20] Production.INFO: count ==975 [2025-02-02 11:08:20] Production.ERROR: pbx CDR StartTime 2025-02-02 08:08:05 - End Time 2025-02-02 11:08:05 [2025-02-02 11:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385274', 'tblTempUsageDetail_20' ) start [2025-02-02 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385274', 'tblTempUsageDetail_20' ) end [2025-02-02 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385274', 'tblTempVendorCDR_20' ) start [2025-02-02 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385274', 'tblTempVendorCDR_20' ) end [2025-02-02 11:08:20] Production.INFO: ProcessCDR(1,14385274,1,1,2) [2025-02-02 11:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385274', 'tblTempUsageDetail_20' ) start [2025-02-02 11:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385274', 'tblTempUsageDetail_20' ) end [2025-02-02 11:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:08:23] Production.INFO: ==24819== Releasing lock... [2025-02-02 11:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:08:23] Production.INFO: 35.75 MB #Memory Used# [2025-02-02 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:09:05 [end_date_ymd] => 2025-02-02 11:09:05 [RateCDR] => 1 ) [2025-02-02 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-02 08:09:05' and `end` < '2025-02-02 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-02 11:09:19] Production.INFO: count ==976 [2025-02-02 11:09:19] Production.ERROR: pbx CDR StartTime 2025-02-02 08:09:05 - End Time 2025-02-02 11:09:05 [2025-02-02 11:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385279', 'tblTempUsageDetail_20' ) start [2025-02-02 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385279', 'tblTempUsageDetail_20' ) end [2025-02-02 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385279', 'tblTempVendorCDR_20' ) start [2025-02-02 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385279', 'tblTempVendorCDR_20' ) end [2025-02-02 11:09:20] Production.INFO: ProcessCDR(1,14385279,1,1,2) [2025-02-02 11:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385279', 'tblTempUsageDetail_20' ) start [2025-02-02 11:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385279', 'tblTempUsageDetail_20' ) end [2025-02-02 11:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:09:24] Production.INFO: ==24901== Releasing lock... [2025-02-02 11:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:09:24] Production.INFO: 36 MB #Memory Used# [2025-02-02 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:10:06 [end_date_ymd] => 2025-02-02 11:10:06 [RateCDR] => 1 ) [2025-02-02 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-02 08:10:06' and `end` < '2025-02-02 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-02 11:10:18] Production.INFO: count ==980 [2025-02-02 11:10:19] Production.ERROR: pbx CDR StartTime 2025-02-02 08:10:06 - End Time 2025-02-02 11:10:06 [2025-02-02 11:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385285', 'tblTempUsageDetail_20' ) start [2025-02-02 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385285', 'tblTempUsageDetail_20' ) end [2025-02-02 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385285', 'tblTempVendorCDR_20' ) start [2025-02-02 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385285', 'tblTempVendorCDR_20' ) end [2025-02-02 11:10:19] Production.INFO: ProcessCDR(1,14385285,1,1,2) [2025-02-02 11:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385285', 'tblTempUsageDetail_20' ) start [2025-02-02 11:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385285', 'tblTempUsageDetail_20' ) end [2025-02-02 11:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:10:22] Production.INFO: ==25011== Releasing lock... [2025-02-02 11:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:10:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-02 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:11:05 [end_date_ymd] => 2025-02-02 11:11:05 [RateCDR] => 1 ) [2025-02-02 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-02 08:11:05' and `end` < '2025-02-02 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-02 11:11:18] Production.INFO: count ==1009 [2025-02-02 11:11:19] Production.ERROR: pbx CDR StartTime 2025-02-02 08:11:05 - End Time 2025-02-02 11:11:05 [2025-02-02 11:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385290', 'tblTempUsageDetail_20' ) start [2025-02-02 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385290', 'tblTempUsageDetail_20' ) end [2025-02-02 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385290', 'tblTempVendorCDR_20' ) start [2025-02-02 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385290', 'tblTempVendorCDR_20' ) end [2025-02-02 11:11:19] Production.INFO: ProcessCDR(1,14385290,1,1,2) [2025-02-02 11:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385290', 'tblTempUsageDetail_20' ) start [2025-02-02 11:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385290', 'tblTempUsageDetail_20' ) end [2025-02-02 11:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:11:22] Production.INFO: ==25084== Releasing lock... [2025-02-02 11:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:11:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-02 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:12:05 [end_date_ymd] => 2025-02-02 11:12:05 [RateCDR] => 1 ) [2025-02-02 11:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 08:12:05' and `end` < '2025-02-02 11:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 11:12:19] Production.INFO: count ==1014 [2025-02-02 11:12:19] Production.ERROR: pbx CDR StartTime 2025-02-02 08:12:05 - End Time 2025-02-02 11:12:05 [2025-02-02 11:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385295', 'tblTempUsageDetail_20' ) start [2025-02-02 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385295', 'tblTempUsageDetail_20' ) end [2025-02-02 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385295', 'tblTempVendorCDR_20' ) start [2025-02-02 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385295', 'tblTempVendorCDR_20' ) end [2025-02-02 11:12:19] Production.INFO: ProcessCDR(1,14385295,1,1,2) [2025-02-02 11:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385295', 'tblTempUsageDetail_20' ) start [2025-02-02 11:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385295', 'tblTempUsageDetail_20' ) end [2025-02-02 11:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:12:22] Production.INFO: ==25232== Releasing lock... [2025-02-02 11:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:12:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-02 11:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:13:06 [end_date_ymd] => 2025-02-02 11:13:06 [RateCDR] => 1 ) [2025-02-02 11:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 08:13:06' and `end` < '2025-02-02 11:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 11:13:19] Production.INFO: count ==1014 [2025-02-02 11:13:19] Production.ERROR: pbx CDR StartTime 2025-02-02 08:13:06 - End Time 2025-02-02 11:13:06 [2025-02-02 11:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385300', 'tblTempUsageDetail_20' ) start [2025-02-02 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385300', 'tblTempUsageDetail_20' ) end [2025-02-02 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385300', 'tblTempVendorCDR_20' ) start [2025-02-02 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385300', 'tblTempVendorCDR_20' ) end [2025-02-02 11:13:19] Production.INFO: ProcessCDR(1,14385300,1,1,2) [2025-02-02 11:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385300', 'tblTempUsageDetail_20' ) start [2025-02-02 11:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385300', 'tblTempUsageDetail_20' ) end [2025-02-02 11:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:13:22] Production.INFO: ==25303== Releasing lock... [2025-02-02 11:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:13:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-02 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:14:05 [end_date_ymd] => 2025-02-02 11:14:05 [RateCDR] => 1 ) [2025-02-02 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-02 08:14:05' and `end` < '2025-02-02 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-02 11:14:19] Production.INFO: count ==1023 [2025-02-02 11:14:19] Production.ERROR: pbx CDR StartTime 2025-02-02 08:14:05 - End Time 2025-02-02 11:14:05 [2025-02-02 11:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385305', 'tblTempUsageDetail_20' ) start [2025-02-02 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385305', 'tblTempUsageDetail_20' ) end [2025-02-02 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385305', 'tblTempVendorCDR_20' ) start [2025-02-02 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385305', 'tblTempVendorCDR_20' ) end [2025-02-02 11:14:19] Production.INFO: ProcessCDR(1,14385305,1,1,2) [2025-02-02 11:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385305', 'tblTempUsageDetail_20' ) start [2025-02-02 11:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385305', 'tblTempUsageDetail_20' ) end [2025-02-02 11:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:14:24] Production.INFO: ==25372== Releasing lock... [2025-02-02 11:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:14:24] Production.INFO: 36.5 MB #Memory Used# [2025-02-02 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:15:05 [end_date_ymd] => 2025-02-02 11:15:05 [RateCDR] => 1 ) [2025-02-02 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-02 08:15:05' and `end` < '2025-02-02 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-02 11:15:18] Production.INFO: count ==1024 [2025-02-02 11:15:19] Production.ERROR: pbx CDR StartTime 2025-02-02 08:15:05 - End Time 2025-02-02 11:15:05 [2025-02-02 11:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385310', 'tblTempUsageDetail_20' ) start [2025-02-02 11:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385310', 'tblTempUsageDetail_20' ) end [2025-02-02 11:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385310', 'tblTempVendorCDR_20' ) start [2025-02-02 11:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385310', 'tblTempVendorCDR_20' ) end [2025-02-02 11:15:19] Production.INFO: ProcessCDR(1,14385310,1,1,2) [2025-02-02 11:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385310', 'tblTempUsageDetail_20' ) start [2025-02-02 11:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385310', 'tblTempUsageDetail_20' ) end [2025-02-02 11:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:15:23] Production.INFO: ==25522== Releasing lock... [2025-02-02 11:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:15:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-02 11:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:16:04 [end_date_ymd] => 2025-02-02 11:16:04 [RateCDR] => 1 ) [2025-02-02 11: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-02 08:16:04' and `end` < '2025-02-02 11: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-02 11:16:19] Production.INFO: count ==1025 [2025-02-02 11:16:19] Production.ERROR: pbx CDR StartTime 2025-02-02 08:16:04 - End Time 2025-02-02 11:16:04 [2025-02-02 11:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385315', 'tblTempUsageDetail_20' ) start [2025-02-02 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385315', 'tblTempUsageDetail_20' ) end [2025-02-02 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385315', 'tblTempVendorCDR_20' ) start [2025-02-02 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385315', 'tblTempVendorCDR_20' ) end [2025-02-02 11:16:19] Production.INFO: ProcessCDR(1,14385315,1,1,2) [2025-02-02 11:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385315', 'tblTempUsageDetail_20' ) start [2025-02-02 11:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385315', 'tblTempUsageDetail_20' ) end [2025-02-02 11:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:16:24] Production.INFO: ==25592== Releasing lock... [2025-02-02 11:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:16:24] Production.INFO: 36.5 MB #Memory Used# [2025-02-02 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:17:05 [end_date_ymd] => 2025-02-02 11:17:05 [RateCDR] => 1 ) [2025-02-02 11:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 08:17:05' and `end` < '2025-02-02 11:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 11:17:20] Production.INFO: count ==1025 [2025-02-02 11:17:21] Production.ERROR: pbx CDR StartTime 2025-02-02 08:17:05 - End Time 2025-02-02 11:17:05 [2025-02-02 11:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385320', 'tblTempUsageDetail_20' ) start [2025-02-02 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385320', 'tblTempUsageDetail_20' ) end [2025-02-02 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385320', 'tblTempVendorCDR_20' ) start [2025-02-02 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385320', 'tblTempVendorCDR_20' ) end [2025-02-02 11:17:21] Production.INFO: ProcessCDR(1,14385320,1,1,2) [2025-02-02 11:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385320', 'tblTempUsageDetail_20' ) start [2025-02-02 11:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385320', 'tblTempUsageDetail_20' ) end [2025-02-02 11:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:17:24] Production.INFO: ==25663== Releasing lock... [2025-02-02 11:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:17:24] Production.INFO: 36.5 MB #Memory Used# [2025-02-02 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:18:05 [end_date_ymd] => 2025-02-02 11:18:05 [RateCDR] => 1 ) [2025-02-02 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-02 08:18:05' and `end` < '2025-02-02 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-02 11:18:18] Production.INFO: count ==1028 [2025-02-02 11:18:18] Production.ERROR: pbx CDR StartTime 2025-02-02 08:18:05 - End Time 2025-02-02 11:18:05 [2025-02-02 11:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385325', 'tblTempUsageDetail_20' ) start [2025-02-02 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385325', 'tblTempUsageDetail_20' ) end [2025-02-02 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385325', 'tblTempVendorCDR_20' ) start [2025-02-02 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385325', 'tblTempVendorCDR_20' ) end [2025-02-02 11:18:18] Production.INFO: ProcessCDR(1,14385325,1,1,2) [2025-02-02 11:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385325', 'tblTempUsageDetail_20' ) start [2025-02-02 11:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385325', 'tblTempUsageDetail_20' ) end [2025-02-02 11:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:18:23] Production.INFO: ==25734== Releasing lock... [2025-02-02 11:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:18:23] Production.INFO: 36.5 MB #Memory Used# [2025-02-02 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:19:05 [end_date_ymd] => 2025-02-02 11:19:05 [RateCDR] => 1 ) [2025-02-02 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-02 08:19:05' and `end` < '2025-02-02 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-02 11:19:19] Production.INFO: count ==1028 [2025-02-02 11:19:19] Production.ERROR: pbx CDR StartTime 2025-02-02 08:19:05 - End Time 2025-02-02 11:19:05 [2025-02-02 11:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385330', 'tblTempUsageDetail_20' ) start [2025-02-02 11:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385330', 'tblTempUsageDetail_20' ) end [2025-02-02 11:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385330', 'tblTempVendorCDR_20' ) start [2025-02-02 11:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385330', 'tblTempVendorCDR_20' ) end [2025-02-02 11:19:19] Production.INFO: ProcessCDR(1,14385330,1,1,2) [2025-02-02 11:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385330', 'tblTempUsageDetail_20' ) start [2025-02-02 11:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385330', 'tblTempUsageDetail_20' ) end [2025-02-02 11:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:19:23] Production.INFO: ==25804== Releasing lock... [2025-02-02 11:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:19:23] Production.INFO: 36.5 MB #Memory Used# [2025-02-02 11:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:20:07 [end_date_ymd] => 2025-02-02 11:20:07 [RateCDR] => 1 ) [2025-02-02 11:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 08:20:07' and `end` < '2025-02-02 11:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 11:20:20] Production.INFO: count ==1032 [2025-02-02 11:20:20] Production.ERROR: pbx CDR StartTime 2025-02-02 08:20:07 - End Time 2025-02-02 11:20:07 [2025-02-02 11:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385336', 'tblTempUsageDetail_20' ) start [2025-02-02 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385336', 'tblTempUsageDetail_20' ) end [2025-02-02 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385336', 'tblTempVendorCDR_20' ) start [2025-02-02 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385336', 'tblTempVendorCDR_20' ) end [2025-02-02 11:20:20] Production.INFO: ProcessCDR(1,14385336,1,1,2) [2025-02-02 11:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385336', 'tblTempUsageDetail_20' ) start [2025-02-02 11:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385336', 'tblTempUsageDetail_20' ) end [2025-02-02 11:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:20:23] Production.INFO: ==25876== Releasing lock... [2025-02-02 11:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:20:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-02 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:21:05 [end_date_ymd] => 2025-02-02 11:21:05 [RateCDR] => 1 ) [2025-02-02 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-02 08:21:05' and `end` < '2025-02-02 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-02 11:21:19] Production.INFO: count ==1046 [2025-02-02 11:21:19] Production.ERROR: pbx CDR StartTime 2025-02-02 08:21:05 - End Time 2025-02-02 11:21:05 [2025-02-02 11:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385341', 'tblTempUsageDetail_20' ) start [2025-02-02 11:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385341', 'tblTempUsageDetail_20' ) end [2025-02-02 11:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385341', 'tblTempVendorCDR_20' ) start [2025-02-02 11:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385341', 'tblTempVendorCDR_20' ) end [2025-02-02 11:21:19] Production.INFO: ProcessCDR(1,14385341,1,1,2) [2025-02-02 11:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385341', 'tblTempUsageDetail_20' ) start [2025-02-02 11:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385341', 'tblTempUsageDetail_20' ) end [2025-02-02 11:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:21:22] Production.INFO: ==25948== Releasing lock... [2025-02-02 11:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:21:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-02 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:22:05 [end_date_ymd] => 2025-02-02 11:22:05 [RateCDR] => 1 ) [2025-02-02 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-02 08:22:05' and `end` < '2025-02-02 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-02 11:22:20] Production.INFO: count ==1046 [2025-02-02 11:22:20] Production.ERROR: pbx CDR StartTime 2025-02-02 08:22:05 - End Time 2025-02-02 11:22:05 [2025-02-02 11:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385346', 'tblTempUsageDetail_20' ) start [2025-02-02 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385346', 'tblTempUsageDetail_20' ) end [2025-02-02 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385346', 'tblTempVendorCDR_20' ) start [2025-02-02 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385346', 'tblTempVendorCDR_20' ) end [2025-02-02 11:22:20] Production.INFO: ProcessCDR(1,14385346,1,1,2) [2025-02-02 11:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385346', 'tblTempUsageDetail_20' ) start [2025-02-02 11:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385346', 'tblTempUsageDetail_20' ) end [2025-02-02 11:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:22:23] Production.INFO: ==26018== Releasing lock... [2025-02-02 11:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:22:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-02 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:23:05 [end_date_ymd] => 2025-02-02 11:23:05 [RateCDR] => 1 ) [2025-02-02 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-02 08:23:05' and `end` < '2025-02-02 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-02 11:23:18] Production.INFO: count ==1045 [2025-02-02 11:23:18] Production.ERROR: pbx CDR StartTime 2025-02-02 08:23:05 - End Time 2025-02-02 11:23:05 [2025-02-02 11:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385351', 'tblTempUsageDetail_20' ) start [2025-02-02 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385351', 'tblTempUsageDetail_20' ) end [2025-02-02 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385351', 'tblTempVendorCDR_20' ) start [2025-02-02 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385351', 'tblTempVendorCDR_20' ) end [2025-02-02 11:23:18] Production.INFO: ProcessCDR(1,14385351,1,1,2) [2025-02-02 11:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385351', 'tblTempUsageDetail_20' ) start [2025-02-02 11:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385351', 'tblTempUsageDetail_20' ) end [2025-02-02 11:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:23:22] Production.INFO: ==26091== Releasing lock... [2025-02-02 11:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:23:22] Production.INFO: 37 MB #Memory Used# [2025-02-02 11:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:24:06 [end_date_ymd] => 2025-02-02 11:24:06 [RateCDR] => 1 ) [2025-02-02 11:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 08:24:06' and `end` < '2025-02-02 11:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 11:24:19] Production.INFO: count ==1045 [2025-02-02 11:24:19] Production.ERROR: pbx CDR StartTime 2025-02-02 08:24:06 - End Time 2025-02-02 11:24:06 [2025-02-02 11:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385356', 'tblTempUsageDetail_20' ) start [2025-02-02 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385356', 'tblTempUsageDetail_20' ) end [2025-02-02 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385356', 'tblTempVendorCDR_20' ) start [2025-02-02 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385356', 'tblTempVendorCDR_20' ) end [2025-02-02 11:24:20] Production.INFO: ProcessCDR(1,14385356,1,1,2) [2025-02-02 11:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385356', 'tblTempUsageDetail_20' ) start [2025-02-02 11:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385356', 'tblTempUsageDetail_20' ) end [2025-02-02 11:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:24:24] Production.INFO: ==26164== Releasing lock... [2025-02-02 11:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:24:24] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:25:05 [end_date_ymd] => 2025-02-02 11:25:05 [RateCDR] => 1 ) [2025-02-02 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-02 08:25:05' and `end` < '2025-02-02 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-02 11:25:18] Production.INFO: count ==1045 [2025-02-02 11:25:19] Production.ERROR: pbx CDR StartTime 2025-02-02 08:25:05 - End Time 2025-02-02 11:25:05 [2025-02-02 11:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385361', 'tblTempUsageDetail_20' ) start [2025-02-02 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385361', 'tblTempUsageDetail_20' ) end [2025-02-02 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385361', 'tblTempVendorCDR_20' ) start [2025-02-02 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385361', 'tblTempVendorCDR_20' ) end [2025-02-02 11:25:19] Production.INFO: ProcessCDR(1,14385361,1,1,2) [2025-02-02 11:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385361', 'tblTempUsageDetail_20' ) start [2025-02-02 11:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385361', 'tblTempUsageDetail_20' ) end [2025-02-02 11:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:25:22] Production.INFO: ==26234== Releasing lock... [2025-02-02 11:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:25:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:26:05 [end_date_ymd] => 2025-02-02 11:26:05 [RateCDR] => 1 ) [2025-02-02 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-02 08:26:05' and `end` < '2025-02-02 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-02 11:26:19] Production.INFO: count ==1046 [2025-02-02 11:26:20] Production.ERROR: pbx CDR StartTime 2025-02-02 08:26:05 - End Time 2025-02-02 11:26:05 [2025-02-02 11:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385366', 'tblTempUsageDetail_20' ) start [2025-02-02 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385366', 'tblTempUsageDetail_20' ) end [2025-02-02 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385366', 'tblTempVendorCDR_20' ) start [2025-02-02 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385366', 'tblTempVendorCDR_20' ) end [2025-02-02 11:26:20] Production.INFO: ProcessCDR(1,14385366,1,1,2) [2025-02-02 11:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385366', 'tblTempUsageDetail_20' ) start [2025-02-02 11:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385366', 'tblTempUsageDetail_20' ) end [2025-02-02 11:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:26:23] Production.INFO: ==26346== Releasing lock... [2025-02-02 11:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:26:23] Production.INFO: 36.5 MB #Memory Used# [2025-02-02 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:27:05 [end_date_ymd] => 2025-02-02 11:27:05 [RateCDR] => 1 ) [2025-02-02 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-02 08:27:05' and `end` < '2025-02-02 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-02 11:27:18] Production.INFO: count ==1046 [2025-02-02 11:27:18] Production.ERROR: pbx CDR StartTime 2025-02-02 08:27:05 - End Time 2025-02-02 11:27:05 [2025-02-02 11:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385371', 'tblTempUsageDetail_20' ) start [2025-02-02 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385371', 'tblTempUsageDetail_20' ) end [2025-02-02 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385371', 'tblTempVendorCDR_20' ) start [2025-02-02 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385371', 'tblTempVendorCDR_20' ) end [2025-02-02 11:27:18] Production.INFO: ProcessCDR(1,14385371,1,1,2) [2025-02-02 11:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385371', 'tblTempUsageDetail_20' ) start [2025-02-02 11:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385371', 'tblTempUsageDetail_20' ) end [2025-02-02 11:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:27:21] Production.INFO: ==26417== Releasing lock... [2025-02-02 11:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:27:21] Production.INFO: 36.5 MB #Memory Used# [2025-02-02 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:28:05 [end_date_ymd] => 2025-02-02 11:28:05 [RateCDR] => 1 ) [2025-02-02 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-02 08:28:05' and `end` < '2025-02-02 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-02 11:28:19] Production.INFO: count ==1047 [2025-02-02 11:28:19] Production.ERROR: pbx CDR StartTime 2025-02-02 08:28:05 - End Time 2025-02-02 11:28:05 [2025-02-02 11:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385376', 'tblTempUsageDetail_20' ) start [2025-02-02 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385376', 'tblTempUsageDetail_20' ) end [2025-02-02 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385376', 'tblTempVendorCDR_20' ) start [2025-02-02 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385376', 'tblTempVendorCDR_20' ) end [2025-02-02 11:28:19] Production.INFO: ProcessCDR(1,14385376,1,1,2) [2025-02-02 11:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385376', 'tblTempUsageDetail_20' ) start [2025-02-02 11:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385376', 'tblTempUsageDetail_20' ) end [2025-02-02 11:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:28:22] Production.INFO: ==26492== Releasing lock... [2025-02-02 11:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:28:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:29:05 [end_date_ymd] => 2025-02-02 11:29:05 [RateCDR] => 1 ) [2025-02-02 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-02 08:29:05' and `end` < '2025-02-02 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-02 11:29:18] Production.INFO: count ==1055 [2025-02-02 11:29:18] Production.ERROR: pbx CDR StartTime 2025-02-02 08:29:05 - End Time 2025-02-02 11:29:05 [2025-02-02 11:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385381', 'tblTempUsageDetail_20' ) start [2025-02-02 11:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385381', 'tblTempUsageDetail_20' ) end [2025-02-02 11:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385381', 'tblTempVendorCDR_20' ) start [2025-02-02 11:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385381', 'tblTempVendorCDR_20' ) end [2025-02-02 11:29:18] Production.INFO: ProcessCDR(1,14385381,1,1,2) [2025-02-02 11:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385381', 'tblTempUsageDetail_20' ) start [2025-02-02 11:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385381', 'tblTempUsageDetail_20' ) end [2025-02-02 11:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:29:22] Production.INFO: ==26562== Releasing lock... [2025-02-02 11:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:29:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-02 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:30:06 [end_date_ymd] => 2025-02-02 11:30:06 [RateCDR] => 1 ) [2025-02-02 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-02 08:30:06' and `end` < '2025-02-02 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-02 11:30:19] Production.INFO: count ==1056 [2025-02-02 11:30:19] Production.ERROR: pbx CDR StartTime 2025-02-02 08:30:06 - End Time 2025-02-02 11:30:06 [2025-02-02 11:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385386', 'tblTempUsageDetail_20' ) start [2025-02-02 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385386', 'tblTempUsageDetail_20' ) end [2025-02-02 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385386', 'tblTempVendorCDR_20' ) start [2025-02-02 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385386', 'tblTempVendorCDR_20' ) end [2025-02-02 11:30:19] Production.INFO: ProcessCDR(1,14385386,1,1,2) [2025-02-02 11:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385386', 'tblTempUsageDetail_20' ) start [2025-02-02 11:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385386', 'tblTempUsageDetail_20' ) end [2025-02-02 11:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:30:22] Production.INFO: ==26635== Releasing lock... [2025-02-02 11:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:30:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:31:05 [end_date_ymd] => 2025-02-02 11:31:05 [RateCDR] => 1 ) [2025-02-02 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-02 08:31:05' and `end` < '2025-02-02 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-02 11:31:18] Production.INFO: count ==1080 [2025-02-02 11:31:18] Production.ERROR: pbx CDR StartTime 2025-02-02 08:31:05 - End Time 2025-02-02 11:31:05 [2025-02-02 11:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385392', 'tblTempUsageDetail_20' ) start [2025-02-02 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385392', 'tblTempUsageDetail_20' ) end [2025-02-02 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385392', 'tblTempVendorCDR_20' ) start [2025-02-02 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385392', 'tblTempVendorCDR_20' ) end [2025-02-02 11:31:18] Production.INFO: ProcessCDR(1,14385392,1,1,2) [2025-02-02 11:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385392', 'tblTempUsageDetail_20' ) start [2025-02-02 11:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385392', 'tblTempUsageDetail_20' ) end [2025-02-02 11:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:31:21] Production.INFO: ==26708== Releasing lock... [2025-02-02 11:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:31:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:32:05 [end_date_ymd] => 2025-02-02 11:32:05 [RateCDR] => 1 ) [2025-02-02 11:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 08:32:05' and `end` < '2025-02-02 11:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 11:32:18] Production.INFO: count ==1081 [2025-02-02 11:32:18] Production.ERROR: pbx CDR StartTime 2025-02-02 08:32:05 - End Time 2025-02-02 11:32:05 [2025-02-02 11:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385397', 'tblTempUsageDetail_20' ) start [2025-02-02 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385397', 'tblTempUsageDetail_20' ) end [2025-02-02 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385397', 'tblTempVendorCDR_20' ) start [2025-02-02 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385397', 'tblTempVendorCDR_20' ) end [2025-02-02 11:32:18] Production.INFO: ProcessCDR(1,14385397,1,1,2) [2025-02-02 11:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385397', 'tblTempUsageDetail_20' ) start [2025-02-02 11:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385397', 'tblTempUsageDetail_20' ) end [2025-02-02 11:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:32:21] Production.INFO: ==26779== Releasing lock... [2025-02-02 11:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:32:21] Production.INFO: 37 MB #Memory Used# [2025-02-02 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:33:05 [end_date_ymd] => 2025-02-02 11:33:05 [RateCDR] => 1 ) [2025-02-02 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-02 08:33:05' and `end` < '2025-02-02 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-02 11:33:18] Production.INFO: count ==1087 [2025-02-02 11:33:18] Production.ERROR: pbx CDR StartTime 2025-02-02 08:33:05 - End Time 2025-02-02 11:33:05 [2025-02-02 11:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385402', 'tblTempUsageDetail_20' ) start [2025-02-02 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385402', 'tblTempUsageDetail_20' ) end [2025-02-02 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385402', 'tblTempVendorCDR_20' ) start [2025-02-02 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385402', 'tblTempVendorCDR_20' ) end [2025-02-02 11:33:18] Production.INFO: ProcessCDR(1,14385402,1,1,2) [2025-02-02 11:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385402', 'tblTempUsageDetail_20' ) start [2025-02-02 11:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385402', 'tblTempUsageDetail_20' ) end [2025-02-02 11:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:33:23] Production.INFO: ==26851== Releasing lock... [2025-02-02 11:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:33:23] Production.INFO: 37 MB #Memory Used# [2025-02-02 11:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:34:04 [end_date_ymd] => 2025-02-02 11:34:04 [RateCDR] => 1 ) [2025-02-02 11: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-02 08:34:04' and `end` < '2025-02-02 11: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-02 11:34:19] Production.INFO: count ==1088 [2025-02-02 11:34:20] Production.ERROR: pbx CDR StartTime 2025-02-02 08:34:04 - End Time 2025-02-02 11:34:04 [2025-02-02 11:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385407', 'tblTempUsageDetail_20' ) start [2025-02-02 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385407', 'tblTempUsageDetail_20' ) end [2025-02-02 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385407', 'tblTempVendorCDR_20' ) start [2025-02-02 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385407', 'tblTempVendorCDR_20' ) end [2025-02-02 11:34:20] Production.INFO: ProcessCDR(1,14385407,1,1,2) [2025-02-02 11:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385407', 'tblTempUsageDetail_20' ) start [2025-02-02 11:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385407', 'tblTempUsageDetail_20' ) end [2025-02-02 11:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:34:24] Production.INFO: ==26922== Releasing lock... [2025-02-02 11:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:34:24] Production.INFO: 37 MB #Memory Used# [2025-02-02 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:35:05 [end_date_ymd] => 2025-02-02 11:35:05 [RateCDR] => 1 ) [2025-02-02 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-02 08:35:05' and `end` < '2025-02-02 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-02 11:35:18] Production.INFO: count ==1088 [2025-02-02 11:35:19] Production.ERROR: pbx CDR StartTime 2025-02-02 08:35:05 - End Time 2025-02-02 11:35:05 [2025-02-02 11:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385412', 'tblTempUsageDetail_20' ) start [2025-02-02 11:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385412', 'tblTempUsageDetail_20' ) end [2025-02-02 11:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385412', 'tblTempVendorCDR_20' ) start [2025-02-02 11:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385412', 'tblTempVendorCDR_20' ) end [2025-02-02 11:35:19] Production.INFO: ProcessCDR(1,14385412,1,1,2) [2025-02-02 11:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385412', 'tblTempUsageDetail_20' ) start [2025-02-02 11:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385412', 'tblTempUsageDetail_20' ) end [2025-02-02 11:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:35:22] Production.INFO: ==26992== Releasing lock... [2025-02-02 11:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:35:22] Production.INFO: 37 MB #Memory Used# [2025-02-02 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:36:05 [end_date_ymd] => 2025-02-02 11:36:05 [RateCDR] => 1 ) [2025-02-02 11:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 08:36:05' and `end` < '2025-02-02 11:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 11:36:19] Production.INFO: count ==1088 [2025-02-02 11:36:19] Production.ERROR: pbx CDR StartTime 2025-02-02 08:36:05 - End Time 2025-02-02 11:36:05 [2025-02-02 11:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385417', 'tblTempUsageDetail_20' ) start [2025-02-02 11:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385417', 'tblTempUsageDetail_20' ) end [2025-02-02 11:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385417', 'tblTempVendorCDR_20' ) start [2025-02-02 11:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385417', 'tblTempVendorCDR_20' ) end [2025-02-02 11:36:19] Production.INFO: ProcessCDR(1,14385417,1,1,2) [2025-02-02 11:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385417', 'tblTempUsageDetail_20' ) start [2025-02-02 11:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385417', 'tblTempUsageDetail_20' ) end [2025-02-02 11:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:36:22] Production.INFO: ==27066== Releasing lock... [2025-02-02 11:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:36:22] Production.INFO: 37 MB #Memory Used# [2025-02-02 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:37:05 [end_date_ymd] => 2025-02-02 11:37:05 [RateCDR] => 1 ) [2025-02-02 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-02 08:37:05' and `end` < '2025-02-02 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-02 11:37:19] Production.INFO: count ==1088 [2025-02-02 11:37:19] Production.ERROR: pbx CDR StartTime 2025-02-02 08:37:05 - End Time 2025-02-02 11:37:05 [2025-02-02 11:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385422', 'tblTempUsageDetail_20' ) start [2025-02-02 11:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385422', 'tblTempUsageDetail_20' ) end [2025-02-02 11:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385422', 'tblTempVendorCDR_20' ) start [2025-02-02 11:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385422', 'tblTempVendorCDR_20' ) end [2025-02-02 11:37:19] Production.INFO: ProcessCDR(1,14385422,1,1,2) [2025-02-02 11:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385422', 'tblTempUsageDetail_20' ) start [2025-02-02 11:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385422', 'tblTempUsageDetail_20' ) end [2025-02-02 11:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:37:22] Production.INFO: ==27136== Releasing lock... [2025-02-02 11:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:37:22] Production.INFO: 37 MB #Memory Used# [2025-02-02 11:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:38:06 [end_date_ymd] => 2025-02-02 11:38:06 [RateCDR] => 1 ) [2025-02-02 11:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 08:38:06' and `end` < '2025-02-02 11:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 11:38:18] Production.INFO: count ==1088 [2025-02-02 11:38:19] Production.ERROR: pbx CDR StartTime 2025-02-02 08:38:06 - End Time 2025-02-02 11:38:06 [2025-02-02 11:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385427', 'tblTempUsageDetail_20' ) start [2025-02-02 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385427', 'tblTempUsageDetail_20' ) end [2025-02-02 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385427', 'tblTempVendorCDR_20' ) start [2025-02-02 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385427', 'tblTempVendorCDR_20' ) end [2025-02-02 11:38:19] Production.INFO: ProcessCDR(1,14385427,1,1,2) [2025-02-02 11:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385427', 'tblTempUsageDetail_20' ) start [2025-02-02 11:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385427', 'tblTempUsageDetail_20' ) end [2025-02-02 11:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:38:22] Production.INFO: ==27210== Releasing lock... [2025-02-02 11:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:38:22] Production.INFO: 37 MB #Memory Used# [2025-02-02 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:39:05 [end_date_ymd] => 2025-02-02 11:39:05 [RateCDR] => 1 ) [2025-02-02 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-02 08:39:05' and `end` < '2025-02-02 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-02 11:39:19] Production.INFO: count ==1089 [2025-02-02 11:39:19] Production.ERROR: pbx CDR StartTime 2025-02-02 08:39:05 - End Time 2025-02-02 11:39:05 [2025-02-02 11:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385432', 'tblTempUsageDetail_20' ) start [2025-02-02 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385432', 'tblTempUsageDetail_20' ) end [2025-02-02 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385432', 'tblTempVendorCDR_20' ) start [2025-02-02 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385432', 'tblTempVendorCDR_20' ) end [2025-02-02 11:39:19] Production.INFO: ProcessCDR(1,14385432,1,1,2) [2025-02-02 11:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385432', 'tblTempUsageDetail_20' ) start [2025-02-02 11:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385432', 'tblTempUsageDetail_20' ) end [2025-02-02 11:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:39:23] Production.INFO: ==27282== Releasing lock... [2025-02-02 11:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:39:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 11:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:40:07 [end_date_ymd] => 2025-02-02 11:40:07 [RateCDR] => 1 ) [2025-02-02 11: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-02 08:40:07' and `end` < '2025-02-02 11: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-02 11:40:20] Production.INFO: count ==1091 [2025-02-02 11:40:20] Production.ERROR: pbx CDR StartTime 2025-02-02 08:40:07 - End Time 2025-02-02 11:40:07 [2025-02-02 11:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385438', 'tblTempUsageDetail_20' ) start [2025-02-02 11:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385438', 'tblTempUsageDetail_20' ) end [2025-02-02 11:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385438', 'tblTempVendorCDR_20' ) start [2025-02-02 11:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385438', 'tblTempVendorCDR_20' ) end [2025-02-02 11:40:20] Production.INFO: ProcessCDR(1,14385438,1,1,2) [2025-02-02 11:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385438', 'tblTempUsageDetail_20' ) start [2025-02-02 11:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385438', 'tblTempUsageDetail_20' ) end [2025-02-02 11:40:25] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:40:25] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:40:25] Production.INFO: ==27355== Releasing lock... [2025-02-02 11:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:40:25] Production.INFO: 37 MB #Memory Used# [2025-02-02 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:41:05 [end_date_ymd] => 2025-02-02 11:41:05 [RateCDR] => 1 ) [2025-02-02 11:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 08:41:05' and `end` < '2025-02-02 11:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 11:41:18] Production.INFO: count ==1102 [2025-02-02 11:41:18] Production.ERROR: pbx CDR StartTime 2025-02-02 08:41:05 - End Time 2025-02-02 11:41:05 [2025-02-02 11:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385443', 'tblTempUsageDetail_20' ) start [2025-02-02 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385443', 'tblTempUsageDetail_20' ) end [2025-02-02 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385443', 'tblTempVendorCDR_20' ) start [2025-02-02 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385443', 'tblTempVendorCDR_20' ) end [2025-02-02 11:41:18] Production.INFO: ProcessCDR(1,14385443,1,1,2) [2025-02-02 11:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385443', 'tblTempUsageDetail_20' ) start [2025-02-02 11:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385443', 'tblTempUsageDetail_20' ) end [2025-02-02 11:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:41:21] Production.INFO: ==27467== Releasing lock... [2025-02-02 11:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:41:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 11:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:42:06 [end_date_ymd] => 2025-02-02 11:42:06 [RateCDR] => 1 ) [2025-02-02 11:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 08:42:06' and `end` < '2025-02-02 11:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 11:42:23] Production.INFO: count ==1102 [2025-02-02 11:42:23] Production.ERROR: pbx CDR StartTime 2025-02-02 08:42:06 - End Time 2025-02-02 11:42:06 [2025-02-02 11:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385448', 'tblTempUsageDetail_20' ) start [2025-02-02 11:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385448', 'tblTempUsageDetail_20' ) end [2025-02-02 11:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385448', 'tblTempVendorCDR_20' ) start [2025-02-02 11:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385448', 'tblTempVendorCDR_20' ) end [2025-02-02 11:42:23] Production.INFO: ProcessCDR(1,14385448,1,1,2) [2025-02-02 11:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385448', 'tblTempUsageDetail_20' ) start [2025-02-02 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385448', 'tblTempUsageDetail_20' ) end [2025-02-02 11:42:26] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:42:26] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:42:26] Production.INFO: ==27537== Releasing lock... [2025-02-02 11:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:42:26] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:43:05 [end_date_ymd] => 2025-02-02 11:43:05 [RateCDR] => 1 ) [2025-02-02 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-02 08:43:05' and `end` < '2025-02-02 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-02 11:43:18] Production.INFO: count ==1103 [2025-02-02 11:43:19] Production.ERROR: pbx CDR StartTime 2025-02-02 08:43:05 - End Time 2025-02-02 11:43:05 [2025-02-02 11:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385453', 'tblTempUsageDetail_20' ) start [2025-02-02 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385453', 'tblTempUsageDetail_20' ) end [2025-02-02 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385453', 'tblTempVendorCDR_20' ) start [2025-02-02 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385453', 'tblTempVendorCDR_20' ) end [2025-02-02 11:43:19] Production.INFO: ProcessCDR(1,14385453,1,1,2) [2025-02-02 11:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385453', 'tblTempUsageDetail_20' ) start [2025-02-02 11:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385453', 'tblTempUsageDetail_20' ) end [2025-02-02 11:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:43:23] Production.INFO: ==27606== Releasing lock... [2025-02-02 11:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:43:23] Production.INFO: 37 MB #Memory Used# [2025-02-02 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:44:05 [end_date_ymd] => 2025-02-02 11:44:05 [RateCDR] => 1 ) [2025-02-02 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-02 08:44:05' and `end` < '2025-02-02 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-02 11:44:20] Production.INFO: count ==1104 [2025-02-02 11:44:20] Production.ERROR: pbx CDR StartTime 2025-02-02 08:44:05 - End Time 2025-02-02 11:44:05 [2025-02-02 11:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385458', 'tblTempUsageDetail_20' ) start [2025-02-02 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385458', 'tblTempUsageDetail_20' ) end [2025-02-02 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385458', 'tblTempVendorCDR_20' ) start [2025-02-02 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385458', 'tblTempVendorCDR_20' ) end [2025-02-02 11:44:20] Production.INFO: ProcessCDR(1,14385458,1,1,2) [2025-02-02 11:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385458', 'tblTempUsageDetail_20' ) start [2025-02-02 11:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385458', 'tblTempUsageDetail_20' ) end [2025-02-02 11:44:25] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:44:25] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:44:25] Production.INFO: ==27676== Releasing lock... [2025-02-02 11:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:44:25] Production.INFO: 37.5 MB #Memory Used# [2025-02-02 11:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:45:04 [end_date_ymd] => 2025-02-02 11:45:04 [RateCDR] => 1 ) [2025-02-02 11: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-02 08:45:04' and `end` < '2025-02-02 11: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-02 11:45:17] Production.INFO: count ==1106 [2025-02-02 11:45:18] Production.ERROR: pbx CDR StartTime 2025-02-02 08:45:04 - End Time 2025-02-02 11:45:04 [2025-02-02 11:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385463', 'tblTempUsageDetail_20' ) start [2025-02-02 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385463', 'tblTempUsageDetail_20' ) end [2025-02-02 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385463', 'tblTempVendorCDR_20' ) start [2025-02-02 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385463', 'tblTempVendorCDR_20' ) end [2025-02-02 11:45:18] Production.INFO: ProcessCDR(1,14385463,1,1,2) [2025-02-02 11:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385463', 'tblTempUsageDetail_20' ) start [2025-02-02 11:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385463', 'tblTempUsageDetail_20' ) end [2025-02-02 11:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:45:21] Production.INFO: ==27749== Releasing lock... [2025-02-02 11:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:45:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 11:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:46:06 [end_date_ymd] => 2025-02-02 11:46:06 [RateCDR] => 1 ) [2025-02-02 11:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 08:46:06' and `end` < '2025-02-02 11:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 11:46:20] Production.INFO: count ==1107 [2025-02-02 11:46:20] Production.ERROR: pbx CDR StartTime 2025-02-02 08:46:06 - End Time 2025-02-02 11:46:06 [2025-02-02 11:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385468', 'tblTempUsageDetail_20' ) start [2025-02-02 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385468', 'tblTempUsageDetail_20' ) end [2025-02-02 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385468', 'tblTempVendorCDR_20' ) start [2025-02-02 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385468', 'tblTempVendorCDR_20' ) end [2025-02-02 11:46:20] Production.INFO: ProcessCDR(1,14385468,1,1,2) [2025-02-02 11:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385468', 'tblTempUsageDetail_20' ) start [2025-02-02 11:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385468', 'tblTempUsageDetail_20' ) end [2025-02-02 11:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:46:24] Production.INFO: ==27820== Releasing lock... [2025-02-02 11:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:46:24] Production.INFO: 36.5 MB #Memory Used# [2025-02-02 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:47:05 [end_date_ymd] => 2025-02-02 11:47:05 [RateCDR] => 1 ) [2025-02-02 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-02 08:47:05' and `end` < '2025-02-02 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-02 11:47:17] Production.INFO: count ==1110 [2025-02-02 11:47:18] Production.ERROR: pbx CDR StartTime 2025-02-02 08:47:05 - End Time 2025-02-02 11:47:05 [2025-02-02 11:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385473', 'tblTempUsageDetail_20' ) start [2025-02-02 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385473', 'tblTempUsageDetail_20' ) end [2025-02-02 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385473', 'tblTempVendorCDR_20' ) start [2025-02-02 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385473', 'tblTempVendorCDR_20' ) end [2025-02-02 11:47:18] Production.INFO: ProcessCDR(1,14385473,1,1,2) [2025-02-02 11:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385473', 'tblTempUsageDetail_20' ) start [2025-02-02 11:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385473', 'tblTempUsageDetail_20' ) end [2025-02-02 11:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:47:23] Production.INFO: ==27894== Releasing lock... [2025-02-02 11:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:47:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:48:05 [end_date_ymd] => 2025-02-02 11:48:05 [RateCDR] => 1 ) [2025-02-02 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-02 08:48:05' and `end` < '2025-02-02 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-02 11:48:18] Production.INFO: count ==1110 [2025-02-02 11:48:19] Production.ERROR: pbx CDR StartTime 2025-02-02 08:48:05 - End Time 2025-02-02 11:48:05 [2025-02-02 11:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385478', 'tblTempUsageDetail_20' ) start [2025-02-02 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385478', 'tblTempUsageDetail_20' ) end [2025-02-02 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385478', 'tblTempVendorCDR_20' ) start [2025-02-02 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385478', 'tblTempVendorCDR_20' ) end [2025-02-02 11:48:19] Production.INFO: ProcessCDR(1,14385478,1,1,2) [2025-02-02 11:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385478', 'tblTempUsageDetail_20' ) start [2025-02-02 11:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385478', 'tblTempUsageDetail_20' ) end [2025-02-02 11:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:48:22] Production.INFO: ==27964== Releasing lock... [2025-02-02 11:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:48:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:49:05 [end_date_ymd] => 2025-02-02 11:49:05 [RateCDR] => 1 ) [2025-02-02 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-02 08:49:05' and `end` < '2025-02-02 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-02 11:49:18] Production.INFO: count ==1114 [2025-02-02 11:49:18] Production.ERROR: pbx CDR StartTime 2025-02-02 08:49:05 - End Time 2025-02-02 11:49:05 [2025-02-02 11:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385483', 'tblTempUsageDetail_20' ) start [2025-02-02 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385483', 'tblTempUsageDetail_20' ) end [2025-02-02 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385483', 'tblTempVendorCDR_20' ) start [2025-02-02 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385483', 'tblTempVendorCDR_20' ) end [2025-02-02 11:49:18] Production.INFO: ProcessCDR(1,14385483,1,1,2) [2025-02-02 11:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385483', 'tblTempUsageDetail_20' ) start [2025-02-02 11:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385483', 'tblTempUsageDetail_20' ) end [2025-02-02 11:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:49:23] Production.INFO: ==28036== Releasing lock... [2025-02-02 11:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:49:23] Production.INFO: 37 MB #Memory Used# [2025-02-02 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:50:06 [end_date_ymd] => 2025-02-02 11:50:06 [RateCDR] => 1 ) [2025-02-02 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-02 08:50:06' and `end` < '2025-02-02 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-02 11:50:19] Production.INFO: count ==1120 [2025-02-02 11:50:19] Production.ERROR: pbx CDR StartTime 2025-02-02 08:50:06 - End Time 2025-02-02 11:50:06 [2025-02-02 11:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385489', 'tblTempUsageDetail_20' ) start [2025-02-02 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385489', 'tblTempUsageDetail_20' ) end [2025-02-02 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385489', 'tblTempVendorCDR_20' ) start [2025-02-02 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385489', 'tblTempVendorCDR_20' ) end [2025-02-02 11:50:19] Production.INFO: ProcessCDR(1,14385489,1,1,2) [2025-02-02 11:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385489', 'tblTempUsageDetail_20' ) start [2025-02-02 11:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385489', 'tblTempUsageDetail_20' ) end [2025-02-02 11:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:50:24] Production.INFO: ==28109== Releasing lock... [2025-02-02 11:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:50:24] Production.INFO: 37 MB #Memory Used# [2025-02-02 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:51:05 [end_date_ymd] => 2025-02-02 11:51:05 [RateCDR] => 1 ) [2025-02-02 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-02 08:51:05' and `end` < '2025-02-02 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-02 11:51:17] Production.INFO: count ==1139 [2025-02-02 11:51:18] Production.ERROR: pbx CDR StartTime 2025-02-02 08:51:05 - End Time 2025-02-02 11:51:05 [2025-02-02 11:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385494', 'tblTempUsageDetail_20' ) start [2025-02-02 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385494', 'tblTempUsageDetail_20' ) end [2025-02-02 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385494', 'tblTempVendorCDR_20' ) start [2025-02-02 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385494', 'tblTempVendorCDR_20' ) end [2025-02-02 11:51:18] Production.INFO: ProcessCDR(1,14385494,1,1,2) [2025-02-02 11:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385494', 'tblTempUsageDetail_20' ) start [2025-02-02 11:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385494', 'tblTempUsageDetail_20' ) end [2025-02-02 11:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:51:22] Production.INFO: ==28181== Releasing lock... [2025-02-02 11:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:51:22] Production.INFO: 37 MB #Memory Used# [2025-02-02 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:52:05 [end_date_ymd] => 2025-02-02 11:52:05 [RateCDR] => 1 ) [2025-02-02 11:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 08:52:05' and `end` < '2025-02-02 11:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 11:52:18] Production.INFO: count ==1139 [2025-02-02 11:52:18] Production.ERROR: pbx CDR StartTime 2025-02-02 08:52:05 - End Time 2025-02-02 11:52:05 [2025-02-02 11:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385499', 'tblTempUsageDetail_20' ) start [2025-02-02 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385499', 'tblTempUsageDetail_20' ) end [2025-02-02 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385499', 'tblTempVendorCDR_20' ) start [2025-02-02 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385499', 'tblTempVendorCDR_20' ) end [2025-02-02 11:52:18] Production.INFO: ProcessCDR(1,14385499,1,1,2) [2025-02-02 11:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385499', 'tblTempUsageDetail_20' ) start [2025-02-02 11:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385499', 'tblTempUsageDetail_20' ) end [2025-02-02 11:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:52:22] Production.INFO: ==28252== Releasing lock... [2025-02-02 11:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:52:22] Production.INFO: 37 MB #Memory Used# [2025-02-02 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:53:05 [end_date_ymd] => 2025-02-02 11:53:05 [RateCDR] => 1 ) [2025-02-02 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-02 08:53:05' and `end` < '2025-02-02 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-02 11:53:19] Production.INFO: count ==1141 [2025-02-02 11:53:19] Production.ERROR: pbx CDR StartTime 2025-02-02 08:53:05 - End Time 2025-02-02 11:53:05 [2025-02-02 11:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385504', 'tblTempUsageDetail_20' ) start [2025-02-02 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385504', 'tblTempUsageDetail_20' ) end [2025-02-02 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385504', 'tblTempVendorCDR_20' ) start [2025-02-02 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385504', 'tblTempVendorCDR_20' ) end [2025-02-02 11:53:19] Production.INFO: ProcessCDR(1,14385504,1,1,2) [2025-02-02 11:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385504', 'tblTempUsageDetail_20' ) start [2025-02-02 11:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385504', 'tblTempUsageDetail_20' ) end [2025-02-02 11:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:53:24] Production.INFO: ==28325== Releasing lock... [2025-02-02 11:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:53:24] Production.INFO: 37 MB #Memory Used# [2025-02-02 11:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:54:06 [end_date_ymd] => 2025-02-02 11:54:06 [RateCDR] => 1 ) [2025-02-02 11:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 08:54:06' and `end` < '2025-02-02 11:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 11:54:20] Production.INFO: count ==1141 [2025-02-02 11:54:20] Production.ERROR: pbx CDR StartTime 2025-02-02 08:54:06 - End Time 2025-02-02 11:54:06 [2025-02-02 11:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385509', 'tblTempUsageDetail_20' ) start [2025-02-02 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385509', 'tblTempUsageDetail_20' ) end [2025-02-02 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385509', 'tblTempVendorCDR_20' ) start [2025-02-02 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385509', 'tblTempVendorCDR_20' ) end [2025-02-02 11:54:20] Production.INFO: ProcessCDR(1,14385509,1,1,2) [2025-02-02 11:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385509', 'tblTempUsageDetail_20' ) start [2025-02-02 11:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385509', 'tblTempUsageDetail_20' ) end [2025-02-02 11:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:54:23] Production.INFO: ==28399== Releasing lock... [2025-02-02 11:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:54:23] Production.INFO: 37 MB #Memory Used# [2025-02-02 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:55:05 [end_date_ymd] => 2025-02-02 11:55:05 [RateCDR] => 1 ) [2025-02-02 11:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 08:55:05' and `end` < '2025-02-02 11:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 11:55:18] Production.INFO: count ==1141 [2025-02-02 11:55:18] Production.ERROR: pbx CDR StartTime 2025-02-02 08:55:05 - End Time 2025-02-02 11:55:05 [2025-02-02 11:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385514', 'tblTempUsageDetail_20' ) start [2025-02-02 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385514', 'tblTempUsageDetail_20' ) end [2025-02-02 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385514', 'tblTempVendorCDR_20' ) start [2025-02-02 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385514', 'tblTempVendorCDR_20' ) end [2025-02-02 11:55:18] Production.INFO: ProcessCDR(1,14385514,1,1,2) [2025-02-02 11:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385514', 'tblTempUsageDetail_20' ) start [2025-02-02 11:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385514', 'tblTempUsageDetail_20' ) end [2025-02-02 11:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:55:21] Production.INFO: ==28474== Releasing lock... [2025-02-02 11:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:55:21] Production.INFO: 37 MB #Memory Used# [2025-02-02 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:56:05 [end_date_ymd] => 2025-02-02 11:56:05 [RateCDR] => 1 ) [2025-02-02 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-02 08:56:05' and `end` < '2025-02-02 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-02 11:56:17] Production.INFO: count ==1148 [2025-02-02 11:56:18] Production.ERROR: pbx CDR StartTime 2025-02-02 08:56:05 - End Time 2025-02-02 11:56:05 [2025-02-02 11:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385519', 'tblTempUsageDetail_20' ) start [2025-02-02 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385519', 'tblTempUsageDetail_20' ) end [2025-02-02 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385519', 'tblTempVendorCDR_20' ) start [2025-02-02 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385519', 'tblTempVendorCDR_20' ) end [2025-02-02 11:56:18] Production.INFO: ProcessCDR(1,14385519,1,1,2) [2025-02-02 11:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385519', 'tblTempUsageDetail_20' ) start [2025-02-02 11:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385519', 'tblTempUsageDetail_20' ) end [2025-02-02 11:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:56:22] Production.INFO: ==28548== Releasing lock... [2025-02-02 11:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:56:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-02 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:57:05 [end_date_ymd] => 2025-02-02 11:57:05 [RateCDR] => 1 ) [2025-02-02 11:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 08:57:05' and `end` < '2025-02-02 11:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 11:57:18] Production.INFO: count ==1149 [2025-02-02 11:57:19] Production.ERROR: pbx CDR StartTime 2025-02-02 08:57:05 - End Time 2025-02-02 11:57:05 [2025-02-02 11:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385524', 'tblTempUsageDetail_20' ) start [2025-02-02 11:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385524', 'tblTempUsageDetail_20' ) end [2025-02-02 11:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385524', 'tblTempVendorCDR_20' ) start [2025-02-02 11:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385524', 'tblTempVendorCDR_20' ) end [2025-02-02 11:57:19] Production.INFO: ProcessCDR(1,14385524,1,1,2) [2025-02-02 11:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385524', 'tblTempUsageDetail_20' ) start [2025-02-02 11:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385524', 'tblTempUsageDetail_20' ) end [2025-02-02 11:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:57:23] Production.INFO: ==28666== Releasing lock... [2025-02-02 11:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:57:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-02 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:58:05 [end_date_ymd] => 2025-02-02 11:58:05 [RateCDR] => 1 ) [2025-02-02 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-02 08:58:05' and `end` < '2025-02-02 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-02 11:58:18] Production.INFO: count ==1165 [2025-02-02 11:58:18] Production.ERROR: pbx CDR StartTime 2025-02-02 08:58:05 - End Time 2025-02-02 11:58:05 [2025-02-02 11:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385529', 'tblTempUsageDetail_20' ) start [2025-02-02 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385529', 'tblTempUsageDetail_20' ) end [2025-02-02 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385529', 'tblTempVendorCDR_20' ) start [2025-02-02 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385529', 'tblTempVendorCDR_20' ) end [2025-02-02 11:58:18] Production.INFO: ProcessCDR(1,14385529,1,1,2) [2025-02-02 11:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385529', 'tblTempUsageDetail_20' ) start [2025-02-02 11:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385529', 'tblTempUsageDetail_20' ) end [2025-02-02 11:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:58:23] Production.INFO: ==28741== Releasing lock... [2025-02-02 11:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:58:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 08:59:05 [end_date_ymd] => 2025-02-02 11:59:05 [RateCDR] => 1 ) [2025-02-02 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-02 08:59:05' and `end` < '2025-02-02 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-02 11:59:19] Production.INFO: count ==1177 [2025-02-02 11:59:20] Production.ERROR: pbx CDR StartTime 2025-02-02 08:59:05 - End Time 2025-02-02 11:59:05 [2025-02-02 11:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385534', 'tblTempUsageDetail_20' ) start [2025-02-02 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385534', 'tblTempUsageDetail_20' ) end [2025-02-02 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385534', 'tblTempVendorCDR_20' ) start [2025-02-02 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385534', 'tblTempVendorCDR_20' ) end [2025-02-02 11:59:20] Production.INFO: ProcessCDR(1,14385534,1,1,2) [2025-02-02 11:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 11:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 11:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385534', 'tblTempUsageDetail_20' ) start [2025-02-02 11:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385534', 'tblTempUsageDetail_20' ) end [2025-02-02 11:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 11:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 11:59:24] Production.INFO: ==28813== Releasing lock... [2025-02-02 11:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 11:59:24] Production.INFO: 37.5 MB #Memory Used# [2025-02-02 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:00:06 [end_date_ymd] => 2025-02-02 12:00:06 [RateCDR] => 1 ) [2025-02-02 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-02 09:00:06' and `end` < '2025-02-02 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-02 12:00:20] Production.INFO: count ==1181 [2025-02-02 12:00:20] Production.ERROR: pbx CDR StartTime 2025-02-02 09:00:06 - End Time 2025-02-02 12:00:06 [2025-02-02 12:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385540', 'tblTempUsageDetail_20' ) start [2025-02-02 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385540', 'tblTempUsageDetail_20' ) end [2025-02-02 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385540', 'tblTempVendorCDR_20' ) start [2025-02-02 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385540', 'tblTempVendorCDR_20' ) end [2025-02-02 12:00:20] Production.INFO: ProcessCDR(1,14385540,1,1,2) [2025-02-02 12:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385540', 'tblTempUsageDetail_20' ) start [2025-02-02 12:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385540', 'tblTempUsageDetail_20' ) end [2025-02-02 12:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:00:24] Production.INFO: ==28886== Releasing lock... [2025-02-02 12:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:00:24] Production.INFO: 37.75 MB #Memory Used# [2025-02-02 12:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:01:06 [end_date_ymd] => 2025-02-02 12:01:06 [RateCDR] => 1 ) [2025-02-02 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-02 09:01:06' and `end` < '2025-02-02 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-02 12:01:20] Production.INFO: count ==1181 [2025-02-02 12:01:20] Production.ERROR: pbx CDR StartTime 2025-02-02 09:01:06 - End Time 2025-02-02 12:01:06 [2025-02-02 12:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385545', 'tblTempUsageDetail_20' ) start [2025-02-02 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385545', 'tblTempUsageDetail_20' ) end [2025-02-02 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385545', 'tblTempVendorCDR_20' ) start [2025-02-02 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385545', 'tblTempVendorCDR_20' ) end [2025-02-02 12:01:20] Production.INFO: ProcessCDR(1,14385545,1,1,2) [2025-02-02 12:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385545', 'tblTempUsageDetail_20' ) start [2025-02-02 12:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385545', 'tblTempUsageDetail_20' ) end [2025-02-02 12:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:01:23] Production.INFO: ==28972== Releasing lock... [2025-02-02 12:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:01:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-02 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:02:05 [end_date_ymd] => 2025-02-02 12:02:05 [RateCDR] => 1 ) [2025-02-02 12:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 09:02:05' and `end` < '2025-02-02 12:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 12:02:19] Production.INFO: count ==1181 [2025-02-02 12:02:19] Production.ERROR: pbx CDR StartTime 2025-02-02 09:02:05 - End Time 2025-02-02 12:02:05 [2025-02-02 12:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385550', 'tblTempUsageDetail_20' ) start [2025-02-02 12:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385550', 'tblTempUsageDetail_20' ) end [2025-02-02 12:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385550', 'tblTempVendorCDR_20' ) start [2025-02-02 12:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385550', 'tblTempVendorCDR_20' ) end [2025-02-02 12:02:19] Production.INFO: ProcessCDR(1,14385550,1,1,2) [2025-02-02 12:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385550', 'tblTempUsageDetail_20' ) start [2025-02-02 12:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385550', 'tblTempUsageDetail_20' ) end [2025-02-02 12:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:02:22] Production.INFO: ==29042== Releasing lock... [2025-02-02 12:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:02:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-02 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:03:05 [end_date_ymd] => 2025-02-02 12:03:05 [RateCDR] => 1 ) [2025-02-02 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-02 09:03:05' and `end` < '2025-02-02 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-02 12:03:19] Production.INFO: count ==1182 [2025-02-02 12:03:20] Production.ERROR: pbx CDR StartTime 2025-02-02 09:03:05 - End Time 2025-02-02 12:03:05 [2025-02-02 12:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385555', 'tblTempUsageDetail_20' ) start [2025-02-02 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385555', 'tblTempUsageDetail_20' ) end [2025-02-02 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385555', 'tblTempVendorCDR_20' ) start [2025-02-02 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385555', 'tblTempVendorCDR_20' ) end [2025-02-02 12:03:20] Production.INFO: ProcessCDR(1,14385555,1,1,2) [2025-02-02 12:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385555', 'tblTempUsageDetail_20' ) start [2025-02-02 12:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385555', 'tblTempUsageDetail_20' ) end [2025-02-02 12:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:03:24] Production.INFO: ==29111== Releasing lock... [2025-02-02 12:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:03:24] Production.INFO: 38 MB #Memory Used# [2025-02-02 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:04:05 [end_date_ymd] => 2025-02-02 12:04:05 [RateCDR] => 1 ) [2025-02-02 12:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 09:04:05' and `end` < '2025-02-02 12:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 12:04:18] Production.INFO: count ==1184 [2025-02-02 12:04:18] Production.ERROR: pbx CDR StartTime 2025-02-02 09:04:05 - End Time 2025-02-02 12:04:05 [2025-02-02 12:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385560', 'tblTempUsageDetail_20' ) start [2025-02-02 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385560', 'tblTempUsageDetail_20' ) end [2025-02-02 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385560', 'tblTempVendorCDR_20' ) start [2025-02-02 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385560', 'tblTempVendorCDR_20' ) end [2025-02-02 12:04:18] Production.INFO: ProcessCDR(1,14385560,1,1,2) [2025-02-02 12:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385560', 'tblTempUsageDetail_20' ) start [2025-02-02 12:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385560', 'tblTempUsageDetail_20' ) end [2025-02-02 12:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:04:21] Production.INFO: ==29184== Releasing lock... [2025-02-02 12:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:04:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-02 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:05:05 [end_date_ymd] => 2025-02-02 12:05:05 [RateCDR] => 1 ) [2025-02-02 12:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 09:05:05' and `end` < '2025-02-02 12:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 12:05:18] Production.INFO: count ==1187 [2025-02-02 12:05:19] Production.ERROR: pbx CDR StartTime 2025-02-02 09:05:05 - End Time 2025-02-02 12:05:05 [2025-02-02 12:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385565', 'tblTempUsageDetail_20' ) start [2025-02-02 12:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385565', 'tblTempUsageDetail_20' ) end [2025-02-02 12:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385565', 'tblTempVendorCDR_20' ) start [2025-02-02 12:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385565', 'tblTempVendorCDR_20' ) end [2025-02-02 12:05:19] Production.INFO: ProcessCDR(1,14385565,1,1,2) [2025-02-02 12:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385565', 'tblTempUsageDetail_20' ) start [2025-02-02 12:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385565', 'tblTempUsageDetail_20' ) end [2025-02-02 12:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:05:22] Production.INFO: ==29256== Releasing lock... [2025-02-02 12:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:05:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-02 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:06:05 [end_date_ymd] => 2025-02-02 12:06:05 [RateCDR] => 1 ) [2025-02-02 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-02 09:06:05' and `end` < '2025-02-02 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-02 12:06:19] Production.INFO: count ==1189 [2025-02-02 12:06:19] Production.ERROR: pbx CDR StartTime 2025-02-02 09:06:05 - End Time 2025-02-02 12:06:05 [2025-02-02 12:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385570', 'tblTempUsageDetail_20' ) start [2025-02-02 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385570', 'tblTempUsageDetail_20' ) end [2025-02-02 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385570', 'tblTempVendorCDR_20' ) start [2025-02-02 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385570', 'tblTempVendorCDR_20' ) end [2025-02-02 12:06:19] Production.INFO: ProcessCDR(1,14385570,1,1,2) [2025-02-02 12:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385570', 'tblTempUsageDetail_20' ) start [2025-02-02 12:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385570', 'tblTempUsageDetail_20' ) end [2025-02-02 12:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:06:24] Production.INFO: ==29326== Releasing lock... [2025-02-02 12:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:06:24] Production.INFO: 37.5 MB #Memory Used# [2025-02-02 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:07:05 [end_date_ymd] => 2025-02-02 12:07:05 [RateCDR] => 1 ) [2025-02-02 12:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 09:07:05' and `end` < '2025-02-02 12:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 12:07:18] Production.INFO: count ==1189 [2025-02-02 12:07:18] Production.ERROR: pbx CDR StartTime 2025-02-02 09:07:05 - End Time 2025-02-02 12:07:05 [2025-02-02 12:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385575', 'tblTempUsageDetail_20' ) start [2025-02-02 12:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385575', 'tblTempUsageDetail_20' ) end [2025-02-02 12:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385575', 'tblTempVendorCDR_20' ) start [2025-02-02 12:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385575', 'tblTempVendorCDR_20' ) end [2025-02-02 12:07:19] Production.INFO: ProcessCDR(1,14385575,1,1,2) [2025-02-02 12:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385575', 'tblTempUsageDetail_20' ) start [2025-02-02 12:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385575', 'tblTempUsageDetail_20' ) end [2025-02-02 12:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:07:22] Production.INFO: ==29401== Releasing lock... [2025-02-02 12:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:07:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-02 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:08:05 [end_date_ymd] => 2025-02-02 12:08:05 [RateCDR] => 1 ) [2025-02-02 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-02 09:08:05' and `end` < '2025-02-02 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-02 12:08:18] Production.INFO: count ==1190 [2025-02-02 12:08:18] Production.ERROR: pbx CDR StartTime 2025-02-02 09:08:05 - End Time 2025-02-02 12:08:05 [2025-02-02 12:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385580', 'tblTempUsageDetail_20' ) start [2025-02-02 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385580', 'tblTempUsageDetail_20' ) end [2025-02-02 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385580', 'tblTempVendorCDR_20' ) start [2025-02-02 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385580', 'tblTempVendorCDR_20' ) end [2025-02-02 12:08:18] Production.INFO: ProcessCDR(1,14385580,1,1,2) [2025-02-02 12:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385580', 'tblTempUsageDetail_20' ) start [2025-02-02 12:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385580', 'tblTempUsageDetail_20' ) end [2025-02-02 12:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:08:22] Production.INFO: ==29475== Releasing lock... [2025-02-02 12:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:08:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:09:05 [end_date_ymd] => 2025-02-02 12:09:05 [RateCDR] => 1 ) [2025-02-02 12:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 09:09:05' and `end` < '2025-02-02 12:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 12:09:18] Production.INFO: count ==1190 [2025-02-02 12:09:19] Production.ERROR: pbx CDR StartTime 2025-02-02 09:09:05 - End Time 2025-02-02 12:09:05 [2025-02-02 12:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385585', 'tblTempUsageDetail_20' ) start [2025-02-02 12:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385585', 'tblTempUsageDetail_20' ) end [2025-02-02 12:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385585', 'tblTempVendorCDR_20' ) start [2025-02-02 12:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385585', 'tblTempVendorCDR_20' ) end [2025-02-02 12:09:19] Production.INFO: ProcessCDR(1,14385585,1,1,2) [2025-02-02 12:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385585', 'tblTempUsageDetail_20' ) start [2025-02-02 12:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385585', 'tblTempUsageDetail_20' ) end [2025-02-02 12:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:09:22] Production.INFO: ==29548== Releasing lock... [2025-02-02 12:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:09:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:10:06 [end_date_ymd] => 2025-02-02 12:10:06 [RateCDR] => 1 ) [2025-02-02 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-02 09:10:06' and `end` < '2025-02-02 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-02 12:10:19] Production.INFO: count ==1194 [2025-02-02 12:10:19] Production.ERROR: pbx CDR StartTime 2025-02-02 09:10:06 - End Time 2025-02-02 12:10:06 [2025-02-02 12:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385591', 'tblTempUsageDetail_20' ) start [2025-02-02 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385591', 'tblTempUsageDetail_20' ) end [2025-02-02 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385591', 'tblTempVendorCDR_20' ) start [2025-02-02 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385591', 'tblTempVendorCDR_20' ) end [2025-02-02 12:10:19] Production.INFO: ProcessCDR(1,14385591,1,1,2) [2025-02-02 12:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385591', 'tblTempUsageDetail_20' ) start [2025-02-02 12:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385591', 'tblTempUsageDetail_20' ) end [2025-02-02 12:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:10:23] Production.INFO: ==29622== Releasing lock... [2025-02-02 12:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:10:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-02 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:11:05 [end_date_ymd] => 2025-02-02 12:11:05 [RateCDR] => 1 ) [2025-02-02 12:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 09:11:05' and `end` < '2025-02-02 12:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 12:11:19] Production.INFO: count ==1231 [2025-02-02 12:11:20] Production.ERROR: pbx CDR StartTime 2025-02-02 09:11:05 - End Time 2025-02-02 12:11:05 [2025-02-02 12:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385596', 'tblTempUsageDetail_20' ) start [2025-02-02 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385596', 'tblTempUsageDetail_20' ) end [2025-02-02 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385596', 'tblTempVendorCDR_20' ) start [2025-02-02 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385596', 'tblTempVendorCDR_20' ) end [2025-02-02 12:11:20] Production.INFO: ProcessCDR(1,14385596,1,1,2) [2025-02-02 12:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385596', 'tblTempUsageDetail_20' ) start [2025-02-02 12:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385596', 'tblTempUsageDetail_20' ) end [2025-02-02 12:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:11:25] Production.INFO: ==29696== Releasing lock... [2025-02-02 12:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:11:25] Production.INFO: 38 MB #Memory Used# [2025-02-02 12:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:12:06 [end_date_ymd] => 2025-02-02 12:12:06 [RateCDR] => 1 ) [2025-02-02 12: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-02 09:12:06' and `end` < '2025-02-02 12: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-02 12:12:19] Production.INFO: count ==1231 [2025-02-02 12:12:19] Production.ERROR: pbx CDR StartTime 2025-02-02 09:12:06 - End Time 2025-02-02 12:12:06 [2025-02-02 12:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385601', 'tblTempUsageDetail_20' ) start [2025-02-02 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385601', 'tblTempUsageDetail_20' ) end [2025-02-02 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385601', 'tblTempVendorCDR_20' ) start [2025-02-02 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385601', 'tblTempVendorCDR_20' ) end [2025-02-02 12:12:19] Production.INFO: ProcessCDR(1,14385601,1,1,2) [2025-02-02 12:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385601', 'tblTempUsageDetail_20' ) start [2025-02-02 12:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385601', 'tblTempUsageDetail_20' ) end [2025-02-02 12:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:12:22] Production.INFO: ==29809== Releasing lock... [2025-02-02 12:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:12:22] Production.INFO: 38 MB #Memory Used# [2025-02-02 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:13:05 [end_date_ymd] => 2025-02-02 12:13:05 [RateCDR] => 1 ) [2025-02-02 12:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 09:13:05' and `end` < '2025-02-02 12:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 12:13:20] Production.INFO: count ==1238 [2025-02-02 12:13:20] Production.ERROR: pbx CDR StartTime 2025-02-02 09:13:05 - End Time 2025-02-02 12:13:05 [2025-02-02 12:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385606', 'tblTempUsageDetail_20' ) start [2025-02-02 12:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385606', 'tblTempUsageDetail_20' ) end [2025-02-02 12:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385606', 'tblTempVendorCDR_20' ) start [2025-02-02 12:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385606', 'tblTempVendorCDR_20' ) end [2025-02-02 12:13:20] Production.INFO: ProcessCDR(1,14385606,1,1,2) [2025-02-02 12:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385606', 'tblTempUsageDetail_20' ) start [2025-02-02 12:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385606', 'tblTempUsageDetail_20' ) end [2025-02-02 12:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:13:23] Production.INFO: ==29879== Releasing lock... [2025-02-02 12:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:13:23] Production.INFO: 38 MB #Memory Used# [2025-02-02 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:14:05 [end_date_ymd] => 2025-02-02 12:14:05 [RateCDR] => 1 ) [2025-02-02 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-02 09:14:05' and `end` < '2025-02-02 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-02 12:14:19] Production.INFO: count ==1245 [2025-02-02 12:14:20] Production.ERROR: pbx CDR StartTime 2025-02-02 09:14:05 - End Time 2025-02-02 12:14:05 [2025-02-02 12:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385611', 'tblTempUsageDetail_20' ) start [2025-02-02 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385611', 'tblTempUsageDetail_20' ) end [2025-02-02 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385611', 'tblTempVendorCDR_20' ) start [2025-02-02 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385611', 'tblTempVendorCDR_20' ) end [2025-02-02 12:14:20] Production.INFO: ProcessCDR(1,14385611,1,1,2) [2025-02-02 12:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385611', 'tblTempUsageDetail_20' ) start [2025-02-02 12:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385611', 'tblTempUsageDetail_20' ) end [2025-02-02 12:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:14:25] Production.INFO: ==29951== Releasing lock... [2025-02-02 12:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:14:25] Production.INFO: 38 MB #Memory Used# [2025-02-02 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:15:05 [end_date_ymd] => 2025-02-02 12:15:05 [RateCDR] => 1 ) [2025-02-02 12:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 09:15:05' and `end` < '2025-02-02 12:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 12:15:18] Production.INFO: count ==1245 [2025-02-02 12:15:19] Production.ERROR: pbx CDR StartTime 2025-02-02 09:15:05 - End Time 2025-02-02 12:15:05 [2025-02-02 12:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385616', 'tblTempUsageDetail_20' ) start [2025-02-02 12:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385616', 'tblTempUsageDetail_20' ) end [2025-02-02 12:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385616', 'tblTempVendorCDR_20' ) start [2025-02-02 12:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385616', 'tblTempVendorCDR_20' ) end [2025-02-02 12:15:19] Production.INFO: ProcessCDR(1,14385616,1,1,2) [2025-02-02 12:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385616', 'tblTempUsageDetail_20' ) start [2025-02-02 12:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385616', 'tblTempUsageDetail_20' ) end [2025-02-02 12:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:15:22] Production.INFO: ==30023== Releasing lock... [2025-02-02 12:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:15:22] Production.INFO: 38 MB #Memory Used# [2025-02-02 12:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:16:06 [end_date_ymd] => 2025-02-02 12:16:06 [RateCDR] => 1 ) [2025-02-02 12:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 09:16:06' and `end` < '2025-02-02 12:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 12:16:18] Production.INFO: count ==1246 [2025-02-02 12:16:19] Production.ERROR: pbx CDR StartTime 2025-02-02 09:16:06 - End Time 2025-02-02 12:16:06 [2025-02-02 12:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385621', 'tblTempUsageDetail_20' ) start [2025-02-02 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385621', 'tblTempUsageDetail_20' ) end [2025-02-02 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385621', 'tblTempVendorCDR_20' ) start [2025-02-02 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385621', 'tblTempVendorCDR_20' ) end [2025-02-02 12:16:19] Production.INFO: ProcessCDR(1,14385621,1,1,2) [2025-02-02 12:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385621', 'tblTempUsageDetail_20' ) start [2025-02-02 12:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385621', 'tblTempUsageDetail_20' ) end [2025-02-02 12:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:16:23] Production.INFO: ==30095== Releasing lock... [2025-02-02 12:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:16:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-02 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:17:05 [end_date_ymd] => 2025-02-02 12:17:05 [RateCDR] => 1 ) [2025-02-02 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-02 09:17:05' and `end` < '2025-02-02 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-02 12:17:19] Production.INFO: count ==1246 [2025-02-02 12:17:20] Production.ERROR: pbx CDR StartTime 2025-02-02 09:17:05 - End Time 2025-02-02 12:17:05 [2025-02-02 12:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385626', 'tblTempUsageDetail_20' ) start [2025-02-02 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385626', 'tblTempUsageDetail_20' ) end [2025-02-02 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385626', 'tblTempVendorCDR_20' ) start [2025-02-02 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385626', 'tblTempVendorCDR_20' ) end [2025-02-02 12:17:20] Production.INFO: ProcessCDR(1,14385626,1,1,2) [2025-02-02 12:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385626', 'tblTempUsageDetail_20' ) start [2025-02-02 12:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385626', 'tblTempUsageDetail_20' ) end [2025-02-02 12:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:17:23] Production.INFO: ==30165== Releasing lock... [2025-02-02 12:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:17:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-02 12:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:18:06 [end_date_ymd] => 2025-02-02 12:18:06 [RateCDR] => 1 ) [2025-02-02 12: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-02 09:18:06' and `end` < '2025-02-02 12: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-02 12:18:19] Production.INFO: count ==1248 [2025-02-02 12:18:19] Production.ERROR: pbx CDR StartTime 2025-02-02 09:18:06 - End Time 2025-02-02 12:18:06 [2025-02-02 12:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385631', 'tblTempUsageDetail_20' ) start [2025-02-02 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385631', 'tblTempUsageDetail_20' ) end [2025-02-02 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385631', 'tblTempVendorCDR_20' ) start [2025-02-02 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385631', 'tblTempVendorCDR_20' ) end [2025-02-02 12:18:19] Production.INFO: ProcessCDR(1,14385631,1,1,2) [2025-02-02 12:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385631', 'tblTempUsageDetail_20' ) start [2025-02-02 12:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385631', 'tblTempUsageDetail_20' ) end [2025-02-02 12:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:18:24] Production.INFO: ==30247== Releasing lock... [2025-02-02 12:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:18:24] Production.INFO: 37.75 MB #Memory Used# [2025-02-02 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:19:05 [end_date_ymd] => 2025-02-02 12:19:05 [RateCDR] => 1 ) [2025-02-02 12:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 09:19:05' and `end` < '2025-02-02 12:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 12:19:18] Production.INFO: count ==1249 [2025-02-02 12:19:18] Production.ERROR: pbx CDR StartTime 2025-02-02 09:19:05 - End Time 2025-02-02 12:19:05 [2025-02-02 12:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385636', 'tblTempUsageDetail_20' ) start [2025-02-02 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385636', 'tblTempUsageDetail_20' ) end [2025-02-02 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385636', 'tblTempVendorCDR_20' ) start [2025-02-02 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385636', 'tblTempVendorCDR_20' ) end [2025-02-02 12:19:18] Production.INFO: ProcessCDR(1,14385636,1,1,2) [2025-02-02 12:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385636', 'tblTempUsageDetail_20' ) start [2025-02-02 12:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385636', 'tblTempUsageDetail_20' ) end [2025-02-02 12:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:19:23] Production.INFO: ==30320== Releasing lock... [2025-02-02 12:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:19:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-02 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:20:06 [end_date_ymd] => 2025-02-02 12:20:06 [RateCDR] => 1 ) [2025-02-02 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-02 09:20:06' and `end` < '2025-02-02 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-02 12:20:19] Production.INFO: count ==1252 [2025-02-02 12:20:19] Production.ERROR: pbx CDR StartTime 2025-02-02 09:20:06 - End Time 2025-02-02 12:20:06 [2025-02-02 12:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385642', 'tblTempUsageDetail_20' ) start [2025-02-02 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385642', 'tblTempUsageDetail_20' ) end [2025-02-02 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385642', 'tblTempVendorCDR_20' ) start [2025-02-02 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385642', 'tblTempVendorCDR_20' ) end [2025-02-02 12:20:19] Production.INFO: ProcessCDR(1,14385642,1,1,2) [2025-02-02 12:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385642', 'tblTempUsageDetail_20' ) start [2025-02-02 12:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385642', 'tblTempUsageDetail_20' ) end [2025-02-02 12:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:20:24] Production.INFO: ==30393== Releasing lock... [2025-02-02 12:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:20:24] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 12:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:21:04 [end_date_ymd] => 2025-02-02 12:21:04 [RateCDR] => 1 ) [2025-02-02 12: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-02 09:21:04' and `end` < '2025-02-02 12: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-02 12:21:18] Production.INFO: count ==1282 [2025-02-02 12:21:19] Production.ERROR: pbx CDR StartTime 2025-02-02 09:21:04 - End Time 2025-02-02 12:21:04 [2025-02-02 12:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385647', 'tblTempUsageDetail_20' ) start [2025-02-02 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385647', 'tblTempUsageDetail_20' ) end [2025-02-02 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385647', 'tblTempVendorCDR_20' ) start [2025-02-02 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385647', 'tblTempVendorCDR_20' ) end [2025-02-02 12:21:19] Production.INFO: ProcessCDR(1,14385647,1,1,2) [2025-02-02 12:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385647', 'tblTempUsageDetail_20' ) start [2025-02-02 12:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385647', 'tblTempUsageDetail_20' ) end [2025-02-02 12:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:21:23] Production.INFO: ==30465== Releasing lock... [2025-02-02 12:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:21:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-02 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:22:05 [end_date_ymd] => 2025-02-02 12:22:05 [RateCDR] => 1 ) [2025-02-02 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-02 09:22:05' and `end` < '2025-02-02 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-02 12:22:19] Production.INFO: count ==1282 [2025-02-02 12:22:19] Production.ERROR: pbx CDR StartTime 2025-02-02 09:22:05 - End Time 2025-02-02 12:22:05 [2025-02-02 12:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385652', 'tblTempUsageDetail_20' ) start [2025-02-02 12:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385652', 'tblTempUsageDetail_20' ) end [2025-02-02 12:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385652', 'tblTempVendorCDR_20' ) start [2025-02-02 12:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385652', 'tblTempVendorCDR_20' ) end [2025-02-02 12:22:19] Production.INFO: ProcessCDR(1,14385652,1,1,2) [2025-02-02 12:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385652', 'tblTempUsageDetail_20' ) start [2025-02-02 12:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385652', 'tblTempUsageDetail_20' ) end [2025-02-02 12:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:22:22] Production.INFO: ==30535== Releasing lock... [2025-02-02 12:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:22:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-02 12:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:23:06 [end_date_ymd] => 2025-02-02 12:23:06 [RateCDR] => 1 ) [2025-02-02 12:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 09:23:06' and `end` < '2025-02-02 12:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 12:23:19] Production.INFO: count ==1282 [2025-02-02 12:23:20] Production.ERROR: pbx CDR StartTime 2025-02-02 09:23:06 - End Time 2025-02-02 12:23:06 [2025-02-02 12:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385657', 'tblTempUsageDetail_20' ) start [2025-02-02 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385657', 'tblTempUsageDetail_20' ) end [2025-02-02 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385657', 'tblTempVendorCDR_20' ) start [2025-02-02 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385657', 'tblTempVendorCDR_20' ) end [2025-02-02 12:23:20] Production.INFO: ProcessCDR(1,14385657,1,1,2) [2025-02-02 12:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385657', 'tblTempUsageDetail_20' ) start [2025-02-02 12:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385657', 'tblTempUsageDetail_20' ) end [2025-02-02 12:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:23:23] Production.INFO: ==30612== Releasing lock... [2025-02-02 12:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:23:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-02 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:24:05 [end_date_ymd] => 2025-02-02 12:24:05 [RateCDR] => 1 ) [2025-02-02 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-02 09:24:05' and `end` < '2025-02-02 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-02 12:24:20] Production.INFO: count ==1282 [2025-02-02 12:24:21] Production.ERROR: pbx CDR StartTime 2025-02-02 09:24:05 - End Time 2025-02-02 12:24:05 [2025-02-02 12:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385662', 'tblTempUsageDetail_20' ) start [2025-02-02 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385662', 'tblTempUsageDetail_20' ) end [2025-02-02 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385662', 'tblTempVendorCDR_20' ) start [2025-02-02 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385662', 'tblTempVendorCDR_20' ) end [2025-02-02 12:24:21] Production.INFO: ProcessCDR(1,14385662,1,1,2) [2025-02-02 12:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385662', 'tblTempUsageDetail_20' ) start [2025-02-02 12:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385662', 'tblTempUsageDetail_20' ) end [2025-02-02 12:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:24:24] Production.INFO: ==30684== Releasing lock... [2025-02-02 12:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:24:24] Production.INFO: 37.75 MB #Memory Used# [2025-02-02 12:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:25:04 [end_date_ymd] => 2025-02-02 12:25:04 [RateCDR] => 1 ) [2025-02-02 12:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 09:25:04' and `end` < '2025-02-02 12:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 12:25:17] Production.INFO: count ==1282 [2025-02-02 12:25:18] Production.ERROR: pbx CDR StartTime 2025-02-02 09:25:04 - End Time 2025-02-02 12:25:04 [2025-02-02 12:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385667', 'tblTempUsageDetail_20' ) start [2025-02-02 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385667', 'tblTempUsageDetail_20' ) end [2025-02-02 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385667', 'tblTempVendorCDR_20' ) start [2025-02-02 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385667', 'tblTempVendorCDR_20' ) end [2025-02-02 12:25:18] Production.INFO: ProcessCDR(1,14385667,1,1,2) [2025-02-02 12:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385667', 'tblTempUsageDetail_20' ) start [2025-02-02 12:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385667', 'tblTempUsageDetail_20' ) end [2025-02-02 12:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:25:21] Production.INFO: ==30753== Releasing lock... [2025-02-02 12:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:25:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-02 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:26:05 [end_date_ymd] => 2025-02-02 12:26:05 [RateCDR] => 1 ) [2025-02-02 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-02 09:26:05' and `end` < '2025-02-02 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-02 12:26:18] Production.INFO: count ==1282 [2025-02-02 12:26:18] Production.ERROR: pbx CDR StartTime 2025-02-02 09:26:05 - End Time 2025-02-02 12:26:05 [2025-02-02 12:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385672', 'tblTempUsageDetail_20' ) start [2025-02-02 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385672', 'tblTempUsageDetail_20' ) end [2025-02-02 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385672', 'tblTempVendorCDR_20' ) start [2025-02-02 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385672', 'tblTempVendorCDR_20' ) end [2025-02-02 12:26:18] Production.INFO: ProcessCDR(1,14385672,1,1,2) [2025-02-02 12:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385672', 'tblTempUsageDetail_20' ) start [2025-02-02 12:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385672', 'tblTempUsageDetail_20' ) end [2025-02-02 12:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:26:21] Production.INFO: ==30830== Releasing lock... [2025-02-02 12:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:26:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-02 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:27:05 [end_date_ymd] => 2025-02-02 12:27:05 [RateCDR] => 1 ) [2025-02-02 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-02 09:27:05' and `end` < '2025-02-02 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-02 12:27:19] Production.INFO: count ==1277 [2025-02-02 12:27:19] Production.ERROR: pbx CDR StartTime 2025-02-02 09:27:05 - End Time 2025-02-02 12:27:05 [2025-02-02 12:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385677', 'tblTempUsageDetail_20' ) start [2025-02-02 12:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385677', 'tblTempUsageDetail_20' ) end [2025-02-02 12:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385677', 'tblTempVendorCDR_20' ) start [2025-02-02 12:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385677', 'tblTempVendorCDR_20' ) end [2025-02-02 12:27:19] Production.INFO: ProcessCDR(1,14385677,1,1,2) [2025-02-02 12:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385677', 'tblTempUsageDetail_20' ) start [2025-02-02 12:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385677', 'tblTempUsageDetail_20' ) end [2025-02-02 12:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:27:23] Production.INFO: ==30901== Releasing lock... [2025-02-02 12:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:27:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-02 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:28:05 [end_date_ymd] => 2025-02-02 12:28:05 [RateCDR] => 1 ) [2025-02-02 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-02 09:28:05' and `end` < '2025-02-02 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-02 12:28:19] Production.INFO: count ==1279 [2025-02-02 12:28:19] Production.ERROR: pbx CDR StartTime 2025-02-02 09:28:05 - End Time 2025-02-02 12:28:05 [2025-02-02 12:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385682', 'tblTempUsageDetail_20' ) start [2025-02-02 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385682', 'tblTempUsageDetail_20' ) end [2025-02-02 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385682', 'tblTempVendorCDR_20' ) start [2025-02-02 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385682', 'tblTempVendorCDR_20' ) end [2025-02-02 12:28:19] Production.INFO: ProcessCDR(1,14385682,1,1,2) [2025-02-02 12:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385682', 'tblTempUsageDetail_20' ) start [2025-02-02 12:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385682', 'tblTempUsageDetail_20' ) end [2025-02-02 12:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:28:24] Production.INFO: ==31011== Releasing lock... [2025-02-02 12:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:28:24] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:29:05 [end_date_ymd] => 2025-02-02 12:29:05 [RateCDR] => 1 ) [2025-02-02 12:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 09:29:05' and `end` < '2025-02-02 12:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 12:29:18] Production.INFO: count ==1279 [2025-02-02 12:29:18] Production.ERROR: pbx CDR StartTime 2025-02-02 09:29:05 - End Time 2025-02-02 12:29:05 [2025-02-02 12:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385687', 'tblTempUsageDetail_20' ) start [2025-02-02 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385687', 'tblTempUsageDetail_20' ) end [2025-02-02 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385687', 'tblTempVendorCDR_20' ) start [2025-02-02 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385687', 'tblTempVendorCDR_20' ) end [2025-02-02 12:29:18] Production.INFO: ProcessCDR(1,14385687,1,1,2) [2025-02-02 12:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385687', 'tblTempUsageDetail_20' ) start [2025-02-02 12:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385687', 'tblTempUsageDetail_20' ) end [2025-02-02 12:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:29:21] Production.INFO: ==31083== Releasing lock... [2025-02-02 12:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:29:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:30:05 [end_date_ymd] => 2025-02-02 12:30:05 [RateCDR] => 1 ) [2025-02-02 12:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 09:30:05' and `end` < '2025-02-02 12:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 12:30:18] Production.INFO: count ==1287 [2025-02-02 12:30:19] Production.ERROR: pbx CDR StartTime 2025-02-02 09:30:05 - End Time 2025-02-02 12:30:05 [2025-02-02 12:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385693', 'tblTempUsageDetail_20' ) start [2025-02-02 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385693', 'tblTempUsageDetail_20' ) end [2025-02-02 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385693', 'tblTempVendorCDR_20' ) start [2025-02-02 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385693', 'tblTempVendorCDR_20' ) end [2025-02-02 12:30:19] Production.INFO: ProcessCDR(1,14385693,1,1,2) [2025-02-02 12:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385693', 'tblTempUsageDetail_20' ) start [2025-02-02 12:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385693', 'tblTempUsageDetail_20' ) end [2025-02-02 12:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:30:22] Production.INFO: ==31156== Releasing lock... [2025-02-02 12:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:30:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:31:05 [end_date_ymd] => 2025-02-02 12:31:05 [RateCDR] => 1 ) [2025-02-02 12:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 09:31:05' and `end` < '2025-02-02 12:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 12:31:19] Production.INFO: count ==1301 [2025-02-02 12:31:20] Production.ERROR: pbx CDR StartTime 2025-02-02 09:31:05 - End Time 2025-02-02 12:31:05 [2025-02-02 12:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385698', 'tblTempUsageDetail_20' ) start [2025-02-02 12:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385698', 'tblTempUsageDetail_20' ) end [2025-02-02 12:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385698', 'tblTempVendorCDR_20' ) start [2025-02-02 12:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385698', 'tblTempVendorCDR_20' ) end [2025-02-02 12:31:20] Production.INFO: ProcessCDR(1,14385698,1,1,2) [2025-02-02 12:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385698', 'tblTempUsageDetail_20' ) start [2025-02-02 12:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385698', 'tblTempUsageDetail_20' ) end [2025-02-02 12:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:31:23] Production.INFO: ==31228== Releasing lock... [2025-02-02 12:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:31:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:32:05 [end_date_ymd] => 2025-02-02 12:32:05 [RateCDR] => 1 ) [2025-02-02 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-02 09:32:05' and `end` < '2025-02-02 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-02 12:32:19] Production.INFO: count ==1302 [2025-02-02 12:32:20] Production.ERROR: pbx CDR StartTime 2025-02-02 09:32:05 - End Time 2025-02-02 12:32:05 [2025-02-02 12:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385703', 'tblTempUsageDetail_20' ) start [2025-02-02 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385703', 'tblTempUsageDetail_20' ) end [2025-02-02 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385703', 'tblTempVendorCDR_20' ) start [2025-02-02 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385703', 'tblTempVendorCDR_20' ) end [2025-02-02 12:32:20] Production.INFO: ProcessCDR(1,14385703,1,1,2) [2025-02-02 12:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385703', 'tblTempUsageDetail_20' ) start [2025-02-02 12:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385703', 'tblTempUsageDetail_20' ) end [2025-02-02 12:32:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:32:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:32:24] Production.INFO: ==31297== Releasing lock... [2025-02-02 12:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:32:24] Production.INFO: 38 MB #Memory Used# [2025-02-02 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:33:05 [end_date_ymd] => 2025-02-02 12:33:05 [RateCDR] => 1 ) [2025-02-02 12:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 09:33:05' and `end` < '2025-02-02 12:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 12:33:18] Production.INFO: count ==1303 [2025-02-02 12:33:19] Production.ERROR: pbx CDR StartTime 2025-02-02 09:33:05 - End Time 2025-02-02 12:33:05 [2025-02-02 12:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385708', 'tblTempUsageDetail_20' ) start [2025-02-02 12:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385708', 'tblTempUsageDetail_20' ) end [2025-02-02 12:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385708', 'tblTempVendorCDR_20' ) start [2025-02-02 12:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385708', 'tblTempVendorCDR_20' ) end [2025-02-02 12:33:19] Production.INFO: ProcessCDR(1,14385708,1,1,2) [2025-02-02 12:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385708', 'tblTempUsageDetail_20' ) start [2025-02-02 12:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385708', 'tblTempUsageDetail_20' ) end [2025-02-02 12:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:33:23] Production.INFO: ==31368== Releasing lock... [2025-02-02 12:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:33:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-02 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:34:05 [end_date_ymd] => 2025-02-02 12:34:05 [RateCDR] => 1 ) [2025-02-02 12:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 09:34:05' and `end` < '2025-02-02 12:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 12:34:17] Production.INFO: count ==1311 [2025-02-02 12:34:18] Production.ERROR: pbx CDR StartTime 2025-02-02 09:34:05 - End Time 2025-02-02 12:34:05 [2025-02-02 12:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385713', 'tblTempUsageDetail_20' ) start [2025-02-02 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385713', 'tblTempUsageDetail_20' ) end [2025-02-02 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385713', 'tblTempVendorCDR_20' ) start [2025-02-02 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385713', 'tblTempVendorCDR_20' ) end [2025-02-02 12:34:18] Production.INFO: ProcessCDR(1,14385713,1,1,2) [2025-02-02 12:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385713', 'tblTempUsageDetail_20' ) start [2025-02-02 12:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385713', 'tblTempUsageDetail_20' ) end [2025-02-02 12:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:34:23] Production.INFO: ==31440== Releasing lock... [2025-02-02 12:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:34:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:35:05 [end_date_ymd] => 2025-02-02 12:35:05 [RateCDR] => 1 ) [2025-02-02 12:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 09:35:05' and `end` < '2025-02-02 12:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 12:35:19] Production.INFO: count ==1314 [2025-02-02 12:35:19] Production.ERROR: pbx CDR StartTime 2025-02-02 09:35:05 - End Time 2025-02-02 12:35:05 [2025-02-02 12:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385718', 'tblTempUsageDetail_20' ) start [2025-02-02 12:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385718', 'tblTempUsageDetail_20' ) end [2025-02-02 12:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385718', 'tblTempVendorCDR_20' ) start [2025-02-02 12:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385718', 'tblTempVendorCDR_20' ) end [2025-02-02 12:35:19] Production.INFO: ProcessCDR(1,14385718,1,1,2) [2025-02-02 12:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385718', 'tblTempUsageDetail_20' ) start [2025-02-02 12:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385718', 'tblTempUsageDetail_20' ) end [2025-02-02 12:35:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:35:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:35:24] Production.INFO: ==31510== Releasing lock... [2025-02-02 12:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:35:24] Production.INFO: 38 MB #Memory Used# [2025-02-02 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:36:05 [end_date_ymd] => 2025-02-02 12:36:05 [RateCDR] => 1 ) [2025-02-02 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-02 09:36:05' and `end` < '2025-02-02 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-02 12:36:18] Production.INFO: count ==1315 [2025-02-02 12:36:19] Production.ERROR: pbx CDR StartTime 2025-02-02 09:36:05 - End Time 2025-02-02 12:36:05 [2025-02-02 12:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385723', 'tblTempUsageDetail_20' ) start [2025-02-02 12:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385723', 'tblTempUsageDetail_20' ) end [2025-02-02 12:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385723', 'tblTempVendorCDR_20' ) start [2025-02-02 12:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385723', 'tblTempVendorCDR_20' ) end [2025-02-02 12:36:19] Production.INFO: ProcessCDR(1,14385723,1,1,2) [2025-02-02 12:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385723', 'tblTempUsageDetail_20' ) start [2025-02-02 12:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385723', 'tblTempUsageDetail_20' ) end [2025-02-02 12:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:36:23] Production.INFO: ==31580== Releasing lock... [2025-02-02 12:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:36:23] Production.INFO: 38 MB #Memory Used# [2025-02-02 12:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:37:06 [end_date_ymd] => 2025-02-02 12:37:06 [RateCDR] => 1 ) [2025-02-02 12: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-02 09:37:06' and `end` < '2025-02-02 12: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-02 12:37:19] Production.INFO: count ==1317 [2025-02-02 12:37:19] Production.ERROR: pbx CDR StartTime 2025-02-02 09:37:06 - End Time 2025-02-02 12:37:06 [2025-02-02 12:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385728', 'tblTempUsageDetail_20' ) start [2025-02-02 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385728', 'tblTempUsageDetail_20' ) end [2025-02-02 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385728', 'tblTempVendorCDR_20' ) start [2025-02-02 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385728', 'tblTempVendorCDR_20' ) end [2025-02-02 12:37:19] Production.INFO: ProcessCDR(1,14385728,1,1,2) [2025-02-02 12:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385728', 'tblTempUsageDetail_20' ) start [2025-02-02 12:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385728', 'tblTempUsageDetail_20' ) end [2025-02-02 12:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:37:24] Production.INFO: ==31651== Releasing lock... [2025-02-02 12:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:37:24] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 12:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:38:04 [end_date_ymd] => 2025-02-02 12:38:04 [RateCDR] => 1 ) [2025-02-02 12:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 09:38:04' and `end` < '2025-02-02 12:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 12:38:21] Production.INFO: count ==1321 [2025-02-02 12:38:21] Production.ERROR: pbx CDR StartTime 2025-02-02 09:38:04 - End Time 2025-02-02 12:38:04 [2025-02-02 12:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385733', 'tblTempUsageDetail_20' ) start [2025-02-02 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385733', 'tblTempUsageDetail_20' ) end [2025-02-02 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385733', 'tblTempVendorCDR_20' ) start [2025-02-02 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385733', 'tblTempVendorCDR_20' ) end [2025-02-02 12:38:21] Production.INFO: ProcessCDR(1,14385733,1,1,2) [2025-02-02 12:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385733', 'tblTempUsageDetail_20' ) start [2025-02-02 12:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385733', 'tblTempUsageDetail_20' ) end [2025-02-02 12:38:26] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:38:26] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:38:26] Production.INFO: ==31720== Releasing lock... [2025-02-02 12:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:38:26] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:39:05 [end_date_ymd] => 2025-02-02 12:39:05 [RateCDR] => 1 ) [2025-02-02 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-02 09:39:05' and `end` < '2025-02-02 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-02 12:39:19] Production.INFO: count ==1322 [2025-02-02 12:39:20] Production.ERROR: pbx CDR StartTime 2025-02-02 09:39:05 - End Time 2025-02-02 12:39:05 [2025-02-02 12:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385738', 'tblTempUsageDetail_20' ) start [2025-02-02 12:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385738', 'tblTempUsageDetail_20' ) end [2025-02-02 12:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385738', 'tblTempVendorCDR_20' ) start [2025-02-02 12:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385738', 'tblTempVendorCDR_20' ) end [2025-02-02 12:39:20] Production.INFO: ProcessCDR(1,14385738,1,1,2) [2025-02-02 12:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385738', 'tblTempUsageDetail_20' ) start [2025-02-02 12:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385738', 'tblTempUsageDetail_20' ) end [2025-02-02 12:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:39:24] Production.INFO: ==31791== Releasing lock... [2025-02-02 12:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:39:24] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:40:06 [end_date_ymd] => 2025-02-02 12:40:06 [RateCDR] => 1 ) [2025-02-02 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-02 09:40:06' and `end` < '2025-02-02 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-02 12:40:18] Production.INFO: count ==1329 [2025-02-02 12:40:19] Production.ERROR: pbx CDR StartTime 2025-02-02 09:40:06 - End Time 2025-02-02 12:40:06 [2025-02-02 12:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385744', 'tblTempUsageDetail_20' ) start [2025-02-02 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385744', 'tblTempUsageDetail_20' ) end [2025-02-02 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385744', 'tblTempVendorCDR_20' ) start [2025-02-02 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385744', 'tblTempVendorCDR_20' ) end [2025-02-02 12:40:19] Production.INFO: ProcessCDR(1,14385744,1,1,2) [2025-02-02 12:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385744', 'tblTempUsageDetail_20' ) start [2025-02-02 12:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385744', 'tblTempUsageDetail_20' ) end [2025-02-02 12:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:40:24] Production.INFO: ==31863== Releasing lock... [2025-02-02 12:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:40:24] Production.INFO: 37.75 MB #Memory Used# [2025-02-02 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:41:05 [end_date_ymd] => 2025-02-02 12:41:05 [RateCDR] => 1 ) [2025-02-02 12:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 09:41:05' and `end` < '2025-02-02 12:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 12:41:18] Production.INFO: count ==1386 [2025-02-02 12:41:19] Production.ERROR: pbx CDR StartTime 2025-02-02 09:41:05 - End Time 2025-02-02 12:41:05 [2025-02-02 12:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385749', 'tblTempUsageDetail_20' ) start [2025-02-02 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385749', 'tblTempUsageDetail_20' ) end [2025-02-02 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385749', 'tblTempVendorCDR_20' ) start [2025-02-02 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385749', 'tblTempVendorCDR_20' ) end [2025-02-02 12:41:19] Production.INFO: ProcessCDR(1,14385749,1,1,2) [2025-02-02 12:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385749', 'tblTempUsageDetail_20' ) start [2025-02-02 12:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385749', 'tblTempUsageDetail_20' ) end [2025-02-02 12:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:41:23] Production.INFO: ==31937== Releasing lock... [2025-02-02 12:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:41:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 12:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:42:04 [end_date_ymd] => 2025-02-02 12:42:04 [RateCDR] => 1 ) [2025-02-02 12:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 09:42:04' and `end` < '2025-02-02 12:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 12:42:17] Production.INFO: count ==1386 [2025-02-02 12:42:17] Production.ERROR: pbx CDR StartTime 2025-02-02 09:42:04 - End Time 2025-02-02 12:42:04 [2025-02-02 12:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385754', 'tblTempUsageDetail_20' ) start [2025-02-02 12:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385754', 'tblTempUsageDetail_20' ) end [2025-02-02 12:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385754', 'tblTempVendorCDR_20' ) start [2025-02-02 12:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385754', 'tblTempVendorCDR_20' ) end [2025-02-02 12:42:17] Production.INFO: ProcessCDR(1,14385754,1,1,2) [2025-02-02 12:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385754', 'tblTempUsageDetail_20' ) start [2025-02-02 12:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385754', 'tblTempUsageDetail_20' ) end [2025-02-02 12:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:42:21] Production.INFO: ==32007== Releasing lock... [2025-02-02 12:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:42:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:43:05 [end_date_ymd] => 2025-02-02 12:43:05 [RateCDR] => 1 ) [2025-02-02 12:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 09:43:05' and `end` < '2025-02-02 12:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 12:43:20] Production.INFO: count ==1395 [2025-02-02 12:43:20] Production.ERROR: pbx CDR StartTime 2025-02-02 09:43:05 - End Time 2025-02-02 12:43:05 [2025-02-02 12:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385759', 'tblTempUsageDetail_20' ) start [2025-02-02 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385759', 'tblTempUsageDetail_20' ) end [2025-02-02 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385759', 'tblTempVendorCDR_20' ) start [2025-02-02 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385759', 'tblTempVendorCDR_20' ) end [2025-02-02 12:43:20] Production.INFO: ProcessCDR(1,14385759,1,1,2) [2025-02-02 12:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385759', 'tblTempUsageDetail_20' ) start [2025-02-02 12:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385759', 'tblTempUsageDetail_20' ) end [2025-02-02 12:43:25] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:43:25] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:43:25] Production.INFO: ==32119== Releasing lock... [2025-02-02 12:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:43:25] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 12:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:44:06 [end_date_ymd] => 2025-02-02 12:44:06 [RateCDR] => 1 ) [2025-02-02 12:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 09:44:06' and `end` < '2025-02-02 12:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 12:44:21] Production.INFO: count ==1402 [2025-02-02 12:44:22] Production.ERROR: pbx CDR StartTime 2025-02-02 09:44:06 - End Time 2025-02-02 12:44:06 [2025-02-02 12:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385764', 'tblTempUsageDetail_20' ) start [2025-02-02 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385764', 'tblTempUsageDetail_20' ) end [2025-02-02 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385764', 'tblTempVendorCDR_20' ) start [2025-02-02 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385764', 'tblTempVendorCDR_20' ) end [2025-02-02 12:44:22] Production.INFO: ProcessCDR(1,14385764,1,1,2) [2025-02-02 12:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385764', 'tblTempUsageDetail_20' ) start [2025-02-02 12:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385764', 'tblTempUsageDetail_20' ) end [2025-02-02 12:44:26] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:44:26] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:44:26] Production.INFO: ==32190== Releasing lock... [2025-02-02 12:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:44:26] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:45:05 [end_date_ymd] => 2025-02-02 12:45:05 [RateCDR] => 1 ) [2025-02-02 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-02 09:45:05' and `end` < '2025-02-02 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-02 12:45:19] Production.INFO: count ==1410 [2025-02-02 12:45:19] Production.ERROR: pbx CDR StartTime 2025-02-02 09:45:05 - End Time 2025-02-02 12:45:05 [2025-02-02 12:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385769', 'tblTempUsageDetail_20' ) start [2025-02-02 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385769', 'tblTempUsageDetail_20' ) end [2025-02-02 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385769', 'tblTempVendorCDR_20' ) start [2025-02-02 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385769', 'tblTempVendorCDR_20' ) end [2025-02-02 12:45:19] Production.INFO: ProcessCDR(1,14385769,1,1,2) [2025-02-02 12:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385769', 'tblTempUsageDetail_20' ) start [2025-02-02 12:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385769', 'tblTempUsageDetail_20' ) end [2025-02-02 12:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:45:23] Production.INFO: ==32268== Releasing lock... [2025-02-02 12:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:45:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:46:05 [end_date_ymd] => 2025-02-02 12:46:05 [RateCDR] => 1 ) [2025-02-02 12:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 09:46:05' and `end` < '2025-02-02 12:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 12:46:20] Production.INFO: count ==1415 [2025-02-02 12:46:21] Production.ERROR: pbx CDR StartTime 2025-02-02 09:46:05 - End Time 2025-02-02 12:46:05 [2025-02-02 12:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385774', 'tblTempUsageDetail_20' ) start [2025-02-02 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385774', 'tblTempUsageDetail_20' ) end [2025-02-02 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385774', 'tblTempVendorCDR_20' ) start [2025-02-02 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385774', 'tblTempVendorCDR_20' ) end [2025-02-02 12:46:21] Production.INFO: ProcessCDR(1,14385774,1,1,2) [2025-02-02 12:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385774', 'tblTempUsageDetail_20' ) start [2025-02-02 12:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385774', 'tblTempUsageDetail_20' ) end [2025-02-02 12:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:46:24] Production.INFO: ==32337== Releasing lock... [2025-02-02 12:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:46:24] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:47:05 [end_date_ymd] => 2025-02-02 12:47:05 [RateCDR] => 1 ) [2025-02-02 12:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 09:47:05' and `end` < '2025-02-02 12:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 12:47:19] Production.INFO: count ==1415 [2025-02-02 12:47:19] Production.ERROR: pbx CDR StartTime 2025-02-02 09:47:05 - End Time 2025-02-02 12:47:05 [2025-02-02 12:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385779', 'tblTempUsageDetail_20' ) start [2025-02-02 12:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385779', 'tblTempUsageDetail_20' ) end [2025-02-02 12:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385779', 'tblTempVendorCDR_20' ) start [2025-02-02 12:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385779', 'tblTempVendorCDR_20' ) end [2025-02-02 12:47:19] Production.INFO: ProcessCDR(1,14385779,1,1,2) [2025-02-02 12:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385779', 'tblTempUsageDetail_20' ) start [2025-02-02 12:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385779', 'tblTempUsageDetail_20' ) end [2025-02-02 12:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:47:23] Production.INFO: ==32407== Releasing lock... [2025-02-02 12:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:47:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:48:05 [end_date_ymd] => 2025-02-02 12:48:05 [RateCDR] => 1 ) [2025-02-02 12:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 09:48:05' and `end` < '2025-02-02 12:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 12:48:18] Production.INFO: count ==1417 [2025-02-02 12:48:19] Production.ERROR: pbx CDR StartTime 2025-02-02 09:48:05 - End Time 2025-02-02 12:48:05 [2025-02-02 12:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385784', 'tblTempUsageDetail_20' ) start [2025-02-02 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385784', 'tblTempUsageDetail_20' ) end [2025-02-02 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385784', 'tblTempVendorCDR_20' ) start [2025-02-02 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385784', 'tblTempVendorCDR_20' ) end [2025-02-02 12:48:19] Production.INFO: ProcessCDR(1,14385784,1,1,2) [2025-02-02 12:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385784', 'tblTempUsageDetail_20' ) start [2025-02-02 12:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385784', 'tblTempUsageDetail_20' ) end [2025-02-02 12:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:48:22] Production.INFO: ==32479== Releasing lock... [2025-02-02 12:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:48:22] Production.INFO: 39 MB #Memory Used# [2025-02-02 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:49:05 [end_date_ymd] => 2025-02-02 12:49:05 [RateCDR] => 1 ) [2025-02-02 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-02 09:49:05' and `end` < '2025-02-02 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-02 12:49:20] Production.INFO: count ==1389 [2025-02-02 12:49:20] Production.ERROR: pbx CDR StartTime 2025-02-02 09:49:05 - End Time 2025-02-02 12:49:05 [2025-02-02 12:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385789', 'tblTempUsageDetail_20' ) start [2025-02-02 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385789', 'tblTempUsageDetail_20' ) end [2025-02-02 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385789', 'tblTempVendorCDR_20' ) start [2025-02-02 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385789', 'tblTempVendorCDR_20' ) end [2025-02-02 12:49:20] Production.INFO: ProcessCDR(1,14385789,1,1,2) [2025-02-02 12:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385789', 'tblTempUsageDetail_20' ) start [2025-02-02 12:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385789', 'tblTempUsageDetail_20' ) end [2025-02-02 12:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:49:24] Production.INFO: ==32550== Releasing lock... [2025-02-02 12:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:49:24] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:50:06 [end_date_ymd] => 2025-02-02 12:50:06 [RateCDR] => 1 ) [2025-02-02 12:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 09:50:06' and `end` < '2025-02-02 12:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 12:50:19] Production.INFO: count ==1324 [2025-02-02 12:50:20] Production.ERROR: pbx CDR StartTime 2025-02-02 09:50:06 - End Time 2025-02-02 12:50:06 [2025-02-02 12:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385794', 'tblTempUsageDetail_20' ) start [2025-02-02 12:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385794', 'tblTempUsageDetail_20' ) end [2025-02-02 12:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385794', 'tblTempVendorCDR_20' ) start [2025-02-02 12:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385794', 'tblTempVendorCDR_20' ) end [2025-02-02 12:50:20] Production.INFO: ProcessCDR(1,14385794,1,1,2) [2025-02-02 12:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385794', 'tblTempUsageDetail_20' ) start [2025-02-02 12:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385794', 'tblTempUsageDetail_20' ) end [2025-02-02 12:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:50:24] Production.INFO: ==32623== Releasing lock... [2025-02-02 12:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:50:24] Production.INFO: 38 MB #Memory Used# [2025-02-02 12:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:51:04 [end_date_ymd] => 2025-02-02 12:51:04 [RateCDR] => 1 ) [2025-02-02 12:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 09:51:04' and `end` < '2025-02-02 12:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 12:51:17] Production.INFO: count ==1363 [2025-02-02 12:51:18] Production.ERROR: pbx CDR StartTime 2025-02-02 09:51:04 - End Time 2025-02-02 12:51:04 [2025-02-02 12:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385800', 'tblTempUsageDetail_20' ) start [2025-02-02 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385800', 'tblTempUsageDetail_20' ) end [2025-02-02 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385800', 'tblTempVendorCDR_20' ) start [2025-02-02 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385800', 'tblTempVendorCDR_20' ) end [2025-02-02 12:51:18] Production.INFO: ProcessCDR(1,14385800,1,1,2) [2025-02-02 12:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385800', 'tblTempUsageDetail_20' ) start [2025-02-02 12:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385800', 'tblTempUsageDetail_20' ) end [2025-02-02 12:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:51:22] Production.INFO: ==32695== Releasing lock... [2025-02-02 12:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:51:22] Production.INFO: 38 MB #Memory Used# [2025-02-02 12:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:52:06 [end_date_ymd] => 2025-02-02 12:52:06 [RateCDR] => 1 ) [2025-02-02 12:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 09:52:06' and `end` < '2025-02-02 12:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 12:52:19] Production.INFO: count ==1365 [2025-02-02 12:52:19] Production.ERROR: pbx CDR StartTime 2025-02-02 09:52:06 - End Time 2025-02-02 12:52:06 [2025-02-02 12:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385805', 'tblTempUsageDetail_20' ) start [2025-02-02 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385805', 'tblTempUsageDetail_20' ) end [2025-02-02 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385805', 'tblTempVendorCDR_20' ) start [2025-02-02 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385805', 'tblTempVendorCDR_20' ) end [2025-02-02 12:52:19] Production.INFO: ProcessCDR(1,14385805,1,1,2) [2025-02-02 12:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385805', 'tblTempUsageDetail_20' ) start [2025-02-02 12:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385805', 'tblTempUsageDetail_20' ) end [2025-02-02 12:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:52:24] Production.INFO: ==32765== Releasing lock... [2025-02-02 12:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:52:24] Production.INFO: 38 MB #Memory Used# [2025-02-02 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:53:05 [end_date_ymd] => 2025-02-02 12:53:05 [RateCDR] => 1 ) [2025-02-02 12:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 09:53:05' and `end` < '2025-02-02 12:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 12:53:19] Production.INFO: count ==1367 [2025-02-02 12:53:19] Production.ERROR: pbx CDR StartTime 2025-02-02 09:53:05 - End Time 2025-02-02 12:53:05 [2025-02-02 12:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385810', 'tblTempUsageDetail_20' ) start [2025-02-02 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385810', 'tblTempUsageDetail_20' ) end [2025-02-02 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385810', 'tblTempVendorCDR_20' ) start [2025-02-02 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385810', 'tblTempVendorCDR_20' ) end [2025-02-02 12:53:19] Production.INFO: ProcessCDR(1,14385810,1,1,2) [2025-02-02 12:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385810', 'tblTempUsageDetail_20' ) start [2025-02-02 12:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385810', 'tblTempUsageDetail_20' ) end [2025-02-02 12:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:53:24] Production.INFO: ==389== Releasing lock... [2025-02-02 12:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:53:24] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:54:05 [end_date_ymd] => 2025-02-02 12:54:05 [RateCDR] => 1 ) [2025-02-02 12:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 09:54:05' and `end` < '2025-02-02 12:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 12:54:19] Production.INFO: count ==1374 [2025-02-02 12:54:19] Production.ERROR: pbx CDR StartTime 2025-02-02 09:54:05 - End Time 2025-02-02 12:54:05 [2025-02-02 12:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385815', 'tblTempUsageDetail_20' ) start [2025-02-02 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385815', 'tblTempUsageDetail_20' ) end [2025-02-02 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385815', 'tblTempVendorCDR_20' ) start [2025-02-02 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385815', 'tblTempVendorCDR_20' ) end [2025-02-02 12:54:19] Production.INFO: ProcessCDR(1,14385815,1,1,2) [2025-02-02 12:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385815', 'tblTempUsageDetail_20' ) start [2025-02-02 12:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385815', 'tblTempUsageDetail_20' ) end [2025-02-02 12:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:54:23] Production.INFO: ==484== Releasing lock... [2025-02-02 12:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:54:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:55:05 [end_date_ymd] => 2025-02-02 12:55:05 [RateCDR] => 1 ) [2025-02-02 12:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 09:55:05' and `end` < '2025-02-02 12:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 12:55:19] Production.INFO: count ==1374 [2025-02-02 12:55:19] Production.ERROR: pbx CDR StartTime 2025-02-02 09:55:05 - End Time 2025-02-02 12:55:05 [2025-02-02 12:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385820', 'tblTempUsageDetail_20' ) start [2025-02-02 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385820', 'tblTempUsageDetail_20' ) end [2025-02-02 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385820', 'tblTempVendorCDR_20' ) start [2025-02-02 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385820', 'tblTempVendorCDR_20' ) end [2025-02-02 12:55:19] Production.INFO: ProcessCDR(1,14385820,1,1,2) [2025-02-02 12:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385820', 'tblTempUsageDetail_20' ) start [2025-02-02 12:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385820', 'tblTempUsageDetail_20' ) end [2025-02-02 12:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:55:22] Production.INFO: ==582== Releasing lock... [2025-02-02 12:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:55:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:56:05 [end_date_ymd] => 2025-02-02 12:56:05 [RateCDR] => 1 ) [2025-02-02 12:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 09:56:05' and `end` < '2025-02-02 12:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 12:56:19] Production.INFO: count ==1379 [2025-02-02 12:56:19] Production.ERROR: pbx CDR StartTime 2025-02-02 09:56:05 - End Time 2025-02-02 12:56:05 [2025-02-02 12:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385825', 'tblTempUsageDetail_20' ) start [2025-02-02 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385825', 'tblTempUsageDetail_20' ) end [2025-02-02 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385825', 'tblTempVendorCDR_20' ) start [2025-02-02 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385825', 'tblTempVendorCDR_20' ) end [2025-02-02 12:56:19] Production.INFO: ProcessCDR(1,14385825,1,1,2) [2025-02-02 12:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385825', 'tblTempUsageDetail_20' ) start [2025-02-02 12:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385825', 'tblTempUsageDetail_20' ) end [2025-02-02 12:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:56:22] Production.INFO: ==701== Releasing lock... [2025-02-02 12:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:56:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 12:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:57:04 [end_date_ymd] => 2025-02-02 12:57:04 [RateCDR] => 1 ) [2025-02-02 12: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-02 09:57:04' and `end` < '2025-02-02 12: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-02 12:57:19] Production.INFO: count ==1381 [2025-02-02 12:57:19] Production.ERROR: pbx CDR StartTime 2025-02-02 09:57:04 - End Time 2025-02-02 12:57:04 [2025-02-02 12:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385830', 'tblTempUsageDetail_20' ) start [2025-02-02 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385830', 'tblTempUsageDetail_20' ) end [2025-02-02 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385830', 'tblTempVendorCDR_20' ) start [2025-02-02 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385830', 'tblTempVendorCDR_20' ) end [2025-02-02 12:57:19] Production.INFO: ProcessCDR(1,14385830,1,1,2) [2025-02-02 12:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385830', 'tblTempUsageDetail_20' ) start [2025-02-02 12:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385830', 'tblTempUsageDetail_20' ) end [2025-02-02 12:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:57:24] Production.INFO: ==801== Releasing lock... [2025-02-02 12:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:57:24] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 12:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:58:06 [end_date_ymd] => 2025-02-02 12:58:06 [RateCDR] => 1 ) [2025-02-02 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-02 09:58:06' and `end` < '2025-02-02 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-02 12:58:20] Production.INFO: count ==1382 [2025-02-02 12:58:20] Production.ERROR: pbx CDR StartTime 2025-02-02 09:58:06 - End Time 2025-02-02 12:58:06 [2025-02-02 12:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385835', 'tblTempUsageDetail_20' ) start [2025-02-02 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385835', 'tblTempUsageDetail_20' ) end [2025-02-02 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385835', 'tblTempVendorCDR_20' ) start [2025-02-02 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385835', 'tblTempVendorCDR_20' ) end [2025-02-02 12:58:20] Production.INFO: ProcessCDR(1,14385835,1,1,2) [2025-02-02 12:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385835', 'tblTempUsageDetail_20' ) start [2025-02-02 12:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385835', 'tblTempUsageDetail_20' ) end [2025-02-02 12:58:25] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:58:25] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:58:25] Production.INFO: ==891== Releasing lock... [2025-02-02 12:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:58:25] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 09:59:05 [end_date_ymd] => 2025-02-02 12:59:05 [RateCDR] => 1 ) [2025-02-02 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-02 09:59:05' and `end` < '2025-02-02 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-02 12:59:18] Production.INFO: count ==1381 [2025-02-02 12:59:18] Production.ERROR: pbx CDR StartTime 2025-02-02 09:59:05 - End Time 2025-02-02 12:59:05 [2025-02-02 12:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385840', 'tblTempUsageDetail_20' ) start [2025-02-02 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385840', 'tblTempUsageDetail_20' ) end [2025-02-02 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385840', 'tblTempVendorCDR_20' ) start [2025-02-02 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385840', 'tblTempVendorCDR_20' ) end [2025-02-02 12:59:18] Production.INFO: ProcessCDR(1,14385840,1,1,2) [2025-02-02 12:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 12:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 12:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385840', 'tblTempUsageDetail_20' ) start [2025-02-02 12:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385840', 'tblTempUsageDetail_20' ) end [2025-02-02 12:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 12:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 12:59:21] Production.INFO: ==1021== Releasing lock... [2025-02-02 12:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 12:59:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 13:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:00:05 [end_date_ymd] => 2025-02-02 13:00:05 [RateCDR] => 1 ) [2025-02-02 13: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-02 10:00:05' and `end` < '2025-02-02 13: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-02 13:00:18] Production.INFO: count ==1391 [2025-02-02 13:00:19] Production.ERROR: pbx CDR StartTime 2025-02-02 10:00:05 - End Time 2025-02-02 13:00:05 [2025-02-02 13:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385845', 'tblTempUsageDetail_20' ) start [2025-02-02 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385845', 'tblTempUsageDetail_20' ) end [2025-02-02 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385845', 'tblTempVendorCDR_20' ) start [2025-02-02 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385845', 'tblTempVendorCDR_20' ) end [2025-02-02 13:00:19] Production.INFO: ProcessCDR(1,14385845,1,1,2) [2025-02-02 13:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385845', 'tblTempUsageDetail_20' ) start [2025-02-02 13:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385845', 'tblTempUsageDetail_20' ) end [2025-02-02 13:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:00:24] Production.INFO: ==1101== Releasing lock... [2025-02-02 13:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:00:24] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 13:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:01:06 [end_date_ymd] => 2025-02-02 13:01:06 [RateCDR] => 1 ) [2025-02-02 13:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 10:01:06' and `end` < '2025-02-02 13:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 13:01:19] Production.INFO: count ==1409 [2025-02-02 13:01:19] Production.ERROR: pbx CDR StartTime 2025-02-02 10:01:06 - End Time 2025-02-02 13:01:06 [2025-02-02 13:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385851', 'tblTempUsageDetail_20' ) start [2025-02-02 13:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385851', 'tblTempUsageDetail_20' ) end [2025-02-02 13:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385851', 'tblTempVendorCDR_20' ) start [2025-02-02 13:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385851', 'tblTempVendorCDR_20' ) end [2025-02-02 13:01:19] Production.INFO: ProcessCDR(1,14385851,1,1,2) [2025-02-02 13:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385851', 'tblTempUsageDetail_20' ) start [2025-02-02 13:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385851', 'tblTempUsageDetail_20' ) end [2025-02-02 13:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:01:22] Production.INFO: ==1200== Releasing lock... [2025-02-02 13:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:01:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:02:05 [end_date_ymd] => 2025-02-02 13:02:05 [RateCDR] => 1 ) [2025-02-02 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-02 10:02:05' and `end` < '2025-02-02 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-02 13:02:20] Production.INFO: count ==1409 [2025-02-02 13:02:21] Production.ERROR: pbx CDR StartTime 2025-02-02 10:02:05 - End Time 2025-02-02 13:02:05 [2025-02-02 13:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385856', 'tblTempUsageDetail_20' ) start [2025-02-02 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385856', 'tblTempUsageDetail_20' ) end [2025-02-02 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385856', 'tblTempVendorCDR_20' ) start [2025-02-02 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385856', 'tblTempVendorCDR_20' ) end [2025-02-02 13:02:21] Production.INFO: ProcessCDR(1,14385856,1,1,2) [2025-02-02 13:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385856', 'tblTempUsageDetail_20' ) start [2025-02-02 13:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385856', 'tblTempUsageDetail_20' ) end [2025-02-02 13:02:26] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:02:26] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:02:26] Production.INFO: ==1292== Releasing lock... [2025-02-02 13:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:02:26] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 13:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:03:06 [end_date_ymd] => 2025-02-02 13:03:06 [RateCDR] => 1 ) [2025-02-02 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-02 10:03:06' and `end` < '2025-02-02 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-02 13:03:21] Production.INFO: count ==1413 [2025-02-02 13:03:21] Production.ERROR: pbx CDR StartTime 2025-02-02 10:03:06 - End Time 2025-02-02 13:03:06 [2025-02-02 13:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385861', 'tblTempUsageDetail_20' ) start [2025-02-02 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385861', 'tblTempUsageDetail_20' ) end [2025-02-02 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385861', 'tblTempVendorCDR_20' ) start [2025-02-02 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385861', 'tblTempVendorCDR_20' ) end [2025-02-02 13:03:21] Production.INFO: ProcessCDR(1,14385861,1,1,2) [2025-02-02 13:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385861', 'tblTempUsageDetail_20' ) start [2025-02-02 13:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385861', 'tblTempUsageDetail_20' ) end [2025-02-02 13:03:25] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:03:25] Production.INFO: ==1367== Releasing lock... [2025-02-02 13:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:03:25] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:04:05 [end_date_ymd] => 2025-02-02 13:04:05 [RateCDR] => 1 ) [2025-02-02 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-02 10:04:05' and `end` < '2025-02-02 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-02 13:04:18] Production.INFO: count ==1417 [2025-02-02 13:04:19] Production.ERROR: pbx CDR StartTime 2025-02-02 10:04:05 - End Time 2025-02-02 13:04:05 [2025-02-02 13:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385866', 'tblTempUsageDetail_20' ) start [2025-02-02 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385866', 'tblTempUsageDetail_20' ) end [2025-02-02 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385866', 'tblTempVendorCDR_20' ) start [2025-02-02 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385866', 'tblTempVendorCDR_20' ) end [2025-02-02 13:04:19] Production.INFO: ProcessCDR(1,14385866,1,1,2) [2025-02-02 13:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385866', 'tblTempUsageDetail_20' ) start [2025-02-02 13:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385866', 'tblTempUsageDetail_20' ) end [2025-02-02 13:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:04:24] Production.INFO: ==1447== Releasing lock... [2025-02-02 13:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:04:24] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:05:05 [end_date_ymd] => 2025-02-02 13:05:05 [RateCDR] => 1 ) [2025-02-02 13:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 10:05:05' and `end` < '2025-02-02 13:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 13:05:18] Production.INFO: count ==1421 [2025-02-02 13:05:19] Production.ERROR: pbx CDR StartTime 2025-02-02 10:05:05 - End Time 2025-02-02 13:05:05 [2025-02-02 13:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385871', 'tblTempUsageDetail_20' ) start [2025-02-02 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385871', 'tblTempUsageDetail_20' ) end [2025-02-02 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385871', 'tblTempVendorCDR_20' ) start [2025-02-02 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385871', 'tblTempVendorCDR_20' ) end [2025-02-02 13:05:19] Production.INFO: ProcessCDR(1,14385871,1,1,2) [2025-02-02 13:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385871', 'tblTempUsageDetail_20' ) start [2025-02-02 13:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385871', 'tblTempUsageDetail_20' ) end [2025-02-02 13:05:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:05:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:05:24] Production.INFO: ==1563== Releasing lock... [2025-02-02 13:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:05:24] Production.INFO: 39 MB #Memory Used# [2025-02-02 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:06:05 [end_date_ymd] => 2025-02-02 13:06:05 [RateCDR] => 1 ) [2025-02-02 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-02 10:06:05' and `end` < '2025-02-02 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-02 13:06:18] Production.INFO: count ==1420 [2025-02-02 13:06:18] Production.ERROR: pbx CDR StartTime 2025-02-02 10:06:05 - End Time 2025-02-02 13:06:05 [2025-02-02 13:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385876', 'tblTempUsageDetail_20' ) start [2025-02-02 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385876', 'tblTempUsageDetail_20' ) end [2025-02-02 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385876', 'tblTempVendorCDR_20' ) start [2025-02-02 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385876', 'tblTempVendorCDR_20' ) end [2025-02-02 13:06:18] Production.INFO: ProcessCDR(1,14385876,1,1,2) [2025-02-02 13:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385876', 'tblTempUsageDetail_20' ) start [2025-02-02 13:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385876', 'tblTempUsageDetail_20' ) end [2025-02-02 13:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:06:21] Production.INFO: ==1648== Releasing lock... [2025-02-02 13:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:06:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 13:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:07:06 [end_date_ymd] => 2025-02-02 13:07:06 [RateCDR] => 1 ) [2025-02-02 13:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 10:07:06' and `end` < '2025-02-02 13:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 13:07:19] Production.INFO: count ==1424 [2025-02-02 13:07:19] Production.ERROR: pbx CDR StartTime 2025-02-02 10:07:06 - End Time 2025-02-02 13:07:06 [2025-02-02 13:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385881', 'tblTempUsageDetail_20' ) start [2025-02-02 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385881', 'tblTempUsageDetail_20' ) end [2025-02-02 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385881', 'tblTempVendorCDR_20' ) start [2025-02-02 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385881', 'tblTempVendorCDR_20' ) end [2025-02-02 13:07:19] Production.INFO: ProcessCDR(1,14385881,1,1,2) [2025-02-02 13:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385881', 'tblTempUsageDetail_20' ) start [2025-02-02 13:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385881', 'tblTempUsageDetail_20' ) end [2025-02-02 13:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:07:23] Production.INFO: ==1726== Releasing lock... [2025-02-02 13:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:07:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:08:05 [end_date_ymd] => 2025-02-02 13:08:05 [RateCDR] => 1 ) [2025-02-02 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-02 10:08:05' and `end` < '2025-02-02 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-02 13:08:18] Production.INFO: count ==1413 [2025-02-02 13:08:19] Production.ERROR: pbx CDR StartTime 2025-02-02 10:08:05 - End Time 2025-02-02 13:08:05 [2025-02-02 13:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385886', 'tblTempUsageDetail_20' ) start [2025-02-02 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385886', 'tblTempUsageDetail_20' ) end [2025-02-02 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385886', 'tblTempVendorCDR_20' ) start [2025-02-02 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385886', 'tblTempVendorCDR_20' ) end [2025-02-02 13:08:19] Production.INFO: ProcessCDR(1,14385886,1,1,2) [2025-02-02 13:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385886', 'tblTempUsageDetail_20' ) start [2025-02-02 13:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385886', 'tblTempUsageDetail_20' ) end [2025-02-02 13:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:08:22] Production.INFO: ==1805== Releasing lock... [2025-02-02 13:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:08:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:09:05 [end_date_ymd] => 2025-02-02 13:09:05 [RateCDR] => 1 ) [2025-02-02 13:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 10:09:05' and `end` < '2025-02-02 13:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 13:09:18] Production.INFO: count ==1412 [2025-02-02 13:09:19] Production.ERROR: pbx CDR StartTime 2025-02-02 10:09:05 - End Time 2025-02-02 13:09:05 [2025-02-02 13:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385891', 'tblTempUsageDetail_20' ) start [2025-02-02 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385891', 'tblTempUsageDetail_20' ) end [2025-02-02 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385891', 'tblTempVendorCDR_20' ) start [2025-02-02 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385891', 'tblTempVendorCDR_20' ) end [2025-02-02 13:09:19] Production.INFO: ProcessCDR(1,14385891,1,1,2) [2025-02-02 13:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385891', 'tblTempUsageDetail_20' ) start [2025-02-02 13:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385891', 'tblTempUsageDetail_20' ) end [2025-02-02 13:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:09:24] Production.INFO: ==1891== Releasing lock... [2025-02-02 13:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:09:24] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 13:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:10:07 [end_date_ymd] => 2025-02-02 13:10:07 [RateCDR] => 1 ) [2025-02-02 13:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 10:10:07' and `end` < '2025-02-02 13:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 13:10:19] Production.INFO: count ==1398 [2025-02-02 13:10:20] Production.ERROR: pbx CDR StartTime 2025-02-02 10:10:07 - End Time 2025-02-02 13:10:07 [2025-02-02 13:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385897', 'tblTempUsageDetail_20' ) start [2025-02-02 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385897', 'tblTempUsageDetail_20' ) end [2025-02-02 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385897', 'tblTempVendorCDR_20' ) start [2025-02-02 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385897', 'tblTempVendorCDR_20' ) end [2025-02-02 13:10:20] Production.INFO: ProcessCDR(1,14385897,1,1,2) [2025-02-02 13:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385897', 'tblTempUsageDetail_20' ) start [2025-02-02 13:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385897', 'tblTempUsageDetail_20' ) end [2025-02-02 13:10:25] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:10:25] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:10:25] Production.INFO: ==1969== Releasing lock... [2025-02-02 13:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:10:25] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 13:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:11:06 [end_date_ymd] => 2025-02-02 13:11:06 [RateCDR] => 1 ) [2025-02-02 13:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 10:11:06' and `end` < '2025-02-02 13:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 13:11:20] Production.INFO: count ==1311 [2025-02-02 13:11:21] Production.ERROR: pbx CDR StartTime 2025-02-02 10:11:06 - End Time 2025-02-02 13:11:06 [2025-02-02 13:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385902', 'tblTempUsageDetail_20' ) start [2025-02-02 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385902', 'tblTempUsageDetail_20' ) end [2025-02-02 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385902', 'tblTempVendorCDR_20' ) start [2025-02-02 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385902', 'tblTempVendorCDR_20' ) end [2025-02-02 13:11:21] Production.INFO: ProcessCDR(1,14385902,1,1,2) [2025-02-02 13:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385902', 'tblTempUsageDetail_20' ) start [2025-02-02 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385902', 'tblTempUsageDetail_20' ) end [2025-02-02 13:11:26] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:11:26] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:11:26] Production.INFO: ==2050== Releasing lock... [2025-02-02 13:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:11:26] Production.INFO: 38 MB #Memory Used# [2025-02-02 13:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:12:06 [end_date_ymd] => 2025-02-02 13:12:06 [RateCDR] => 1 ) [2025-02-02 13:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 10:12:06' and `end` < '2025-02-02 13:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 13:12:20] Production.INFO: count ==1309 [2025-02-02 13:12:20] Production.ERROR: pbx CDR StartTime 2025-02-02 10:12:06 - End Time 2025-02-02 13:12:06 [2025-02-02 13:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385907', 'tblTempUsageDetail_20' ) start [2025-02-02 13:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385907', 'tblTempUsageDetail_20' ) end [2025-02-02 13:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385907', 'tblTempVendorCDR_20' ) start [2025-02-02 13:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385907', 'tblTempVendorCDR_20' ) end [2025-02-02 13:12:20] Production.INFO: ProcessCDR(1,14385907,1,1,2) [2025-02-02 13:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385907', 'tblTempUsageDetail_20' ) start [2025-02-02 13:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385907', 'tblTempUsageDetail_20' ) end [2025-02-02 13:12:25] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:12:25] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:12:25] Production.INFO: ==2130== Releasing lock... [2025-02-02 13:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:12:25] Production.INFO: 37.75 MB #Memory Used# [2025-02-02 13:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:13:06 [end_date_ymd] => 2025-02-02 13:13:06 [RateCDR] => 1 ) [2025-02-02 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-02 10:13:06' and `end` < '2025-02-02 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-02 13:13:19] Production.INFO: count ==1313 [2025-02-02 13:13:19] Production.ERROR: pbx CDR StartTime 2025-02-02 10:13:06 - End Time 2025-02-02 13:13:06 [2025-02-02 13:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385912', 'tblTempUsageDetail_20' ) start [2025-02-02 13:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385912', 'tblTempUsageDetail_20' ) end [2025-02-02 13:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385912', 'tblTempVendorCDR_20' ) start [2025-02-02 13:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385912', 'tblTempVendorCDR_20' ) end [2025-02-02 13:13:19] Production.INFO: ProcessCDR(1,14385912,1,1,2) [2025-02-02 13:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385912', 'tblTempUsageDetail_20' ) start [2025-02-02 13:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385912', 'tblTempUsageDetail_20' ) end [2025-02-02 13:13:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:13:24] Production.INFO: ==2210== Releasing lock... [2025-02-02 13:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:13:24] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:14:05 [end_date_ymd] => 2025-02-02 13:14:05 [RateCDR] => 1 ) [2025-02-02 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-02 10:14:05' and `end` < '2025-02-02 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-02 13:14:21] Production.INFO: count ==1310 [2025-02-02 13:14:22] Production.ERROR: pbx CDR StartTime 2025-02-02 10:14:05 - End Time 2025-02-02 13:14:05 [2025-02-02 13:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385917', 'tblTempUsageDetail_20' ) start [2025-02-02 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385917', 'tblTempUsageDetail_20' ) end [2025-02-02 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385917', 'tblTempVendorCDR_20' ) start [2025-02-02 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385917', 'tblTempVendorCDR_20' ) end [2025-02-02 13:14:22] Production.INFO: ProcessCDR(1,14385917,1,1,2) [2025-02-02 13:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385917', 'tblTempUsageDetail_20' ) start [2025-02-02 13:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385917', 'tblTempUsageDetail_20' ) end [2025-02-02 13:14:26] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:14:26] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:14:26] Production.INFO: ==2327== Releasing lock... [2025-02-02 13:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:14:26] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 13:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:15:06 [end_date_ymd] => 2025-02-02 13:15:06 [RateCDR] => 1 ) [2025-02-02 13:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 10:15:06' and `end` < '2025-02-02 13:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 13:15:19] Production.INFO: count ==1308 [2025-02-02 13:15:19] Production.ERROR: pbx CDR StartTime 2025-02-02 10:15:06 - End Time 2025-02-02 13:15:06 [2025-02-02 13:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385922', 'tblTempUsageDetail_20' ) start [2025-02-02 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385922', 'tblTempUsageDetail_20' ) end [2025-02-02 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385922', 'tblTempVendorCDR_20' ) start [2025-02-02 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385922', 'tblTempVendorCDR_20' ) end [2025-02-02 13:15:19] Production.INFO: ProcessCDR(1,14385922,1,1,2) [2025-02-02 13:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385922', 'tblTempUsageDetail_20' ) start [2025-02-02 13:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385922', 'tblTempUsageDetail_20' ) end [2025-02-02 13:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:15:22] Production.INFO: ==2403== Releasing lock... [2025-02-02 13:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:15:22] Production.INFO: 38 MB #Memory Used# [2025-02-02 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:16:05 [end_date_ymd] => 2025-02-02 13:16:05 [RateCDR] => 1 ) [2025-02-02 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-02 10:16:05' and `end` < '2025-02-02 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-02 13:16:18] Production.INFO: count ==1309 [2025-02-02 13:16:18] Production.ERROR: pbx CDR StartTime 2025-02-02 10:16:05 - End Time 2025-02-02 13:16:05 [2025-02-02 13:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385927', 'tblTempUsageDetail_20' ) start [2025-02-02 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385927', 'tblTempUsageDetail_20' ) end [2025-02-02 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385927', 'tblTempVendorCDR_20' ) start [2025-02-02 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385927', 'tblTempVendorCDR_20' ) end [2025-02-02 13:16:18] Production.INFO: ProcessCDR(1,14385927,1,1,2) [2025-02-02 13:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385927', 'tblTempUsageDetail_20' ) start [2025-02-02 13:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385927', 'tblTempUsageDetail_20' ) end [2025-02-02 13:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:16:23] Production.INFO: ==2486== Releasing lock... [2025-02-02 13:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:16:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 13:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:17:06 [end_date_ymd] => 2025-02-02 13:17:06 [RateCDR] => 1 ) [2025-02-02 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-02 10:17:06' and `end` < '2025-02-02 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-02 13:17:19] Production.INFO: count ==1309 [2025-02-02 13:17:19] Production.ERROR: pbx CDR StartTime 2025-02-02 10:17:06 - End Time 2025-02-02 13:17:06 [2025-02-02 13:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385932', 'tblTempUsageDetail_20' ) start [2025-02-02 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385932', 'tblTempUsageDetail_20' ) end [2025-02-02 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385932', 'tblTempVendorCDR_20' ) start [2025-02-02 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385932', 'tblTempVendorCDR_20' ) end [2025-02-02 13:17:19] Production.INFO: ProcessCDR(1,14385932,1,1,2) [2025-02-02 13:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385932', 'tblTempUsageDetail_20' ) start [2025-02-02 13:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385932', 'tblTempUsageDetail_20' ) end [2025-02-02 13:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:17:24] Production.INFO: ==2565== Releasing lock... [2025-02-02 13:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:17:24] Production.INFO: 38 MB #Memory Used# [2025-02-02 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:18:05 [end_date_ymd] => 2025-02-02 13:18:05 [RateCDR] => 1 ) [2025-02-02 13:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 10:18:05' and `end` < '2025-02-02 13:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 13:18:18] Production.INFO: count ==1310 [2025-02-02 13:18:19] Production.ERROR: pbx CDR StartTime 2025-02-02 10:18:05 - End Time 2025-02-02 13:18:05 [2025-02-02 13:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385937', 'tblTempUsageDetail_20' ) start [2025-02-02 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385937', 'tblTempUsageDetail_20' ) end [2025-02-02 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385937', 'tblTempVendorCDR_20' ) start [2025-02-02 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385937', 'tblTempVendorCDR_20' ) end [2025-02-02 13:18:19] Production.INFO: ProcessCDR(1,14385937,1,1,2) [2025-02-02 13:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385937', 'tblTempUsageDetail_20' ) start [2025-02-02 13:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385937', 'tblTempUsageDetail_20' ) end [2025-02-02 13:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:18:22] Production.INFO: ==2644== Releasing lock... [2025-02-02 13:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:18:22] Production.INFO: 38 MB #Memory Used# [2025-02-02 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:19:05 [end_date_ymd] => 2025-02-02 13:19:05 [RateCDR] => 1 ) [2025-02-02 13:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 10:19:05' and `end` < '2025-02-02 13:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 13:19:18] Production.INFO: count ==1316 [2025-02-02 13:19:18] Production.ERROR: pbx CDR StartTime 2025-02-02 10:19:05 - End Time 2025-02-02 13:19:05 [2025-02-02 13:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385942', 'tblTempUsageDetail_20' ) start [2025-02-02 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385942', 'tblTempUsageDetail_20' ) end [2025-02-02 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385942', 'tblTempVendorCDR_20' ) start [2025-02-02 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385942', 'tblTempVendorCDR_20' ) end [2025-02-02 13:19:19] Production.INFO: ProcessCDR(1,14385942,1,1,2) [2025-02-02 13:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385942', 'tblTempUsageDetail_20' ) start [2025-02-02 13:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385942', 'tblTempUsageDetail_20' ) end [2025-02-02 13:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:19:23] Production.INFO: ==2723== Releasing lock... [2025-02-02 13:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:19:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 13:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:20:05 [end_date_ymd] => 2025-02-02 13:20:05 [RateCDR] => 1 ) [2025-02-02 13:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 10:20:05' and `end` < '2025-02-02 13:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 13:20:18] Production.INFO: count ==1315 [2025-02-02 13:20:19] Production.ERROR: pbx CDR StartTime 2025-02-02 10:20:05 - End Time 2025-02-02 13:20:05 [2025-02-02 13:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385947', 'tblTempUsageDetail_20' ) start [2025-02-02 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385947', 'tblTempUsageDetail_20' ) end [2025-02-02 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385947', 'tblTempVendorCDR_20' ) start [2025-02-02 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385947', 'tblTempVendorCDR_20' ) end [2025-02-02 13:20:19] Production.INFO: ProcessCDR(1,14385947,1,1,2) [2025-02-02 13:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385947', 'tblTempUsageDetail_20' ) start [2025-02-02 13:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385947', 'tblTempUsageDetail_20' ) end [2025-02-02 13:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:20:22] Production.INFO: ==2809== Releasing lock... [2025-02-02 13:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:20:22] Production.INFO: 38 MB #Memory Used# [2025-02-02 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:21:05 [end_date_ymd] => 2025-02-02 13:21:05 [RateCDR] => 1 ) [2025-02-02 13:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 10:21:05' and `end` < '2025-02-02 13:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 13:21:18] Production.INFO: count ==1344 [2025-02-02 13:21:19] Production.ERROR: pbx CDR StartTime 2025-02-02 10:21:05 - End Time 2025-02-02 13:21:05 [2025-02-02 13:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385953', 'tblTempUsageDetail_20' ) start [2025-02-02 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385953', 'tblTempUsageDetail_20' ) end [2025-02-02 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385953', 'tblTempVendorCDR_20' ) start [2025-02-02 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385953', 'tblTempVendorCDR_20' ) end [2025-02-02 13:21:19] Production.INFO: ProcessCDR(1,14385953,1,1,2) [2025-02-02 13:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385953', 'tblTempUsageDetail_20' ) start [2025-02-02 13:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385953', 'tblTempUsageDetail_20' ) end [2025-02-02 13:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:21:22] Production.INFO: ==2895== Releasing lock... [2025-02-02 13:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:21:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:22:05 [end_date_ymd] => 2025-02-02 13:22:05 [RateCDR] => 1 ) [2025-02-02 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-02 10:22:05' and `end` < '2025-02-02 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-02 13:22:18] Production.INFO: count ==1351 [2025-02-02 13:22:18] Production.ERROR: pbx CDR StartTime 2025-02-02 10:22:05 - End Time 2025-02-02 13:22:05 [2025-02-02 13:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385958', 'tblTempUsageDetail_20' ) start [2025-02-02 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385958', 'tblTempUsageDetail_20' ) end [2025-02-02 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385958', 'tblTempVendorCDR_20' ) start [2025-02-02 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385958', 'tblTempVendorCDR_20' ) end [2025-02-02 13:22:18] Production.INFO: ProcessCDR(1,14385958,1,1,2) [2025-02-02 13:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385958', 'tblTempUsageDetail_20' ) start [2025-02-02 13:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385958', 'tblTempUsageDetail_20' ) end [2025-02-02 13:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:22:23] Production.INFO: ==2972== Releasing lock... [2025-02-02 13:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:22:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:23:05 [end_date_ymd] => 2025-02-02 13:23:05 [RateCDR] => 1 ) [2025-02-02 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-02 10:23:05' and `end` < '2025-02-02 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-02 13:23:19] Production.INFO: count ==1398 [2025-02-02 13:23:20] Production.ERROR: pbx CDR StartTime 2025-02-02 10:23:05 - End Time 2025-02-02 13:23:05 [2025-02-02 13:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385963', 'tblTempUsageDetail_20' ) start [2025-02-02 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385963', 'tblTempUsageDetail_20' ) end [2025-02-02 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385963', 'tblTempVendorCDR_20' ) start [2025-02-02 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385963', 'tblTempVendorCDR_20' ) end [2025-02-02 13:23:20] Production.INFO: ProcessCDR(1,14385963,1,1,2) [2025-02-02 13:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385963', 'tblTempUsageDetail_20' ) start [2025-02-02 13:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385963', 'tblTempUsageDetail_20' ) end [2025-02-02 13:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:23:24] Production.INFO: ==3053== Releasing lock... [2025-02-02 13:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:23:24] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:24:05 [end_date_ymd] => 2025-02-02 13:24:05 [RateCDR] => 1 ) [2025-02-02 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-02 10:24:05' and `end` < '2025-02-02 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-02 13:24:18] Production.INFO: count ==1468 [2025-02-02 13:24:18] Production.ERROR: pbx CDR StartTime 2025-02-02 10:24:05 - End Time 2025-02-02 13:24:05 [2025-02-02 13:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385968', 'tblTempUsageDetail_20' ) start [2025-02-02 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385968', 'tblTempUsageDetail_20' ) end [2025-02-02 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385968', 'tblTempVendorCDR_20' ) start [2025-02-02 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385968', 'tblTempVendorCDR_20' ) end [2025-02-02 13:24:18] Production.INFO: ProcessCDR(1,14385968,1,1,2) [2025-02-02 13:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385968', 'tblTempUsageDetail_20' ) start [2025-02-02 13:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385968', 'tblTempUsageDetail_20' ) end [2025-02-02 13:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:24:23] Production.INFO: ==3140== Releasing lock... [2025-02-02 13:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:24:23] Production.INFO: 39 MB #Memory Used# [2025-02-02 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:25:05 [end_date_ymd] => 2025-02-02 13:25:05 [RateCDR] => 1 ) [2025-02-02 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 10:25:05' and `end` < '2025-02-02 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-02 13:25:18] Production.INFO: count ==1484 [2025-02-02 13:25:19] Production.ERROR: pbx CDR StartTime 2025-02-02 10:25:05 - End Time 2025-02-02 13:25:05 [2025-02-02 13:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385973', 'tblTempUsageDetail_20' ) start [2025-02-02 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385973', 'tblTempUsageDetail_20' ) end [2025-02-02 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385973', 'tblTempVendorCDR_20' ) start [2025-02-02 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385973', 'tblTempVendorCDR_20' ) end [2025-02-02 13:25:19] Production.INFO: ProcessCDR(1,14385973,1,1,2) [2025-02-02 13:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385973', 'tblTempUsageDetail_20' ) start [2025-02-02 13:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385973', 'tblTempUsageDetail_20' ) end [2025-02-02 13:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:25:23] Production.INFO: ==3217== Releasing lock... [2025-02-02 13:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:25:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-02 13:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:26:06 [end_date_ymd] => 2025-02-02 13:26:06 [RateCDR] => 1 ) [2025-02-02 13: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-02 10:26:06' and `end` < '2025-02-02 13: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-02 13:26:19] Production.INFO: count ==1491 [2025-02-02 13:26:19] Production.ERROR: pbx CDR StartTime 2025-02-02 10:26:06 - End Time 2025-02-02 13:26:06 [2025-02-02 13:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385978', 'tblTempUsageDetail_20' ) start [2025-02-02 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385978', 'tblTempUsageDetail_20' ) end [2025-02-02 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385978', 'tblTempVendorCDR_20' ) start [2025-02-02 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385978', 'tblTempVendorCDR_20' ) end [2025-02-02 13:26:19] Production.INFO: ProcessCDR(1,14385978,1,1,2) [2025-02-02 13:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385978', 'tblTempUsageDetail_20' ) start [2025-02-02 13:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385978', 'tblTempUsageDetail_20' ) end [2025-02-02 13:26:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:26:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:26:24] Production.INFO: ==3302== Releasing lock... [2025-02-02 13:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:26:24] Production.INFO: 39.25 MB #Memory Used# [2025-02-02 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:27:05 [end_date_ymd] => 2025-02-02 13:27:05 [RateCDR] => 1 ) [2025-02-02 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-02 10:27:05' and `end` < '2025-02-02 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-02 13:27:18] Production.INFO: count ==1485 [2025-02-02 13:27:18] Production.ERROR: pbx CDR StartTime 2025-02-02 10:27:05 - End Time 2025-02-02 13:27:05 [2025-02-02 13:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385983', 'tblTempUsageDetail_20' ) start [2025-02-02 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385983', 'tblTempUsageDetail_20' ) end [2025-02-02 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385983', 'tblTempVendorCDR_20' ) start [2025-02-02 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385983', 'tblTempVendorCDR_20' ) end [2025-02-02 13:27:18] Production.INFO: ProcessCDR(1,14385983,1,1,2) [2025-02-02 13:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385983', 'tblTempUsageDetail_20' ) start [2025-02-02 13:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385983', 'tblTempUsageDetail_20' ) end [2025-02-02 13:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:27:23] Production.INFO: ==3385== Releasing lock... [2025-02-02 13:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:27:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-02 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:28:05 [end_date_ymd] => 2025-02-02 13:28:05 [RateCDR] => 1 ) [2025-02-02 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-02 10:28:05' and `end` < '2025-02-02 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-02 13:28:18] Production.INFO: count ==1485 [2025-02-02 13:28:19] Production.ERROR: pbx CDR StartTime 2025-02-02 10:28:05 - End Time 2025-02-02 13:28:05 [2025-02-02 13:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385988', 'tblTempUsageDetail_20' ) start [2025-02-02 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385988', 'tblTempUsageDetail_20' ) end [2025-02-02 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385988', 'tblTempVendorCDR_20' ) start [2025-02-02 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385988', 'tblTempVendorCDR_20' ) end [2025-02-02 13:28:19] Production.INFO: ProcessCDR(1,14385988,1,1,2) [2025-02-02 13:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385988', 'tblTempUsageDetail_20' ) start [2025-02-02 13:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385988', 'tblTempUsageDetail_20' ) end [2025-02-02 13:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:28:23] Production.INFO: ==3467== Releasing lock... [2025-02-02 13:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:28:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-02 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:29:05 [end_date_ymd] => 2025-02-02 13:29:05 [RateCDR] => 1 ) [2025-02-02 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-02 10:29:05' and `end` < '2025-02-02 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-02 13:29:19] Production.INFO: count ==1484 [2025-02-02 13:29:19] Production.ERROR: pbx CDR StartTime 2025-02-02 10:29:05 - End Time 2025-02-02 13:29:05 [2025-02-02 13:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385993', 'tblTempUsageDetail_20' ) start [2025-02-02 13:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385993', 'tblTempUsageDetail_20' ) end [2025-02-02 13:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385993', 'tblTempVendorCDR_20' ) start [2025-02-02 13:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385993', 'tblTempVendorCDR_20' ) end [2025-02-02 13:29:19] Production.INFO: ProcessCDR(1,14385993,1,1,2) [2025-02-02 13:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385993', 'tblTempUsageDetail_20' ) start [2025-02-02 13:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385993', 'tblTempUsageDetail_20' ) end [2025-02-02 13:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:29:22] Production.INFO: ==3602== Releasing lock... [2025-02-02 13:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:29:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-02 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:30:06 [end_date_ymd] => 2025-02-02 13:30:06 [RateCDR] => 1 ) [2025-02-02 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-02 10:30:06' and `end` < '2025-02-02 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-02 13:30:19] Production.INFO: count ==1484 [2025-02-02 13:30:19] Production.ERROR: pbx CDR StartTime 2025-02-02 10:30:06 - End Time 2025-02-02 13:30:06 [2025-02-02 13:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385998', 'tblTempUsageDetail_20' ) start [2025-02-02 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14385998', 'tblTempUsageDetail_20' ) end [2025-02-02 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385998', 'tblTempVendorCDR_20' ) start [2025-02-02 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14385998', 'tblTempVendorCDR_20' ) end [2025-02-02 13:30:19] Production.INFO: ProcessCDR(1,14385998,1,1,2) [2025-02-02 13:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14385998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14385998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14385998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14385998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385998', 'tblTempUsageDetail_20' ) start [2025-02-02 13:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14385998', 'tblTempUsageDetail_20' ) end [2025-02-02 13:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:30:22] Production.INFO: ==3734== Releasing lock... [2025-02-02 13:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:30:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-02 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:31:05 [end_date_ymd] => 2025-02-02 13:31:05 [RateCDR] => 1 ) [2025-02-02 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-02 10:31:05' and `end` < '2025-02-02 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-02 13:31:21] Production.INFO: count ==1488 [2025-02-02 13:31:21] Production.ERROR: pbx CDR StartTime 2025-02-02 10:31:05 - End Time 2025-02-02 13:31:05 [2025-02-02 13:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386004', 'tblTempUsageDetail_20' ) start [2025-02-02 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386004', 'tblTempUsageDetail_20' ) end [2025-02-02 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386004', 'tblTempVendorCDR_20' ) start [2025-02-02 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386004', 'tblTempVendorCDR_20' ) end [2025-02-02 13:31:21] Production.INFO: ProcessCDR(1,14386004,1,1,2) [2025-02-02 13:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386004', 'tblTempUsageDetail_20' ) start [2025-02-02 13:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386004', 'tblTempUsageDetail_20' ) end [2025-02-02 13:31:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:31:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:31:24] Production.INFO: ==3858== Releasing lock... [2025-02-02 13:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:31:24] Production.INFO: 39 MB #Memory Used# [2025-02-02 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:32:05 [end_date_ymd] => 2025-02-02 13:32:05 [RateCDR] => 1 ) [2025-02-02 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-02 10:32:05' and `end` < '2025-02-02 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-02 13:32:18] Production.INFO: count ==1445 [2025-02-02 13:32:18] Production.ERROR: pbx CDR StartTime 2025-02-02 10:32:05 - End Time 2025-02-02 13:32:05 [2025-02-02 13:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386009', 'tblTempUsageDetail_20' ) start [2025-02-02 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386009', 'tblTempUsageDetail_20' ) end [2025-02-02 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386009', 'tblTempVendorCDR_20' ) start [2025-02-02 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386009', 'tblTempVendorCDR_20' ) end [2025-02-02 13:32:18] Production.INFO: ProcessCDR(1,14386009,1,1,2) [2025-02-02 13:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386009', 'tblTempUsageDetail_20' ) start [2025-02-02 13:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386009', 'tblTempUsageDetail_20' ) end [2025-02-02 13:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:32:23] Production.INFO: ==3985== Releasing lock... [2025-02-02 13:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:32:23] Production.INFO: 39 MB #Memory Used# [2025-02-02 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:33:05 [end_date_ymd] => 2025-02-02 13:33:05 [RateCDR] => 1 ) [2025-02-02 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-02 10:33:05' and `end` < '2025-02-02 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-02 13:33:20] Production.INFO: count ==1387 [2025-02-02 13:33:21] Production.ERROR: pbx CDR StartTime 2025-02-02 10:33:05 - End Time 2025-02-02 13:33:05 [2025-02-02 13:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386014', 'tblTempUsageDetail_20' ) start [2025-02-02 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386014', 'tblTempUsageDetail_20' ) end [2025-02-02 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386014', 'tblTempVendorCDR_20' ) start [2025-02-02 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386014', 'tblTempVendorCDR_20' ) end [2025-02-02 13:33:21] Production.INFO: ProcessCDR(1,14386014,1,1,2) [2025-02-02 13:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386014', 'tblTempUsageDetail_20' ) start [2025-02-02 13:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386014', 'tblTempUsageDetail_20' ) end [2025-02-02 13:33:25] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:33:25] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:33:25] Production.INFO: ==4113== Releasing lock... [2025-02-02 13:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:33:25] Production.INFO: 39 MB #Memory Used# [2025-02-02 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:34:05 [end_date_ymd] => 2025-02-02 13:34:05 [RateCDR] => 1 ) [2025-02-02 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-02 10:34:05' and `end` < '2025-02-02 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-02 13:34:18] Production.INFO: count ==1388 [2025-02-02 13:34:19] Production.ERROR: pbx CDR StartTime 2025-02-02 10:34:05 - End Time 2025-02-02 13:34:05 [2025-02-02 13:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386019', 'tblTempUsageDetail_20' ) start [2025-02-02 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386019', 'tblTempUsageDetail_20' ) end [2025-02-02 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386019', 'tblTempVendorCDR_20' ) start [2025-02-02 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386019', 'tblTempVendorCDR_20' ) end [2025-02-02 13:34:19] Production.INFO: ProcessCDR(1,14386019,1,1,2) [2025-02-02 13:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386019', 'tblTempUsageDetail_20' ) start [2025-02-02 13:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386019', 'tblTempUsageDetail_20' ) end [2025-02-02 13:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:34:23] Production.INFO: ==4245== Releasing lock... [2025-02-02 13:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:34:23] Production.INFO: 39 MB #Memory Used# [2025-02-02 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:35:05 [end_date_ymd] => 2025-02-02 13:35:05 [RateCDR] => 1 ) [2025-02-02 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-02 10:35:05' and `end` < '2025-02-02 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-02 13:35:18] Production.INFO: count ==1388 [2025-02-02 13:35:19] Production.ERROR: pbx CDR StartTime 2025-02-02 10:35:05 - End Time 2025-02-02 13:35:05 [2025-02-02 13:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386024', 'tblTempUsageDetail_20' ) start [2025-02-02 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386024', 'tblTempUsageDetail_20' ) end [2025-02-02 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386024', 'tblTempVendorCDR_20' ) start [2025-02-02 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386024', 'tblTempVendorCDR_20' ) end [2025-02-02 13:35:19] Production.INFO: ProcessCDR(1,14386024,1,1,2) [2025-02-02 13:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386024', 'tblTempUsageDetail_20' ) start [2025-02-02 13:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386024', 'tblTempUsageDetail_20' ) end [2025-02-02 13:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:35:23] Production.INFO: ==4368== Releasing lock... [2025-02-02 13:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:35:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-02 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:36:05 [end_date_ymd] => 2025-02-02 13:36:05 [RateCDR] => 1 ) [2025-02-02 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-02 10:36:05' and `end` < '2025-02-02 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-02 13:36:18] Production.INFO: count ==1420 [2025-02-02 13:36:18] Production.ERROR: pbx CDR StartTime 2025-02-02 10:36:05 - End Time 2025-02-02 13:36:05 [2025-02-02 13:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386029', 'tblTempUsageDetail_20' ) start [2025-02-02 13:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386029', 'tblTempUsageDetail_20' ) end [2025-02-02 13:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386029', 'tblTempVendorCDR_20' ) start [2025-02-02 13:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386029', 'tblTempVendorCDR_20' ) end [2025-02-02 13:36:18] Production.INFO: ProcessCDR(1,14386029,1,1,2) [2025-02-02 13:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386029', 'tblTempUsageDetail_20' ) start [2025-02-02 13:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386029', 'tblTempUsageDetail_20' ) end [2025-02-02 13:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:36:23] Production.INFO: ==4492== Releasing lock... [2025-02-02 13:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:36:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:37:05 [end_date_ymd] => 2025-02-02 13:37:05 [RateCDR] => 1 ) [2025-02-02 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-02 10:37:05' and `end` < '2025-02-02 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-02 13:37:18] Production.INFO: count ==1420 [2025-02-02 13:37:19] Production.ERROR: pbx CDR StartTime 2025-02-02 10:37:05 - End Time 2025-02-02 13:37:05 [2025-02-02 13:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386034', 'tblTempUsageDetail_20' ) start [2025-02-02 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386034', 'tblTempUsageDetail_20' ) end [2025-02-02 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386034', 'tblTempVendorCDR_20' ) start [2025-02-02 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386034', 'tblTempVendorCDR_20' ) end [2025-02-02 13:37:19] Production.INFO: ProcessCDR(1,14386034,1,1,2) [2025-02-02 13:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386034', 'tblTempUsageDetail_20' ) start [2025-02-02 13:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386034', 'tblTempUsageDetail_20' ) end [2025-02-02 13:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:37:22] Production.INFO: ==4621== Releasing lock... [2025-02-02 13:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:37:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:38:05 [end_date_ymd] => 2025-02-02 13:38:05 [RateCDR] => 1 ) [2025-02-02 13:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 10:38:05' and `end` < '2025-02-02 13:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 13:38:19] Production.INFO: count ==1333 [2025-02-02 13:38:19] Production.ERROR: pbx CDR StartTime 2025-02-02 10:38:05 - End Time 2025-02-02 13:38:05 [2025-02-02 13:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386039', 'tblTempUsageDetail_20' ) start [2025-02-02 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386039', 'tblTempUsageDetail_20' ) end [2025-02-02 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386039', 'tblTempVendorCDR_20' ) start [2025-02-02 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386039', 'tblTempVendorCDR_20' ) end [2025-02-02 13:38:19] Production.INFO: ProcessCDR(1,14386039,1,1,2) [2025-02-02 13:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386039', 'tblTempUsageDetail_20' ) start [2025-02-02 13:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386039', 'tblTempUsageDetail_20' ) end [2025-02-02 13:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:38:24] Production.INFO: ==4747== Releasing lock... [2025-02-02 13:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:38:24] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 13:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:39:06 [end_date_ymd] => 2025-02-02 13:39:06 [RateCDR] => 1 ) [2025-02-02 13:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 10:39:06' and `end` < '2025-02-02 13:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 13:39:18] Production.INFO: count ==1320 [2025-02-02 13:39:19] Production.ERROR: pbx CDR StartTime 2025-02-02 10:39:06 - End Time 2025-02-02 13:39:06 [2025-02-02 13:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386044', 'tblTempUsageDetail_20' ) start [2025-02-02 13:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386044', 'tblTempUsageDetail_20' ) end [2025-02-02 13:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386044', 'tblTempVendorCDR_20' ) start [2025-02-02 13:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386044', 'tblTempVendorCDR_20' ) end [2025-02-02 13:39:19] Production.INFO: ProcessCDR(1,14386044,1,1,2) [2025-02-02 13:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386044', 'tblTempUsageDetail_20' ) start [2025-02-02 13:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386044', 'tblTempUsageDetail_20' ) end [2025-02-02 13:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:39:23] Production.INFO: ==4868== Releasing lock... [2025-02-02 13:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:39:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:40:06 [end_date_ymd] => 2025-02-02 13:40:06 [RateCDR] => 1 ) [2025-02-02 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-02 10:40:06' and `end` < '2025-02-02 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-02 13:40:18] Production.INFO: count ==1320 [2025-02-02 13:40:19] Production.ERROR: pbx CDR StartTime 2025-02-02 10:40:06 - End Time 2025-02-02 13:40:06 [2025-02-02 13:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386049', 'tblTempUsageDetail_20' ) start [2025-02-02 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386049', 'tblTempUsageDetail_20' ) end [2025-02-02 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386049', 'tblTempVendorCDR_20' ) start [2025-02-02 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386049', 'tblTempVendorCDR_20' ) end [2025-02-02 13:40:19] Production.INFO: ProcessCDR(1,14386049,1,1,2) [2025-02-02 13:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386049', 'tblTempUsageDetail_20' ) start [2025-02-02 13:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386049', 'tblTempUsageDetail_20' ) end [2025-02-02 13:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:40:24] Production.INFO: ==4989== Releasing lock... [2025-02-02 13:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:40:24] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:41:05 [end_date_ymd] => 2025-02-02 13:41:05 [RateCDR] => 1 ) [2025-02-02 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-02 10:41:05' and `end` < '2025-02-02 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-02 13:41:18] Production.INFO: count ==1334 [2025-02-02 13:41:18] Production.ERROR: pbx CDR StartTime 2025-02-02 10:41:05 - End Time 2025-02-02 13:41:05 [2025-02-02 13:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386055', 'tblTempUsageDetail_20' ) start [2025-02-02 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386055', 'tblTempUsageDetail_20' ) end [2025-02-02 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386055', 'tblTempVendorCDR_20' ) start [2025-02-02 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386055', 'tblTempVendorCDR_20' ) end [2025-02-02 13:41:18] Production.INFO: ProcessCDR(1,14386055,1,1,2) [2025-02-02 13:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386055', 'tblTempUsageDetail_20' ) start [2025-02-02 13:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386055', 'tblTempUsageDetail_20' ) end [2025-02-02 13:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:41:21] Production.INFO: ==5089== Releasing lock... [2025-02-02 13:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:41:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:42:05 [end_date_ymd] => 2025-02-02 13:42:05 [RateCDR] => 1 ) [2025-02-02 13:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 10:42:05' and `end` < '2025-02-02 13:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 13:42:18] Production.INFO: count ==1335 [2025-02-02 13:42:18] Production.ERROR: pbx CDR StartTime 2025-02-02 10:42:05 - End Time 2025-02-02 13:42:05 [2025-02-02 13:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386060', 'tblTempUsageDetail_20' ) start [2025-02-02 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386060', 'tblTempUsageDetail_20' ) end [2025-02-02 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386060', 'tblTempVendorCDR_20' ) start [2025-02-02 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386060', 'tblTempVendorCDR_20' ) end [2025-02-02 13:42:18] Production.INFO: ProcessCDR(1,14386060,1,1,2) [2025-02-02 13:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386060', 'tblTempUsageDetail_20' ) start [2025-02-02 13:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386060', 'tblTempUsageDetail_20' ) end [2025-02-02 13:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:42:23] Production.INFO: ==5164== Releasing lock... [2025-02-02 13:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:42:23] Production.INFO: 38 MB #Memory Used# [2025-02-02 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:43:05 [end_date_ymd] => 2025-02-02 13:43:05 [RateCDR] => 1 ) [2025-02-02 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-02 10:43:05' and `end` < '2025-02-02 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-02 13:43:19] Production.INFO: count ==1339 [2025-02-02 13:43:19] Production.ERROR: pbx CDR StartTime 2025-02-02 10:43:05 - End Time 2025-02-02 13:43:05 [2025-02-02 13:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386065', 'tblTempUsageDetail_20' ) start [2025-02-02 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386065', 'tblTempUsageDetail_20' ) end [2025-02-02 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386065', 'tblTempVendorCDR_20' ) start [2025-02-02 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386065', 'tblTempVendorCDR_20' ) end [2025-02-02 13:43:19] Production.INFO: ProcessCDR(1,14386065,1,1,2) [2025-02-02 13:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386065', 'tblTempUsageDetail_20' ) start [2025-02-02 13:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386065', 'tblTempUsageDetail_20' ) end [2025-02-02 13:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:43:22] Production.INFO: ==5247== Releasing lock... [2025-02-02 13:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:43:22] Production.INFO: 38 MB #Memory Used# [2025-02-02 13:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:44:06 [end_date_ymd] => 2025-02-02 13:44:06 [RateCDR] => 1 ) [2025-02-02 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-02 10:44:06' and `end` < '2025-02-02 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-02 13:44:20] Production.INFO: count ==1340 [2025-02-02 13:44:20] Production.ERROR: pbx CDR StartTime 2025-02-02 10:44:06 - End Time 2025-02-02 13:44:06 [2025-02-02 13:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386070', 'tblTempUsageDetail_20' ) start [2025-02-02 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386070', 'tblTempUsageDetail_20' ) end [2025-02-02 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386070', 'tblTempVendorCDR_20' ) start [2025-02-02 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386070', 'tblTempVendorCDR_20' ) end [2025-02-02 13:44:21] Production.INFO: ProcessCDR(1,14386070,1,1,2) [2025-02-02 13:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386070', 'tblTempUsageDetail_20' ) start [2025-02-02 13:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386070', 'tblTempUsageDetail_20' ) end [2025-02-02 13:44:25] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:44:25] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:44:25] Production.INFO: ==5324== Releasing lock... [2025-02-02 13:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:44:25] Production.INFO: 38 MB #Memory Used# [2025-02-02 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:45:05 [end_date_ymd] => 2025-02-02 13:45:05 [RateCDR] => 1 ) [2025-02-02 13:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 10:45:05' and `end` < '2025-02-02 13:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 13:45:18] Production.INFO: count ==1341 [2025-02-02 13:45:18] Production.ERROR: pbx CDR StartTime 2025-02-02 10:45:05 - End Time 2025-02-02 13:45:05 [2025-02-02 13:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386075', 'tblTempUsageDetail_20' ) start [2025-02-02 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386075', 'tblTempUsageDetail_20' ) end [2025-02-02 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386075', 'tblTempVendorCDR_20' ) start [2025-02-02 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386075', 'tblTempVendorCDR_20' ) end [2025-02-02 13:45:18] Production.INFO: ProcessCDR(1,14386075,1,1,2) [2025-02-02 13:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386075', 'tblTempUsageDetail_20' ) start [2025-02-02 13:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386075', 'tblTempUsageDetail_20' ) end [2025-02-02 13:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:45:23] Production.INFO: ==5438== Releasing lock... [2025-02-02 13:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:45:23] Production.INFO: 38 MB #Memory Used# [2025-02-02 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:46:05 [end_date_ymd] => 2025-02-02 13:46:05 [RateCDR] => 1 ) [2025-02-02 13:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 10:46:05' and `end` < '2025-02-02 13:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 13:46:18] Production.INFO: count ==1342 [2025-02-02 13:46:18] Production.ERROR: pbx CDR StartTime 2025-02-02 10:46:05 - End Time 2025-02-02 13:46:05 [2025-02-02 13:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386080', 'tblTempUsageDetail_20' ) start [2025-02-02 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386080', 'tblTempUsageDetail_20' ) end [2025-02-02 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386080', 'tblTempVendorCDR_20' ) start [2025-02-02 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386080', 'tblTempVendorCDR_20' ) end [2025-02-02 13:46:19] Production.INFO: ProcessCDR(1,14386080,1,1,2) [2025-02-02 13:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386080', 'tblTempUsageDetail_20' ) start [2025-02-02 13:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386080', 'tblTempUsageDetail_20' ) end [2025-02-02 13:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:46:23] Production.INFO: ==5519== Releasing lock... [2025-02-02 13:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:46:23] Production.INFO: 38 MB #Memory Used# [2025-02-02 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:47:05 [end_date_ymd] => 2025-02-02 13:47:05 [RateCDR] => 1 ) [2025-02-02 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-02 10:47:05' and `end` < '2025-02-02 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-02 13:47:18] Production.INFO: count ==1346 [2025-02-02 13:47:18] Production.ERROR: pbx CDR StartTime 2025-02-02 10:47:05 - End Time 2025-02-02 13:47:05 [2025-02-02 13:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386085', 'tblTempUsageDetail_20' ) start [2025-02-02 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386085', 'tblTempUsageDetail_20' ) end [2025-02-02 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386085', 'tblTempVendorCDR_20' ) start [2025-02-02 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386085', 'tblTempVendorCDR_20' ) end [2025-02-02 13:47:18] Production.INFO: ProcessCDR(1,14386085,1,1,2) [2025-02-02 13:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386085', 'tblTempUsageDetail_20' ) start [2025-02-02 13:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386085', 'tblTempUsageDetail_20' ) end [2025-02-02 13:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:47:21] Production.INFO: ==5593== Releasing lock... [2025-02-02 13:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:47:21] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:48:05 [end_date_ymd] => 2025-02-02 13:48:05 [RateCDR] => 1 ) [2025-02-02 13:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 10:48:05' and `end` < '2025-02-02 13:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 13:48:18] Production.INFO: count ==1347 [2025-02-02 13:48:19] Production.ERROR: pbx CDR StartTime 2025-02-02 10:48:05 - End Time 2025-02-02 13:48:05 [2025-02-02 13:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386090', 'tblTempUsageDetail_20' ) start [2025-02-02 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386090', 'tblTempUsageDetail_20' ) end [2025-02-02 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386090', 'tblTempVendorCDR_20' ) start [2025-02-02 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386090', 'tblTempVendorCDR_20' ) end [2025-02-02 13:48:19] Production.INFO: ProcessCDR(1,14386090,1,1,2) [2025-02-02 13:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386090', 'tblTempUsageDetail_20' ) start [2025-02-02 13:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386090', 'tblTempUsageDetail_20' ) end [2025-02-02 13:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:48:23] Production.INFO: ==5675== Releasing lock... [2025-02-02 13:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:48:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:49:05 [end_date_ymd] => 2025-02-02 13:49:05 [RateCDR] => 1 ) [2025-02-02 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-02 10:49:05' and `end` < '2025-02-02 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-02 13:49:17] Production.INFO: count ==1347 [2025-02-02 13:49:18] Production.ERROR: pbx CDR StartTime 2025-02-02 10:49:05 - End Time 2025-02-02 13:49:05 [2025-02-02 13:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386095', 'tblTempUsageDetail_20' ) start [2025-02-02 13:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386095', 'tblTempUsageDetail_20' ) end [2025-02-02 13:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386095', 'tblTempVendorCDR_20' ) start [2025-02-02 13:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386095', 'tblTempVendorCDR_20' ) end [2025-02-02 13:49:18] Production.INFO: ProcessCDR(1,14386095,1,1,2) [2025-02-02 13:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386095', 'tblTempUsageDetail_20' ) start [2025-02-02 13:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386095', 'tblTempUsageDetail_20' ) end [2025-02-02 13:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:49:21] Production.INFO: ==5751== Releasing lock... [2025-02-02 13:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:49:21] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:50:06 [end_date_ymd] => 2025-02-02 13:50:06 [RateCDR] => 1 ) [2025-02-02 13:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 10:50:06' and `end` < '2025-02-02 13:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 13:50:19] Production.INFO: count ==1347 [2025-02-02 13:50:19] Production.ERROR: pbx CDR StartTime 2025-02-02 10:50:06 - End Time 2025-02-02 13:50:06 [2025-02-02 13:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386101', 'tblTempUsageDetail_20' ) start [2025-02-02 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386101', 'tblTempUsageDetail_20' ) end [2025-02-02 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386101', 'tblTempVendorCDR_20' ) start [2025-02-02 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386101', 'tblTempVendorCDR_20' ) end [2025-02-02 13:50:19] Production.INFO: ProcessCDR(1,14386101,1,1,2) [2025-02-02 13:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386101', 'tblTempUsageDetail_20' ) start [2025-02-02 13:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386101', 'tblTempUsageDetail_20' ) end [2025-02-02 13:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:50:22] Production.INFO: ==5833== Releasing lock... [2025-02-02 13:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:50:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:51:05 [end_date_ymd] => 2025-02-02 13:51:05 [RateCDR] => 1 ) [2025-02-02 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-02 10:51:05' and `end` < '2025-02-02 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-02 13:51:18] Production.INFO: count ==1306 [2025-02-02 13:51:19] Production.ERROR: pbx CDR StartTime 2025-02-02 10:51:05 - End Time 2025-02-02 13:51:05 [2025-02-02 13:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386106', 'tblTempUsageDetail_20' ) start [2025-02-02 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386106', 'tblTempUsageDetail_20' ) end [2025-02-02 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386106', 'tblTempVendorCDR_20' ) start [2025-02-02 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386106', 'tblTempVendorCDR_20' ) end [2025-02-02 13:51:19] Production.INFO: ProcessCDR(1,14386106,1,1,2) [2025-02-02 13:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386106', 'tblTempUsageDetail_20' ) start [2025-02-02 13:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386106', 'tblTempUsageDetail_20' ) end [2025-02-02 13:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:51:22] Production.INFO: ==5918== Releasing lock... [2025-02-02 13:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:51:22] Production.INFO: 38 MB #Memory Used# [2025-02-02 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:52:05 [end_date_ymd] => 2025-02-02 13:52:05 [RateCDR] => 1 ) [2025-02-02 13:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 10:52:05' and `end` < '2025-02-02 13:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 13:52:18] Production.INFO: count ==1240 [2025-02-02 13:52:19] Production.ERROR: pbx CDR StartTime 2025-02-02 10:52:05 - End Time 2025-02-02 13:52:05 [2025-02-02 13:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386111', 'tblTempUsageDetail_20' ) start [2025-02-02 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386111', 'tblTempUsageDetail_20' ) end [2025-02-02 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386111', 'tblTempVendorCDR_20' ) start [2025-02-02 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386111', 'tblTempVendorCDR_20' ) end [2025-02-02 13:52:19] Production.INFO: ProcessCDR(1,14386111,1,1,2) [2025-02-02 13:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386111', 'tblTempUsageDetail_20' ) start [2025-02-02 13:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386111', 'tblTempUsageDetail_20' ) end [2025-02-02 13:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:52:22] Production.INFO: ==5990== Releasing lock... [2025-02-02 13:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:52:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-02 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:53:05 [end_date_ymd] => 2025-02-02 13:53:05 [RateCDR] => 1 ) [2025-02-02 13:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 10:53:05' and `end` < '2025-02-02 13:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 13:53:18] Production.INFO: count ==1242 [2025-02-02 13:53:19] Production.ERROR: pbx CDR StartTime 2025-02-02 10:53:05 - End Time 2025-02-02 13:53:05 [2025-02-02 13:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386116', 'tblTempUsageDetail_20' ) start [2025-02-02 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386116', 'tblTempUsageDetail_20' ) end [2025-02-02 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386116', 'tblTempVendorCDR_20' ) start [2025-02-02 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386116', 'tblTempVendorCDR_20' ) end [2025-02-02 13:53:19] Production.INFO: ProcessCDR(1,14386116,1,1,2) [2025-02-02 13:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386116', 'tblTempUsageDetail_20' ) start [2025-02-02 13:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386116', 'tblTempUsageDetail_20' ) end [2025-02-02 13:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:53:23] Production.INFO: ==6075== Releasing lock... [2025-02-02 13:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:53:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:54:05 [end_date_ymd] => 2025-02-02 13:54:05 [RateCDR] => 1 ) [2025-02-02 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-02 10:54:05' and `end` < '2025-02-02 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-02 13:54:18] Production.INFO: count ==1242 [2025-02-02 13:54:18] Production.ERROR: pbx CDR StartTime 2025-02-02 10:54:05 - End Time 2025-02-02 13:54:05 [2025-02-02 13:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386121', 'tblTempUsageDetail_20' ) start [2025-02-02 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386121', 'tblTempUsageDetail_20' ) end [2025-02-02 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386121', 'tblTempVendorCDR_20' ) start [2025-02-02 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386121', 'tblTempVendorCDR_20' ) end [2025-02-02 13:54:18] Production.INFO: ProcessCDR(1,14386121,1,1,2) [2025-02-02 13:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386121', 'tblTempUsageDetail_20' ) start [2025-02-02 13:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386121', 'tblTempUsageDetail_20' ) end [2025-02-02 13:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:54:21] Production.INFO: ==6158== Releasing lock... [2025-02-02 13:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:54:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:55:05 [end_date_ymd] => 2025-02-02 13:55:05 [RateCDR] => 1 ) [2025-02-02 13:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 10:55:05' and `end` < '2025-02-02 13:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 13:55:19] Production.INFO: count ==1234 [2025-02-02 13:55:19] Production.ERROR: pbx CDR StartTime 2025-02-02 10:55:05 - End Time 2025-02-02 13:55:05 [2025-02-02 13:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386126', 'tblTempUsageDetail_20' ) start [2025-02-02 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386126', 'tblTempUsageDetail_20' ) end [2025-02-02 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386126', 'tblTempVendorCDR_20' ) start [2025-02-02 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386126', 'tblTempVendorCDR_20' ) end [2025-02-02 13:55:19] Production.INFO: ProcessCDR(1,14386126,1,1,2) [2025-02-02 13:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386126', 'tblTempUsageDetail_20' ) start [2025-02-02 13:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386126', 'tblTempUsageDetail_20' ) end [2025-02-02 13:55:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:55:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:55:24] Production.INFO: ==6238== Releasing lock... [2025-02-02 13:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:55:24] Production.INFO: 37.5 MB #Memory Used# [2025-02-02 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:56:05 [end_date_ymd] => 2025-02-02 13:56:05 [RateCDR] => 1 ) [2025-02-02 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-02 10:56:05' and `end` < '2025-02-02 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-02 13:56:19] Production.INFO: count ==1137 [2025-02-02 13:56:19] Production.ERROR: pbx CDR StartTime 2025-02-02 10:56:05 - End Time 2025-02-02 13:56:05 [2025-02-02 13:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386131', 'tblTempUsageDetail_20' ) start [2025-02-02 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386131', 'tblTempUsageDetail_20' ) end [2025-02-02 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386131', 'tblTempVendorCDR_20' ) start [2025-02-02 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386131', 'tblTempVendorCDR_20' ) end [2025-02-02 13:56:19] Production.INFO: ProcessCDR(1,14386131,1,1,2) [2025-02-02 13:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386131', 'tblTempUsageDetail_20' ) start [2025-02-02 13:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386131', 'tblTempUsageDetail_20' ) end [2025-02-02 13:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:56:23] Production.INFO: ==6323== Releasing lock... [2025-02-02 13:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:56:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:57:05 [end_date_ymd] => 2025-02-02 13:57:05 [RateCDR] => 1 ) [2025-02-02 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-02 10:57:05' and `end` < '2025-02-02 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-02 13:57:20] Production.INFO: count ==1135 [2025-02-02 13:57:20] Production.ERROR: pbx CDR StartTime 2025-02-02 10:57:05 - End Time 2025-02-02 13:57:05 [2025-02-02 13:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386136', 'tblTempUsageDetail_20' ) start [2025-02-02 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386136', 'tblTempUsageDetail_20' ) end [2025-02-02 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386136', 'tblTempVendorCDR_20' ) start [2025-02-02 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386136', 'tblTempVendorCDR_20' ) end [2025-02-02 13:57:20] Production.INFO: ProcessCDR(1,14386136,1,1,2) [2025-02-02 13:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386136', 'tblTempUsageDetail_20' ) start [2025-02-02 13:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386136', 'tblTempUsageDetail_20' ) end [2025-02-02 13:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:57:23] Production.INFO: ==6406== Releasing lock... [2025-02-02 13:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:57:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:58:05 [end_date_ymd] => 2025-02-02 13:58:05 [RateCDR] => 1 ) [2025-02-02 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-02 10:58:05' and `end` < '2025-02-02 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-02 13:58:18] Production.INFO: count ==1136 [2025-02-02 13:58:18] Production.ERROR: pbx CDR StartTime 2025-02-02 10:58:05 - End Time 2025-02-02 13:58:05 [2025-02-02 13:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386141', 'tblTempUsageDetail_20' ) start [2025-02-02 13:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386141', 'tblTempUsageDetail_20' ) end [2025-02-02 13:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386141', 'tblTempVendorCDR_20' ) start [2025-02-02 13:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386141', 'tblTempVendorCDR_20' ) end [2025-02-02 13:58:18] Production.INFO: ProcessCDR(1,14386141,1,1,2) [2025-02-02 13:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386141', 'tblTempUsageDetail_20' ) start [2025-02-02 13:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386141', 'tblTempUsageDetail_20' ) end [2025-02-02 13:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:58:23] Production.INFO: ==6495== Releasing lock... [2025-02-02 13:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:58:23] Production.INFO: 37 MB #Memory Used# [2025-02-02 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 10:59:05 [end_date_ymd] => 2025-02-02 13:59:05 [RateCDR] => 1 ) [2025-02-02 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-02 10:59:05' and `end` < '2025-02-02 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-02 13:59:21] Production.INFO: count ==1133 [2025-02-02 13:59:21] Production.ERROR: pbx CDR StartTime 2025-02-02 10:59:05 - End Time 2025-02-02 13:59:05 [2025-02-02 13:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386146', 'tblTempUsageDetail_20' ) start [2025-02-02 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386146', 'tblTempUsageDetail_20' ) end [2025-02-02 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386146', 'tblTempVendorCDR_20' ) start [2025-02-02 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386146', 'tblTempVendorCDR_20' ) end [2025-02-02 13:59:21] Production.INFO: ProcessCDR(1,14386146,1,1,2) [2025-02-02 13:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 13:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 13:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386146', 'tblTempUsageDetail_20' ) start [2025-02-02 13:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386146', 'tblTempUsageDetail_20' ) end [2025-02-02 13:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 13:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 13:59:24] Production.INFO: ==6573== Releasing lock... [2025-02-02 13:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 13:59:24] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:00:06 [end_date_ymd] => 2025-02-02 14:00:06 [RateCDR] => 1 ) [2025-02-02 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-02 11:00:06' and `end` < '2025-02-02 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-02 14:00:19] Production.INFO: count ==1135 [2025-02-02 14:00:19] Production.ERROR: pbx CDR StartTime 2025-02-02 11:00:06 - End Time 2025-02-02 14:00:06 [2025-02-02 14:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386152', 'tblTempUsageDetail_20' ) start [2025-02-02 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386152', 'tblTempUsageDetail_20' ) end [2025-02-02 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386152', 'tblTempVendorCDR_20' ) start [2025-02-02 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386152', 'tblTempVendorCDR_20' ) end [2025-02-02 14:00:19] Production.INFO: ProcessCDR(1,14386152,1,1,2) [2025-02-02 14:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386152', 'tblTempUsageDetail_20' ) start [2025-02-02 14:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386152', 'tblTempUsageDetail_20' ) end [2025-02-02 14:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:00:24] Production.INFO: ==6698== Releasing lock... [2025-02-02 14:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:00:24] Production.INFO: 37 MB #Memory Used# [2025-02-02 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:01:05 [end_date_ymd] => 2025-02-02 14:01:05 [RateCDR] => 1 ) [2025-02-02 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-02 11:01:05' and `end` < '2025-02-02 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-02 14:01:18] Production.INFO: count ==1142 [2025-02-02 14:01:18] Production.ERROR: pbx CDR StartTime 2025-02-02 11:01:05 - End Time 2025-02-02 14:01:05 [2025-02-02 14:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386157', 'tblTempUsageDetail_20' ) start [2025-02-02 14:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386157', 'tblTempUsageDetail_20' ) end [2025-02-02 14:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386157', 'tblTempVendorCDR_20' ) start [2025-02-02 14:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386157', 'tblTempVendorCDR_20' ) end [2025-02-02 14:01:18] Production.INFO: ProcessCDR(1,14386157,1,1,2) [2025-02-02 14:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386157', 'tblTempUsageDetail_20' ) start [2025-02-02 14:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386157', 'tblTempUsageDetail_20' ) end [2025-02-02 14:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:01:22] Production.INFO: ==6790== Releasing lock... [2025-02-02 14:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:01:22] Production.INFO: 37 MB #Memory Used# [2025-02-02 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:02:05 [end_date_ymd] => 2025-02-02 14:02:05 [RateCDR] => 1 ) [2025-02-02 14:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 11:02:05' and `end` < '2025-02-02 14:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 14:02:18] Production.INFO: count ==1146 [2025-02-02 14:02:18] Production.ERROR: pbx CDR StartTime 2025-02-02 11:02:05 - End Time 2025-02-02 14:02:05 [2025-02-02 14:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386162', 'tblTempUsageDetail_20' ) start [2025-02-02 14:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386162', 'tblTempUsageDetail_20' ) end [2025-02-02 14:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386162', 'tblTempVendorCDR_20' ) start [2025-02-02 14:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386162', 'tblTempVendorCDR_20' ) end [2025-02-02 14:02:18] Production.INFO: ProcessCDR(1,14386162,1,1,2) [2025-02-02 14:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386162', 'tblTempUsageDetail_20' ) start [2025-02-02 14:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386162', 'tblTempUsageDetail_20' ) end [2025-02-02 14:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:02:23] Production.INFO: ==6872== Releasing lock... [2025-02-02 14:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:02:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:03:05 [end_date_ymd] => 2025-02-02 14:03:05 [RateCDR] => 1 ) [2025-02-02 14:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 11:03:05' and `end` < '2025-02-02 14:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 14:03:18] Production.INFO: count ==1154 [2025-02-02 14:03:18] Production.ERROR: pbx CDR StartTime 2025-02-02 11:03:05 - End Time 2025-02-02 14:03:05 [2025-02-02 14:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386167', 'tblTempUsageDetail_20' ) start [2025-02-02 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386167', 'tblTempUsageDetail_20' ) end [2025-02-02 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386167', 'tblTempVendorCDR_20' ) start [2025-02-02 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386167', 'tblTempVendorCDR_20' ) end [2025-02-02 14:03:19] Production.INFO: ProcessCDR(1,14386167,1,1,2) [2025-02-02 14:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386167', 'tblTempUsageDetail_20' ) start [2025-02-02 14:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386167', 'tblTempUsageDetail_20' ) end [2025-02-02 14:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:03:22] Production.INFO: ==6954== Releasing lock... [2025-02-02 14:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:03:22] Production.INFO: 37 MB #Memory Used# [2025-02-02 14:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:04:06 [end_date_ymd] => 2025-02-02 14:04:06 [RateCDR] => 1 ) [2025-02-02 14:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 11:04:06' and `end` < '2025-02-02 14:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 14:04:20] Production.INFO: count ==1150 [2025-02-02 14:04:20] Production.ERROR: pbx CDR StartTime 2025-02-02 11:04:06 - End Time 2025-02-02 14:04:06 [2025-02-02 14:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386172', 'tblTempUsageDetail_20' ) start [2025-02-02 14:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386172', 'tblTempUsageDetail_20' ) end [2025-02-02 14:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386172', 'tblTempVendorCDR_20' ) start [2025-02-02 14:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386172', 'tblTempVendorCDR_20' ) end [2025-02-02 14:04:20] Production.INFO: ProcessCDR(1,14386172,1,1,2) [2025-02-02 14:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386172', 'tblTempUsageDetail_20' ) start [2025-02-02 14:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386172', 'tblTempUsageDetail_20' ) end [2025-02-02 14:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:04:23] Production.INFO: ==7043== Releasing lock... [2025-02-02 14:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:04:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:05:05 [end_date_ymd] => 2025-02-02 14:05:05 [RateCDR] => 1 ) [2025-02-02 14: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-02 11:05:05' and `end` < '2025-02-02 14: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-02 14:05:17] Production.INFO: count ==1164 [2025-02-02 14:05:18] Production.ERROR: pbx CDR StartTime 2025-02-02 11:05:05 - End Time 2025-02-02 14:05:05 [2025-02-02 14:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386177', 'tblTempUsageDetail_20' ) start [2025-02-02 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386177', 'tblTempUsageDetail_20' ) end [2025-02-02 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386177', 'tblTempVendorCDR_20' ) start [2025-02-02 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386177', 'tblTempVendorCDR_20' ) end [2025-02-02 14:05:18] Production.INFO: ProcessCDR(1,14386177,1,1,2) [2025-02-02 14:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386177', 'tblTempUsageDetail_20' ) start [2025-02-02 14:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386177', 'tblTempUsageDetail_20' ) end [2025-02-02 14:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:05:21] Production.INFO: ==7126== Releasing lock... [2025-02-02 14:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:05:21] Production.INFO: 37.5 MB #Memory Used# [2025-02-02 14:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:06:06 [end_date_ymd] => 2025-02-02 14:06:06 [RateCDR] => 1 ) [2025-02-02 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-02 11:06:06' and `end` < '2025-02-02 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-02 14:06:20] Production.INFO: count ==1167 [2025-02-02 14:06:20] Production.ERROR: pbx CDR StartTime 2025-02-02 11:06:06 - End Time 2025-02-02 14:06:06 [2025-02-02 14:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386182', 'tblTempUsageDetail_20' ) start [2025-02-02 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386182', 'tblTempUsageDetail_20' ) end [2025-02-02 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386182', 'tblTempVendorCDR_20' ) start [2025-02-02 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386182', 'tblTempVendorCDR_20' ) end [2025-02-02 14:06:20] Production.INFO: ProcessCDR(1,14386182,1,1,2) [2025-02-02 14:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386182', 'tblTempUsageDetail_20' ) start [2025-02-02 14:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386182', 'tblTempUsageDetail_20' ) end [2025-02-02 14:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:06:23] Production.INFO: ==7206== Releasing lock... [2025-02-02 14:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:06:23] Production.INFO: 37 MB #Memory Used# [2025-02-02 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:07:05 [end_date_ymd] => 2025-02-02 14:07:05 [RateCDR] => 1 ) [2025-02-02 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-02 11:07:05' and `end` < '2025-02-02 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-02 14:07:18] Production.INFO: count ==1169 [2025-02-02 14:07:18] Production.ERROR: pbx CDR StartTime 2025-02-02 11:07:05 - End Time 2025-02-02 14:07:05 [2025-02-02 14:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386187', 'tblTempUsageDetail_20' ) start [2025-02-02 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386187', 'tblTempUsageDetail_20' ) end [2025-02-02 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386187', 'tblTempVendorCDR_20' ) start [2025-02-02 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386187', 'tblTempVendorCDR_20' ) end [2025-02-02 14:07:18] Production.INFO: ProcessCDR(1,14386187,1,1,2) [2025-02-02 14:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386187', 'tblTempUsageDetail_20' ) start [2025-02-02 14:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386187', 'tblTempUsageDetail_20' ) end [2025-02-02 14:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:07:22] Production.INFO: ==7281== Releasing lock... [2025-02-02 14:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:07:22] Production.INFO: 37 MB #Memory Used# [2025-02-02 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:08:05 [end_date_ymd] => 2025-02-02 14:08:05 [RateCDR] => 1 ) [2025-02-02 14:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 11:08:05' and `end` < '2025-02-02 14:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 14:08:19] Production.INFO: count ==1171 [2025-02-02 14:08:20] Production.ERROR: pbx CDR StartTime 2025-02-02 11:08:05 - End Time 2025-02-02 14:08:05 [2025-02-02 14:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386192', 'tblTempUsageDetail_20' ) start [2025-02-02 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386192', 'tblTempUsageDetail_20' ) end [2025-02-02 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386192', 'tblTempVendorCDR_20' ) start [2025-02-02 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386192', 'tblTempVendorCDR_20' ) end [2025-02-02 14:08:20] Production.INFO: ProcessCDR(1,14386192,1,1,2) [2025-02-02 14:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386192', 'tblTempUsageDetail_20' ) start [2025-02-02 14:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386192', 'tblTempUsageDetail_20' ) end [2025-02-02 14:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:08:24] Production.INFO: ==7368== Releasing lock... [2025-02-02 14:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:08:24] Production.INFO: 37 MB #Memory Used# [2025-02-02 14:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:09:04 [end_date_ymd] => 2025-02-02 14:09:04 [RateCDR] => 1 ) [2025-02-02 14:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 11:09:04' and `end` < '2025-02-02 14:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 14:09:17] Production.INFO: count ==1171 [2025-02-02 14:09:18] Production.ERROR: pbx CDR StartTime 2025-02-02 11:09:04 - End Time 2025-02-02 14:09:04 [2025-02-02 14:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386197', 'tblTempUsageDetail_20' ) start [2025-02-02 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386197', 'tblTempUsageDetail_20' ) end [2025-02-02 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386197', 'tblTempVendorCDR_20' ) start [2025-02-02 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386197', 'tblTempVendorCDR_20' ) end [2025-02-02 14:09:18] Production.INFO: ProcessCDR(1,14386197,1,1,2) [2025-02-02 14:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386197', 'tblTempUsageDetail_20' ) start [2025-02-02 14:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386197', 'tblTempUsageDetail_20' ) end [2025-02-02 14:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:09:22] Production.INFO: ==7445== Releasing lock... [2025-02-02 14:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:09:22] Production.INFO: 37 MB #Memory Used# [2025-02-02 14:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:10:05 [end_date_ymd] => 2025-02-02 14:10:05 [RateCDR] => 1 ) [2025-02-02 14: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-02 11:10:05' and `end` < '2025-02-02 14: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-02 14:10:18] Production.INFO: count ==1176 [2025-02-02 14:10:19] Production.ERROR: pbx CDR StartTime 2025-02-02 11:10:05 - End Time 2025-02-02 14:10:05 [2025-02-02 14:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386203', 'tblTempUsageDetail_20' ) start [2025-02-02 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386203', 'tblTempUsageDetail_20' ) end [2025-02-02 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386203', 'tblTempVendorCDR_20' ) start [2025-02-02 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386203', 'tblTempVendorCDR_20' ) end [2025-02-02 14:10:19] Production.INFO: ProcessCDR(1,14386203,1,1,2) [2025-02-02 14:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386203', 'tblTempUsageDetail_20' ) start [2025-02-02 14:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386203', 'tblTempUsageDetail_20' ) end [2025-02-02 14:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:10:23] Production.INFO: ==7524== Releasing lock... [2025-02-02 14:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:10:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:11:05 [end_date_ymd] => 2025-02-02 14:11:05 [RateCDR] => 1 ) [2025-02-02 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-02 11:11:05' and `end` < '2025-02-02 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-02 14:11:18] Production.INFO: count ==1156 [2025-02-02 14:11:18] Production.ERROR: pbx CDR StartTime 2025-02-02 11:11:05 - End Time 2025-02-02 14:11:05 [2025-02-02 14:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386208', 'tblTempUsageDetail_20' ) start [2025-02-02 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386208', 'tblTempUsageDetail_20' ) end [2025-02-02 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386208', 'tblTempVendorCDR_20' ) start [2025-02-02 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386208', 'tblTempVendorCDR_20' ) end [2025-02-02 14:11:19] Production.INFO: ProcessCDR(1,14386208,1,1,2) [2025-02-02 14:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386208', 'tblTempUsageDetail_20' ) start [2025-02-02 14:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386208', 'tblTempUsageDetail_20' ) end [2025-02-02 14:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:11:23] Production.INFO: ==7608== Releasing lock... [2025-02-02 14:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:11:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:12:05 [end_date_ymd] => 2025-02-02 14:12:05 [RateCDR] => 1 ) [2025-02-02 14:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 11:12:05' and `end` < '2025-02-02 14:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 14:12:18] Production.INFO: count ==1152 [2025-02-02 14:12:18] Production.ERROR: pbx CDR StartTime 2025-02-02 11:12:05 - End Time 2025-02-02 14:12:05 [2025-02-02 14:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386213', 'tblTempUsageDetail_20' ) start [2025-02-02 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386213', 'tblTempUsageDetail_20' ) end [2025-02-02 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386213', 'tblTempVendorCDR_20' ) start [2025-02-02 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386213', 'tblTempVendorCDR_20' ) end [2025-02-02 14:12:18] Production.INFO: ProcessCDR(1,14386213,1,1,2) [2025-02-02 14:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386213', 'tblTempUsageDetail_20' ) start [2025-02-02 14:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386213', 'tblTempUsageDetail_20' ) end [2025-02-02 14:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:12:23] Production.INFO: ==7687== Releasing lock... [2025-02-02 14:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:12:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:13:05 [end_date_ymd] => 2025-02-02 14:13:05 [RateCDR] => 1 ) [2025-02-02 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-02 11:13:05' and `end` < '2025-02-02 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-02 14:13:18] Production.INFO: count ==1160 [2025-02-02 14:13:18] Production.ERROR: pbx CDR StartTime 2025-02-02 11:13:05 - End Time 2025-02-02 14:13:05 [2025-02-02 14:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386218', 'tblTempUsageDetail_20' ) start [2025-02-02 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386218', 'tblTempUsageDetail_20' ) end [2025-02-02 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386218', 'tblTempVendorCDR_20' ) start [2025-02-02 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386218', 'tblTempVendorCDR_20' ) end [2025-02-02 14:13:18] Production.INFO: ProcessCDR(1,14386218,1,1,2) [2025-02-02 14:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386218', 'tblTempUsageDetail_20' ) start [2025-02-02 14:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386218', 'tblTempUsageDetail_20' ) end [2025-02-02 14:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:13:22] Production.INFO: ==7763== Releasing lock... [2025-02-02 14:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:13:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:14:05 [end_date_ymd] => 2025-02-02 14:14:05 [RateCDR] => 1 ) [2025-02-02 14:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 11:14:05' and `end` < '2025-02-02 14:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 14:14:19] Production.INFO: count ==1159 [2025-02-02 14:14:19] Production.ERROR: pbx CDR StartTime 2025-02-02 11:14:05 - End Time 2025-02-02 14:14:05 [2025-02-02 14:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386223', 'tblTempUsageDetail_20' ) start [2025-02-02 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386223', 'tblTempUsageDetail_20' ) end [2025-02-02 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386223', 'tblTempVendorCDR_20' ) start [2025-02-02 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386223', 'tblTempVendorCDR_20' ) end [2025-02-02 14:14:19] Production.INFO: ProcessCDR(1,14386223,1,1,2) [2025-02-02 14:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386223', 'tblTempUsageDetail_20' ) start [2025-02-02 14:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386223', 'tblTempUsageDetail_20' ) end [2025-02-02 14:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:14:24] Production.INFO: ==7843== Releasing lock... [2025-02-02 14:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:14:24] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 14:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:15:06 [end_date_ymd] => 2025-02-02 14:15:06 [RateCDR] => 1 ) [2025-02-02 14: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-02 11:15:06' and `end` < '2025-02-02 14: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-02 14:15:18] Production.INFO: count ==1162 [2025-02-02 14:15:19] Production.ERROR: pbx CDR StartTime 2025-02-02 11:15:06 - End Time 2025-02-02 14:15:06 [2025-02-02 14:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386228', 'tblTempUsageDetail_20' ) start [2025-02-02 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386228', 'tblTempUsageDetail_20' ) end [2025-02-02 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386228', 'tblTempVendorCDR_20' ) start [2025-02-02 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386228', 'tblTempVendorCDR_20' ) end [2025-02-02 14:15:19] Production.INFO: ProcessCDR(1,14386228,1,1,2) [2025-02-02 14:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386228', 'tblTempUsageDetail_20' ) start [2025-02-02 14:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386228', 'tblTempUsageDetail_20' ) end [2025-02-02 14:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:15:23] Production.INFO: ==7921== Releasing lock... [2025-02-02 14:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:15:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:16:05 [end_date_ymd] => 2025-02-02 14:16:05 [RateCDR] => 1 ) [2025-02-02 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-02 11:16:05' and `end` < '2025-02-02 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-02 14:16:18] Production.INFO: count ==1163 [2025-02-02 14:16:18] Production.ERROR: pbx CDR StartTime 2025-02-02 11:16:05 - End Time 2025-02-02 14:16:05 [2025-02-02 14:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386233', 'tblTempUsageDetail_20' ) start [2025-02-02 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386233', 'tblTempUsageDetail_20' ) end [2025-02-02 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386233', 'tblTempVendorCDR_20' ) start [2025-02-02 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386233', 'tblTempVendorCDR_20' ) end [2025-02-02 14:16:18] Production.INFO: ProcessCDR(1,14386233,1,1,2) [2025-02-02 14:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386233', 'tblTempUsageDetail_20' ) start [2025-02-02 14:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386233', 'tblTempUsageDetail_20' ) end [2025-02-02 14:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:16:23] Production.INFO: ==8037== Releasing lock... [2025-02-02 14:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:16:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:17:05 [end_date_ymd] => 2025-02-02 14:17:05 [RateCDR] => 1 ) [2025-02-02 14:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 11:17:05' and `end` < '2025-02-02 14:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 14:17:19] Production.INFO: count ==1163 [2025-02-02 14:17:20] Production.ERROR: pbx CDR StartTime 2025-02-02 11:17:05 - End Time 2025-02-02 14:17:05 [2025-02-02 14:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386238', 'tblTempUsageDetail_20' ) start [2025-02-02 14:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386238', 'tblTempUsageDetail_20' ) end [2025-02-02 14:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386238', 'tblTempVendorCDR_20' ) start [2025-02-02 14:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386238', 'tblTempVendorCDR_20' ) end [2025-02-02 14:17:20] Production.INFO: ProcessCDR(1,14386238,1,1,2) [2025-02-02 14:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386238', 'tblTempUsageDetail_20' ) start [2025-02-02 14:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386238', 'tblTempUsageDetail_20' ) end [2025-02-02 14:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:17:23] Production.INFO: ==8115== Releasing lock... [2025-02-02 14:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:17:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:18:05 [end_date_ymd] => 2025-02-02 14:18:05 [RateCDR] => 1 ) [2025-02-02 14:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 11:18:05' and `end` < '2025-02-02 14:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 14:18:20] Production.INFO: count ==1161 [2025-02-02 14:18:20] Production.ERROR: pbx CDR StartTime 2025-02-02 11:18:05 - End Time 2025-02-02 14:18:05 [2025-02-02 14:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386243', 'tblTempUsageDetail_20' ) start [2025-02-02 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386243', 'tblTempUsageDetail_20' ) end [2025-02-02 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386243', 'tblTempVendorCDR_20' ) start [2025-02-02 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386243', 'tblTempVendorCDR_20' ) end [2025-02-02 14:18:20] Production.INFO: ProcessCDR(1,14386243,1,1,2) [2025-02-02 14:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386243', 'tblTempUsageDetail_20' ) start [2025-02-02 14:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386243', 'tblTempUsageDetail_20' ) end [2025-02-02 14:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:18:23] Production.INFO: ==8201== Releasing lock... [2025-02-02 14:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:18:23] Production.INFO: 37 MB #Memory Used# [2025-02-02 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:19:05 [end_date_ymd] => 2025-02-02 14:19:05 [RateCDR] => 1 ) [2025-02-02 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-02 11:19:05' and `end` < '2025-02-02 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-02 14:19:18] Production.INFO: count ==1162 [2025-02-02 14:19:18] Production.ERROR: pbx CDR StartTime 2025-02-02 11:19:05 - End Time 2025-02-02 14:19:05 [2025-02-02 14:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386248', 'tblTempUsageDetail_20' ) start [2025-02-02 14:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386248', 'tblTempUsageDetail_20' ) end [2025-02-02 14:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386248', 'tblTempVendorCDR_20' ) start [2025-02-02 14:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386248', 'tblTempVendorCDR_20' ) end [2025-02-02 14:19:18] Production.INFO: ProcessCDR(1,14386248,1,1,2) [2025-02-02 14:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386248', 'tblTempUsageDetail_20' ) start [2025-02-02 14:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386248', 'tblTempUsageDetail_20' ) end [2025-02-02 14:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:19:22] Production.INFO: ==8282== Releasing lock... [2025-02-02 14:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:19:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:20:06 [end_date_ymd] => 2025-02-02 14:20:06 [RateCDR] => 1 ) [2025-02-02 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-02 11:20:06' and `end` < '2025-02-02 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-02 14:20:19] Production.INFO: count ==1163 [2025-02-02 14:20:20] Production.ERROR: pbx CDR StartTime 2025-02-02 11:20:06 - End Time 2025-02-02 14:20:06 [2025-02-02 14:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386254', 'tblTempUsageDetail_20' ) start [2025-02-02 14:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386254', 'tblTempUsageDetail_20' ) end [2025-02-02 14:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386254', 'tblTempVendorCDR_20' ) start [2025-02-02 14:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386254', 'tblTempVendorCDR_20' ) end [2025-02-02 14:20:20] Production.INFO: ProcessCDR(1,14386254,1,1,2) [2025-02-02 14:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386254', 'tblTempUsageDetail_20' ) start [2025-02-02 14:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386254', 'tblTempUsageDetail_20' ) end [2025-02-02 14:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:20:24] Production.INFO: ==8363== Releasing lock... [2025-02-02 14:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:20:24] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:21:05 [end_date_ymd] => 2025-02-02 14:21:05 [RateCDR] => 1 ) [2025-02-02 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-02 11:21:05' and `end` < '2025-02-02 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-02 14:21:18] Production.INFO: count ==1207 [2025-02-02 14:21:19] Production.ERROR: pbx CDR StartTime 2025-02-02 11:21:05 - End Time 2025-02-02 14:21:05 [2025-02-02 14:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386259', 'tblTempUsageDetail_20' ) start [2025-02-02 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386259', 'tblTempUsageDetail_20' ) end [2025-02-02 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386259', 'tblTempVendorCDR_20' ) start [2025-02-02 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386259', 'tblTempVendorCDR_20' ) end [2025-02-02 14:21:19] Production.INFO: ProcessCDR(1,14386259,1,1,2) [2025-02-02 14:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386259', 'tblTempUsageDetail_20' ) start [2025-02-02 14:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386259', 'tblTempUsageDetail_20' ) end [2025-02-02 14:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:21:23] Production.INFO: ==8443== Releasing lock... [2025-02-02 14:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:21:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-02 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:22:05 [end_date_ymd] => 2025-02-02 14:22:05 [RateCDR] => 1 ) [2025-02-02 14:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 11:22:05' and `end` < '2025-02-02 14:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 14:22:18] Production.INFO: count ==1214 [2025-02-02 14:22:18] Production.ERROR: pbx CDR StartTime 2025-02-02 11:22:05 - End Time 2025-02-02 14:22:05 [2025-02-02 14:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386264', 'tblTempUsageDetail_20' ) start [2025-02-02 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386264', 'tblTempUsageDetail_20' ) end [2025-02-02 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386264', 'tblTempVendorCDR_20' ) start [2025-02-02 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386264', 'tblTempVendorCDR_20' ) end [2025-02-02 14:22:18] Production.INFO: ProcessCDR(1,14386264,1,1,2) [2025-02-02 14:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386264', 'tblTempUsageDetail_20' ) start [2025-02-02 14:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386264', 'tblTempUsageDetail_20' ) end [2025-02-02 14:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:22:23] Production.INFO: ==8528== Releasing lock... [2025-02-02 14:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:22:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-02 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:23:05 [end_date_ymd] => 2025-02-02 14:23:05 [RateCDR] => 1 ) [2025-02-02 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-02 11:23:05' and `end` < '2025-02-02 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-02 14:23:19] Production.INFO: count ==1217 [2025-02-02 14:23:19] Production.ERROR: pbx CDR StartTime 2025-02-02 11:23:05 - End Time 2025-02-02 14:23:05 [2025-02-02 14:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386269', 'tblTempUsageDetail_20' ) start [2025-02-02 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386269', 'tblTempUsageDetail_20' ) end [2025-02-02 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386269', 'tblTempVendorCDR_20' ) start [2025-02-02 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386269', 'tblTempVendorCDR_20' ) end [2025-02-02 14:23:19] Production.INFO: ProcessCDR(1,14386269,1,1,2) [2025-02-02 14:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386269', 'tblTempUsageDetail_20' ) start [2025-02-02 14:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386269', 'tblTempUsageDetail_20' ) end [2025-02-02 14:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:23:24] Production.INFO: ==8602== Releasing lock... [2025-02-02 14:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:23:24] Production.INFO: 37.5 MB #Memory Used# [2025-02-02 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:24:05 [end_date_ymd] => 2025-02-02 14:24:05 [RateCDR] => 1 ) [2025-02-02 14:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 11:24:05' and `end` < '2025-02-02 14:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 14:24:18] Production.INFO: count ==1216 [2025-02-02 14:24:18] Production.ERROR: pbx CDR StartTime 2025-02-02 11:24:05 - End Time 2025-02-02 14:24:05 [2025-02-02 14:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386274', 'tblTempUsageDetail_20' ) start [2025-02-02 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386274', 'tblTempUsageDetail_20' ) end [2025-02-02 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386274', 'tblTempVendorCDR_20' ) start [2025-02-02 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386274', 'tblTempVendorCDR_20' ) end [2025-02-02 14:24:18] Production.INFO: ProcessCDR(1,14386274,1,1,2) [2025-02-02 14:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386274', 'tblTempUsageDetail_20' ) start [2025-02-02 14:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386274', 'tblTempUsageDetail_20' ) end [2025-02-02 14:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:24:23] Production.INFO: ==8679== Releasing lock... [2025-02-02 14:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:24:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-02 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:25:05 [end_date_ymd] => 2025-02-02 14:25:05 [RateCDR] => 1 ) [2025-02-02 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-02 11:25:05' and `end` < '2025-02-02 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-02 14:25:18] Production.INFO: count ==1215 [2025-02-02 14:25:18] Production.ERROR: pbx CDR StartTime 2025-02-02 11:25:05 - End Time 2025-02-02 14:25:05 [2025-02-02 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386279', 'tblTempUsageDetail_20' ) start [2025-02-02 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386279', 'tblTempUsageDetail_20' ) end [2025-02-02 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386279', 'tblTempVendorCDR_20' ) start [2025-02-02 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386279', 'tblTempVendorCDR_20' ) end [2025-02-02 14:25:18] Production.INFO: ProcessCDR(1,14386279,1,1,2) [2025-02-02 14:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386279', 'tblTempUsageDetail_20' ) start [2025-02-02 14:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386279', 'tblTempUsageDetail_20' ) end [2025-02-02 14:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:25:22] Production.INFO: ==8763== Releasing lock... [2025-02-02 14:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:25:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:26:05 [end_date_ymd] => 2025-02-02 14:26:05 [RateCDR] => 1 ) [2025-02-02 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-02 11:26:05' and `end` < '2025-02-02 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-02 14:26:18] Production.INFO: count ==1216 [2025-02-02 14:26:18] Production.ERROR: pbx CDR StartTime 2025-02-02 11:26:05 - End Time 2025-02-02 14:26:05 [2025-02-02 14:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386284', 'tblTempUsageDetail_20' ) start [2025-02-02 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386284', 'tblTempUsageDetail_20' ) end [2025-02-02 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386284', 'tblTempVendorCDR_20' ) start [2025-02-02 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386284', 'tblTempVendorCDR_20' ) end [2025-02-02 14:26:18] Production.INFO: ProcessCDR(1,14386284,1,1,2) [2025-02-02 14:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386284', 'tblTempUsageDetail_20' ) start [2025-02-02 14:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386284', 'tblTempUsageDetail_20' ) end [2025-02-02 14:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:26:21] Production.INFO: ==8842== Releasing lock... [2025-02-02 14:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:26:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-02 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:27:05 [end_date_ymd] => 2025-02-02 14:27:05 [RateCDR] => 1 ) [2025-02-02 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-02 11:27:05' and `end` < '2025-02-02 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-02 14:27:19] Production.INFO: count ==1217 [2025-02-02 14:27:19] Production.ERROR: pbx CDR StartTime 2025-02-02 11:27:05 - End Time 2025-02-02 14:27:05 [2025-02-02 14:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386289', 'tblTempUsageDetail_20' ) start [2025-02-02 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386289', 'tblTempUsageDetail_20' ) end [2025-02-02 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386289', 'tblTempVendorCDR_20' ) start [2025-02-02 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386289', 'tblTempVendorCDR_20' ) end [2025-02-02 14:27:19] Production.INFO: ProcessCDR(1,14386289,1,1,2) [2025-02-02 14:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386289', 'tblTempUsageDetail_20' ) start [2025-02-02 14:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386289', 'tblTempUsageDetail_20' ) end [2025-02-02 14:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:27:24] Production.INFO: ==8917== Releasing lock... [2025-02-02 14:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:27:24] Production.INFO: 37.5 MB #Memory Used# [2025-02-02 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:28:05 [end_date_ymd] => 2025-02-02 14:28:05 [RateCDR] => 1 ) [2025-02-02 14:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 11:28:05' and `end` < '2025-02-02 14:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 14:28:17] Production.INFO: count ==1216 [2025-02-02 14:28:18] Production.ERROR: pbx CDR StartTime 2025-02-02 11:28:05 - End Time 2025-02-02 14:28:05 [2025-02-02 14:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386294', 'tblTempUsageDetail_20' ) start [2025-02-02 14:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386294', 'tblTempUsageDetail_20' ) end [2025-02-02 14:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386294', 'tblTempVendorCDR_20' ) start [2025-02-02 14:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386294', 'tblTempVendorCDR_20' ) end [2025-02-02 14:28:18] Production.INFO: ProcessCDR(1,14386294,1,1,2) [2025-02-02 14:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386294', 'tblTempUsageDetail_20' ) start [2025-02-02 14:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386294', 'tblTempUsageDetail_20' ) end [2025-02-02 14:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:28:21] Production.INFO: ==8996== Releasing lock... [2025-02-02 14:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:28:21] Production.INFO: 37.5 MB #Memory Used# [2025-02-02 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:29:05 [end_date_ymd] => 2025-02-02 14:29:05 [RateCDR] => 1 ) [2025-02-02 14:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 11:29:05' and `end` < '2025-02-02 14:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 14:29:19] Production.INFO: count ==1206 [2025-02-02 14:29:19] Production.ERROR: pbx CDR StartTime 2025-02-02 11:29:05 - End Time 2025-02-02 14:29:05 [2025-02-02 14:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386298', 'tblTempUsageDetail_20' ) start [2025-02-02 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386298', 'tblTempUsageDetail_20' ) end [2025-02-02 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386298', 'tblTempVendorCDR_20' ) start [2025-02-02 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386298', 'tblTempVendorCDR_20' ) end [2025-02-02 14:29:19] Production.INFO: ProcessCDR(1,14386298,1,1,2) [2025-02-02 14:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386298', 'tblTempUsageDetail_20' ) start [2025-02-02 14:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386298', 'tblTempUsageDetail_20' ) end [2025-02-02 14:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:29:24] Production.INFO: ==9079== Releasing lock... [2025-02-02 14:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:29:24] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 14:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:30:05 [end_date_ymd] => 2025-02-02 14:30:05 [RateCDR] => 1 ) [2025-02-02 14: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-02 11:30:05' and `end` < '2025-02-02 14: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-02 14:30:18] Production.INFO: count ==1207 [2025-02-02 14:30:19] Production.ERROR: pbx CDR StartTime 2025-02-02 11:30:05 - End Time 2025-02-02 14:30:05 [2025-02-02 14:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386304', 'tblTempUsageDetail_20' ) start [2025-02-02 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386304', 'tblTempUsageDetail_20' ) end [2025-02-02 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386304', 'tblTempVendorCDR_20' ) start [2025-02-02 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386304', 'tblTempVendorCDR_20' ) end [2025-02-02 14:30:19] Production.INFO: ProcessCDR(1,14386304,1,1,2) [2025-02-02 14:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386304', 'tblTempUsageDetail_20' ) start [2025-02-02 14:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386304', 'tblTempUsageDetail_20' ) end [2025-02-02 14:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:30:23] Production.INFO: ==9156== Releasing lock... [2025-02-02 14:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:30:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-02 14:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:31:04 [end_date_ymd] => 2025-02-02 14:31:04 [RateCDR] => 1 ) [2025-02-02 14: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-02 11:31:04' and `end` < '2025-02-02 14: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-02 14:31:19] Production.INFO: count ==1207 [2025-02-02 14:31:19] Production.ERROR: pbx CDR StartTime 2025-02-02 11:31:04 - End Time 2025-02-02 14:31:04 [2025-02-02 14:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386310', 'tblTempUsageDetail_20' ) start [2025-02-02 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386310', 'tblTempUsageDetail_20' ) end [2025-02-02 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386310', 'tblTempVendorCDR_20' ) start [2025-02-02 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386310', 'tblTempVendorCDR_20' ) end [2025-02-02 14:31:19] Production.INFO: ProcessCDR(1,14386310,1,1,2) [2025-02-02 14:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386310', 'tblTempUsageDetail_20' ) start [2025-02-02 14:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386310', 'tblTempUsageDetail_20' ) end [2025-02-02 14:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:31:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:31:24] Production.INFO: ==9273== Releasing lock... [2025-02-02 14:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:31:24] Production.INFO: 37.5 MB #Memory Used# [2025-02-02 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:32:05 [end_date_ymd] => 2025-02-02 14:32:05 [RateCDR] => 1 ) [2025-02-02 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-02 11:32:05' and `end` < '2025-02-02 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-02 14:32:18] Production.INFO: count ==1208 [2025-02-02 14:32:18] Production.ERROR: pbx CDR StartTime 2025-02-02 11:32:05 - End Time 2025-02-02 14:32:05 [2025-02-02 14:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386315', 'tblTempUsageDetail_20' ) start [2025-02-02 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386315', 'tblTempUsageDetail_20' ) end [2025-02-02 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386315', 'tblTempVendorCDR_20' ) start [2025-02-02 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386315', 'tblTempVendorCDR_20' ) end [2025-02-02 14:32:18] Production.INFO: ProcessCDR(1,14386315,1,1,2) [2025-02-02 14:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386315', 'tblTempUsageDetail_20' ) start [2025-02-02 14:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386315', 'tblTempUsageDetail_20' ) end [2025-02-02 14:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:32:22] Production.INFO: ==9352== Releasing lock... [2025-02-02 14:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:32:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-02 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:33:05 [end_date_ymd] => 2025-02-02 14:33:05 [RateCDR] => 1 ) [2025-02-02 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-02 11:33:05' and `end` < '2025-02-02 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-02 14:33:18] Production.INFO: count ==1205 [2025-02-02 14:33:18] Production.ERROR: pbx CDR StartTime 2025-02-02 11:33:05 - End Time 2025-02-02 14:33:05 [2025-02-02 14:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386320', 'tblTempUsageDetail_20' ) start [2025-02-02 14:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386320', 'tblTempUsageDetail_20' ) end [2025-02-02 14:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386320', 'tblTempVendorCDR_20' ) start [2025-02-02 14:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386320', 'tblTempVendorCDR_20' ) end [2025-02-02 14:33:18] Production.INFO: ProcessCDR(1,14386320,1,1,2) [2025-02-02 14:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386320', 'tblTempUsageDetail_20' ) start [2025-02-02 14:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386320', 'tblTempUsageDetail_20' ) end [2025-02-02 14:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:33:21] Production.INFO: ==9434== Releasing lock... [2025-02-02 14:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:33:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:34:05 [end_date_ymd] => 2025-02-02 14:34:05 [RateCDR] => 1 ) [2025-02-02 14:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 11:34:05' and `end` < '2025-02-02 14:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 14:34:18] Production.INFO: count ==1260 [2025-02-02 14:34:19] Production.ERROR: pbx CDR StartTime 2025-02-02 11:34:05 - End Time 2025-02-02 14:34:05 [2025-02-02 14:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386325', 'tblTempUsageDetail_20' ) start [2025-02-02 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386325', 'tblTempUsageDetail_20' ) end [2025-02-02 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386325', 'tblTempVendorCDR_20' ) start [2025-02-02 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386325', 'tblTempVendorCDR_20' ) end [2025-02-02 14:34:19] Production.INFO: ProcessCDR(1,14386325,1,1,2) [2025-02-02 14:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386325', 'tblTempUsageDetail_20' ) start [2025-02-02 14:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386325', 'tblTempUsageDetail_20' ) end [2025-02-02 14:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:34:23] Production.INFO: ==9512== Releasing lock... [2025-02-02 14:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:34:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-02 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:35:05 [end_date_ymd] => 2025-02-02 14:35:05 [RateCDR] => 1 ) [2025-02-02 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-02 11:35:05' and `end` < '2025-02-02 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-02 14:35:18] Production.INFO: count ==1327 [2025-02-02 14:35:18] Production.ERROR: pbx CDR StartTime 2025-02-02 11:35:05 - End Time 2025-02-02 14:35:05 [2025-02-02 14:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386330', 'tblTempUsageDetail_20' ) start [2025-02-02 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386330', 'tblTempUsageDetail_20' ) end [2025-02-02 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386330', 'tblTempVendorCDR_20' ) start [2025-02-02 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386330', 'tblTempVendorCDR_20' ) end [2025-02-02 14:35:18] Production.INFO: ProcessCDR(1,14386330,1,1,2) [2025-02-02 14:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386330', 'tblTempUsageDetail_20' ) start [2025-02-02 14:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386330', 'tblTempUsageDetail_20' ) end [2025-02-02 14:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:35:23] Production.INFO: ==9599== Releasing lock... [2025-02-02 14:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:35:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-02 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:36:05 [end_date_ymd] => 2025-02-02 14:36:05 [RateCDR] => 1 ) [2025-02-02 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-02 11:36:05' and `end` < '2025-02-02 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-02 14:36:19] Production.INFO: count ==1327 [2025-02-02 14:36:20] Production.ERROR: pbx CDR StartTime 2025-02-02 11:36:05 - End Time 2025-02-02 14:36:05 [2025-02-02 14:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386335', 'tblTempUsageDetail_20' ) start [2025-02-02 14:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386335', 'tblTempUsageDetail_20' ) end [2025-02-02 14:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386335', 'tblTempVendorCDR_20' ) start [2025-02-02 14:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386335', 'tblTempVendorCDR_20' ) end [2025-02-02 14:36:20] Production.INFO: ProcessCDR(1,14386335,1,1,2) [2025-02-02 14:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386335', 'tblTempUsageDetail_20' ) start [2025-02-02 14:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386335', 'tblTempUsageDetail_20' ) end [2025-02-02 14:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:36:23] Production.INFO: ==9669== Releasing lock... [2025-02-02 14:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:36:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-02 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:37:05 [end_date_ymd] => 2025-02-02 14:37:05 [RateCDR] => 1 ) [2025-02-02 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-02 11:37:05' and `end` < '2025-02-02 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-02 14:37:18] Production.INFO: count ==1331 [2025-02-02 14:37:18] Production.ERROR: pbx CDR StartTime 2025-02-02 11:37:05 - End Time 2025-02-02 14:37:05 [2025-02-02 14:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386340', 'tblTempUsageDetail_20' ) start [2025-02-02 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386340', 'tblTempUsageDetail_20' ) end [2025-02-02 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386340', 'tblTempVendorCDR_20' ) start [2025-02-02 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386340', 'tblTempVendorCDR_20' ) end [2025-02-02 14:37:19] Production.INFO: ProcessCDR(1,14386340,1,1,2) [2025-02-02 14:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386340', 'tblTempUsageDetail_20' ) start [2025-02-02 14:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386340', 'tblTempUsageDetail_20' ) end [2025-02-02 14:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:37:22] Production.INFO: ==9743== Releasing lock... [2025-02-02 14:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:37:22] Production.INFO: 38 MB #Memory Used# [2025-02-02 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:38:05 [end_date_ymd] => 2025-02-02 14:38:05 [RateCDR] => 1 ) [2025-02-02 14:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 11:38:05' and `end` < '2025-02-02 14:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 14:38:20] Production.INFO: count ==1332 [2025-02-02 14:38:20] Production.ERROR: pbx CDR StartTime 2025-02-02 11:38:05 - End Time 2025-02-02 14:38:05 [2025-02-02 14:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386345', 'tblTempUsageDetail_20' ) start [2025-02-02 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386345', 'tblTempUsageDetail_20' ) end [2025-02-02 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386345', 'tblTempVendorCDR_20' ) start [2025-02-02 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386345', 'tblTempVendorCDR_20' ) end [2025-02-02 14:38:20] Production.INFO: ProcessCDR(1,14386345,1,1,2) [2025-02-02 14:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386345', 'tblTempUsageDetail_20' ) start [2025-02-02 14:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386345', 'tblTempUsageDetail_20' ) end [2025-02-02 14:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:38:24] Production.INFO: ==9819== Releasing lock... [2025-02-02 14:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:38:24] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:39:05 [end_date_ymd] => 2025-02-02 14:39:05 [RateCDR] => 1 ) [2025-02-02 14:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 11:39:05' and `end` < '2025-02-02 14:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 14:39:19] Production.INFO: count ==1339 [2025-02-02 14:39:20] Production.ERROR: pbx CDR StartTime 2025-02-02 11:39:05 - End Time 2025-02-02 14:39:05 [2025-02-02 14:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386350', 'tblTempUsageDetail_20' ) start [2025-02-02 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386350', 'tblTempUsageDetail_20' ) end [2025-02-02 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386350', 'tblTempVendorCDR_20' ) start [2025-02-02 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386350', 'tblTempVendorCDR_20' ) end [2025-02-02 14:39:20] Production.INFO: ProcessCDR(1,14386350,1,1,2) [2025-02-02 14:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386350', 'tblTempUsageDetail_20' ) start [2025-02-02 14:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386350', 'tblTempUsageDetail_20' ) end [2025-02-02 14:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:39:23] Production.INFO: ==9892== Releasing lock... [2025-02-02 14:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:39:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:40:06 [end_date_ymd] => 2025-02-02 14:40:06 [RateCDR] => 1 ) [2025-02-02 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-02 11:40:06' and `end` < '2025-02-02 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-02 14:40:19] Production.INFO: count ==1342 [2025-02-02 14:40:19] Production.ERROR: pbx CDR StartTime 2025-02-02 11:40:06 - End Time 2025-02-02 14:40:06 [2025-02-02 14:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386355', 'tblTempUsageDetail_20' ) start [2025-02-02 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386355', 'tblTempUsageDetail_20' ) end [2025-02-02 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386355', 'tblTempVendorCDR_20' ) start [2025-02-02 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386355', 'tblTempVendorCDR_20' ) end [2025-02-02 14:40:19] Production.INFO: ProcessCDR(1,14386355,1,1,2) [2025-02-02 14:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386355', 'tblTempUsageDetail_20' ) start [2025-02-02 14:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386355', 'tblTempUsageDetail_20' ) end [2025-02-02 14:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:40:22] Production.INFO: ==9969== Releasing lock... [2025-02-02 14:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:40:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:41:05 [end_date_ymd] => 2025-02-02 14:41:05 [RateCDR] => 1 ) [2025-02-02 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-02 11:41:05' and `end` < '2025-02-02 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-02 14:41:19] Production.INFO: count ==1362 [2025-02-02 14:41:19] Production.ERROR: pbx CDR StartTime 2025-02-02 11:41:05 - End Time 2025-02-02 14:41:05 [2025-02-02 14:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386361', 'tblTempUsageDetail_20' ) start [2025-02-02 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386361', 'tblTempUsageDetail_20' ) end [2025-02-02 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386361', 'tblTempVendorCDR_20' ) start [2025-02-02 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386361', 'tblTempVendorCDR_20' ) end [2025-02-02 14:41:19] Production.INFO: ProcessCDR(1,14386361,1,1,2) [2025-02-02 14:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386361', 'tblTempUsageDetail_20' ) start [2025-02-02 14:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386361', 'tblTempUsageDetail_20' ) end [2025-02-02 14:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:41:22] Production.INFO: ==10048== Releasing lock... [2025-02-02 14:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:41:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:42:05 [end_date_ymd] => 2025-02-02 14:42:05 [RateCDR] => 1 ) [2025-02-02 14:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 11:42:05' and `end` < '2025-02-02 14:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 14:42:18] Production.INFO: count ==1367 [2025-02-02 14:42:19] Production.ERROR: pbx CDR StartTime 2025-02-02 11:42:05 - End Time 2025-02-02 14:42:05 [2025-02-02 14:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386366', 'tblTempUsageDetail_20' ) start [2025-02-02 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386366', 'tblTempUsageDetail_20' ) end [2025-02-02 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386366', 'tblTempVendorCDR_20' ) start [2025-02-02 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386366', 'tblTempVendorCDR_20' ) end [2025-02-02 14:42:19] Production.INFO: ProcessCDR(1,14386366,1,1,2) [2025-02-02 14:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386366', 'tblTempUsageDetail_20' ) start [2025-02-02 14:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386366', 'tblTempUsageDetail_20' ) end [2025-02-02 14:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:42:23] Production.INFO: ==10125== Releasing lock... [2025-02-02 14:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:42:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:43:05 [end_date_ymd] => 2025-02-02 14:43:05 [RateCDR] => 1 ) [2025-02-02 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-02 11:43:05' and `end` < '2025-02-02 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-02 14:43:19] Production.INFO: count ==1366 [2025-02-02 14:43:19] Production.ERROR: pbx CDR StartTime 2025-02-02 11:43:05 - End Time 2025-02-02 14:43:05 [2025-02-02 14:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386370', 'tblTempUsageDetail_20' ) start [2025-02-02 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386370', 'tblTempUsageDetail_20' ) end [2025-02-02 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386370', 'tblTempVendorCDR_20' ) start [2025-02-02 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386370', 'tblTempVendorCDR_20' ) end [2025-02-02 14:43:19] Production.INFO: ProcessCDR(1,14386370,1,1,2) [2025-02-02 14:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386370', 'tblTempUsageDetail_20' ) start [2025-02-02 14:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386370', 'tblTempUsageDetail_20' ) end [2025-02-02 14:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:43:24] Production.INFO: ==10195== Releasing lock... [2025-02-02 14:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:43:24] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 14:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:44:06 [end_date_ymd] => 2025-02-02 14:44:06 [RateCDR] => 1 ) [2025-02-02 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-02 11:44:06' and `end` < '2025-02-02 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-02 14:44:18] Production.INFO: count ==1367 [2025-02-02 14:44:19] Production.ERROR: pbx CDR StartTime 2025-02-02 11:44:06 - End Time 2025-02-02 14:44:06 [2025-02-02 14:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386376', 'tblTempUsageDetail_20' ) start [2025-02-02 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386376', 'tblTempUsageDetail_20' ) end [2025-02-02 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386376', 'tblTempVendorCDR_20' ) start [2025-02-02 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386376', 'tblTempVendorCDR_20' ) end [2025-02-02 14:44:19] Production.INFO: ProcessCDR(1,14386376,1,1,2) [2025-02-02 14:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386376', 'tblTempUsageDetail_20' ) start [2025-02-02 14:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386376', 'tblTempUsageDetail_20' ) end [2025-02-02 14:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:44:23] Production.INFO: ==10267== Releasing lock... [2025-02-02 14:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:44:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:45:05 [end_date_ymd] => 2025-02-02 14:45:05 [RateCDR] => 1 ) [2025-02-02 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-02 11:45:05' and `end` < '2025-02-02 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-02 14:45:18] Production.INFO: count ==1366 [2025-02-02 14:45:18] Production.ERROR: pbx CDR StartTime 2025-02-02 11:45:05 - End Time 2025-02-02 14:45:05 [2025-02-02 14:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386381', 'tblTempUsageDetail_20' ) start [2025-02-02 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386381', 'tblTempUsageDetail_20' ) end [2025-02-02 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386381', 'tblTempVendorCDR_20' ) start [2025-02-02 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386381', 'tblTempVendorCDR_20' ) end [2025-02-02 14:45:18] Production.INFO: ProcessCDR(1,14386381,1,1,2) [2025-02-02 14:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386381', 'tblTempUsageDetail_20' ) start [2025-02-02 14:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386381', 'tblTempUsageDetail_20' ) end [2025-02-02 14:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:45:21] Production.INFO: ==10341== Releasing lock... [2025-02-02 14:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:45:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:46:05 [end_date_ymd] => 2025-02-02 14:46:05 [RateCDR] => 1 ) [2025-02-02 14:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 11:46:05' and `end` < '2025-02-02 14:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 14:46:18] Production.INFO: count ==1365 [2025-02-02 14:46:18] Production.ERROR: pbx CDR StartTime 2025-02-02 11:46:05 - End Time 2025-02-02 14:46:05 [2025-02-02 14:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386386', 'tblTempUsageDetail_20' ) start [2025-02-02 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386386', 'tblTempUsageDetail_20' ) end [2025-02-02 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386386', 'tblTempVendorCDR_20' ) start [2025-02-02 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386386', 'tblTempVendorCDR_20' ) end [2025-02-02 14:46:18] Production.INFO: ProcessCDR(1,14386386,1,1,2) [2025-02-02 14:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386386', 'tblTempUsageDetail_20' ) start [2025-02-02 14:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386386', 'tblTempUsageDetail_20' ) end [2025-02-02 14:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:46:22] Production.INFO: ==10416== Releasing lock... [2025-02-02 14:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:46:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:47:05 [end_date_ymd] => 2025-02-02 14:47:05 [RateCDR] => 1 ) [2025-02-02 14:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 11:47:05' and `end` < '2025-02-02 14:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 14:47:19] Production.INFO: count ==1363 [2025-02-02 14:47:19] Production.ERROR: pbx CDR StartTime 2025-02-02 11:47:05 - End Time 2025-02-02 14:47:05 [2025-02-02 14:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386391', 'tblTempUsageDetail_20' ) start [2025-02-02 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386391', 'tblTempUsageDetail_20' ) end [2025-02-02 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386391', 'tblTempVendorCDR_20' ) start [2025-02-02 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386391', 'tblTempVendorCDR_20' ) end [2025-02-02 14:47:19] Production.INFO: ProcessCDR(1,14386391,1,1,2) [2025-02-02 14:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386391', 'tblTempUsageDetail_20' ) start [2025-02-02 14:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386391', 'tblTempUsageDetail_20' ) end [2025-02-02 14:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:47:24] Production.INFO: ==10529== Releasing lock... [2025-02-02 14:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:47:24] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:48:05 [end_date_ymd] => 2025-02-02 14:48:05 [RateCDR] => 1 ) [2025-02-02 14:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 11:48:05' and `end` < '2025-02-02 14:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 14:48:19] Production.INFO: count ==1372 [2025-02-02 14:48:19] Production.ERROR: pbx CDR StartTime 2025-02-02 11:48:05 - End Time 2025-02-02 14:48:05 [2025-02-02 14:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386396', 'tblTempUsageDetail_20' ) start [2025-02-02 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386396', 'tblTempUsageDetail_20' ) end [2025-02-02 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386396', 'tblTempVendorCDR_20' ) start [2025-02-02 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386396', 'tblTempVendorCDR_20' ) end [2025-02-02 14:48:19] Production.INFO: ProcessCDR(1,14386396,1,1,2) [2025-02-02 14:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386396', 'tblTempUsageDetail_20' ) start [2025-02-02 14:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386396', 'tblTempUsageDetail_20' ) end [2025-02-02 14:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:48:24] Production.INFO: ==10603== Releasing lock... [2025-02-02 14:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:48:24] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:49:05 [end_date_ymd] => 2025-02-02 14:49:05 [RateCDR] => 1 ) [2025-02-02 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-02 11:49:05' and `end` < '2025-02-02 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-02 14:49:18] Production.INFO: count ==1370 [2025-02-02 14:49:18] Production.ERROR: pbx CDR StartTime 2025-02-02 11:49:05 - End Time 2025-02-02 14:49:05 [2025-02-02 14:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386401', 'tblTempUsageDetail_20' ) start [2025-02-02 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386401', 'tblTempUsageDetail_20' ) end [2025-02-02 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386401', 'tblTempVendorCDR_20' ) start [2025-02-02 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386401', 'tblTempVendorCDR_20' ) end [2025-02-02 14:49:18] Production.INFO: ProcessCDR(1,14386401,1,1,2) [2025-02-02 14:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386401', 'tblTempUsageDetail_20' ) start [2025-02-02 14:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386401', 'tblTempUsageDetail_20' ) end [2025-02-02 14:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:49:23] Production.INFO: ==10675== Releasing lock... [2025-02-02 14:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:49:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:50:06 [end_date_ymd] => 2025-02-02 14:50:06 [RateCDR] => 1 ) [2025-02-02 14:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 11:50:06' and `end` < '2025-02-02 14:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 14:50:19] Production.INFO: count ==1373 [2025-02-02 14:50:19] Production.ERROR: pbx CDR StartTime 2025-02-02 11:50:06 - End Time 2025-02-02 14:50:06 [2025-02-02 14:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386407', 'tblTempUsageDetail_20' ) start [2025-02-02 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386407', 'tblTempUsageDetail_20' ) end [2025-02-02 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386407', 'tblTempVendorCDR_20' ) start [2025-02-02 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386407', 'tblTempVendorCDR_20' ) end [2025-02-02 14:50:19] Production.INFO: ProcessCDR(1,14386407,1,1,2) [2025-02-02 14:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386407', 'tblTempUsageDetail_20' ) start [2025-02-02 14:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386407', 'tblTempUsageDetail_20' ) end [2025-02-02 14:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:50:24] Production.INFO: ==10751== Releasing lock... [2025-02-02 14:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:50:24] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 14:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:51:04 [end_date_ymd] => 2025-02-02 14:51:04 [RateCDR] => 1 ) [2025-02-02 14:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 11:51:04' and `end` < '2025-02-02 14:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 14:51:17] Production.INFO: count ==1381 [2025-02-02 14:51:17] Production.ERROR: pbx CDR StartTime 2025-02-02 11:51:04 - End Time 2025-02-02 14:51:04 [2025-02-02 14:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386412', 'tblTempUsageDetail_20' ) start [2025-02-02 14:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386412', 'tblTempUsageDetail_20' ) end [2025-02-02 14:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386412', 'tblTempVendorCDR_20' ) start [2025-02-02 14:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386412', 'tblTempVendorCDR_20' ) end [2025-02-02 14:51:17] Production.INFO: ProcessCDR(1,14386412,1,1,2) [2025-02-02 14:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386412', 'tblTempUsageDetail_20' ) start [2025-02-02 14:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386412', 'tblTempUsageDetail_20' ) end [2025-02-02 14:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:51:22] Production.INFO: ==10822== Releasing lock... [2025-02-02 14:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:51:22] Production.INFO: 39 MB #Memory Used# [2025-02-02 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:52:05 [end_date_ymd] => 2025-02-02 14:52:05 [RateCDR] => 1 ) [2025-02-02 14:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 11:52:05' and `end` < '2025-02-02 14:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 14:52:18] Production.INFO: count ==1386 [2025-02-02 14:52:19] Production.ERROR: pbx CDR StartTime 2025-02-02 11:52:05 - End Time 2025-02-02 14:52:05 [2025-02-02 14:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386417', 'tblTempUsageDetail_20' ) start [2025-02-02 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386417', 'tblTempUsageDetail_20' ) end [2025-02-02 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386417', 'tblTempVendorCDR_20' ) start [2025-02-02 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386417', 'tblTempVendorCDR_20' ) end [2025-02-02 14:52:19] Production.INFO: ProcessCDR(1,14386417,1,1,2) [2025-02-02 14:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386417', 'tblTempUsageDetail_20' ) start [2025-02-02 14:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386417', 'tblTempUsageDetail_20' ) end [2025-02-02 14:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:52:23] Production.INFO: ==10896== Releasing lock... [2025-02-02 14:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:52:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:53:05 [end_date_ymd] => 2025-02-02 14:53:05 [RateCDR] => 1 ) [2025-02-02 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-02 11:53:05' and `end` < '2025-02-02 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-02 14:53:18] Production.INFO: count ==1388 [2025-02-02 14:53:18] Production.ERROR: pbx CDR StartTime 2025-02-02 11:53:05 - End Time 2025-02-02 14:53:05 [2025-02-02 14:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386422', 'tblTempUsageDetail_20' ) start [2025-02-02 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386422', 'tblTempUsageDetail_20' ) end [2025-02-02 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386422', 'tblTempVendorCDR_20' ) start [2025-02-02 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386422', 'tblTempVendorCDR_20' ) end [2025-02-02 14:53:18] Production.INFO: ProcessCDR(1,14386422,1,1,2) [2025-02-02 14:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386422', 'tblTempUsageDetail_20' ) start [2025-02-02 14:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386422', 'tblTempUsageDetail_20' ) end [2025-02-02 14:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:53:23] Production.INFO: ==10973== Releasing lock... [2025-02-02 14:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:53:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:54:05 [end_date_ymd] => 2025-02-02 14:54:05 [RateCDR] => 1 ) [2025-02-02 14:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 11:54:05' and `end` < '2025-02-02 14:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 14:54:19] Production.INFO: count ==1393 [2025-02-02 14:54:19] Production.ERROR: pbx CDR StartTime 2025-02-02 11:54:05 - End Time 2025-02-02 14:54:05 [2025-02-02 14:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386427', 'tblTempUsageDetail_20' ) start [2025-02-02 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386427', 'tblTempUsageDetail_20' ) end [2025-02-02 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386427', 'tblTempVendorCDR_20' ) start [2025-02-02 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386427', 'tblTempVendorCDR_20' ) end [2025-02-02 14:54:19] Production.INFO: ProcessCDR(1,14386427,1,1,2) [2025-02-02 14:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386427', 'tblTempUsageDetail_20' ) start [2025-02-02 14:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386427', 'tblTempUsageDetail_20' ) end [2025-02-02 14:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:54:24] Production.INFO: ==11044== Releasing lock... [2025-02-02 14:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:54:24] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:55:05 [end_date_ymd] => 2025-02-02 14:55:05 [RateCDR] => 1 ) [2025-02-02 14:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 11:55:05' and `end` < '2025-02-02 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-02 14:55:18] Production.INFO: count ==1393 [2025-02-02 14:55:19] Production.ERROR: pbx CDR StartTime 2025-02-02 11:55:05 - End Time 2025-02-02 14:55:05 [2025-02-02 14:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386432', 'tblTempUsageDetail_20' ) start [2025-02-02 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386432', 'tblTempUsageDetail_20' ) end [2025-02-02 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386432', 'tblTempVendorCDR_20' ) start [2025-02-02 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386432', 'tblTempVendorCDR_20' ) end [2025-02-02 14:55:19] Production.INFO: ProcessCDR(1,14386432,1,1,2) [2025-02-02 14:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386432', 'tblTempUsageDetail_20' ) start [2025-02-02 14:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386432', 'tblTempUsageDetail_20' ) end [2025-02-02 14:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:55:23] Production.INFO: ==11113== Releasing lock... [2025-02-02 14:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:55:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:56:05 [end_date_ymd] => 2025-02-02 14:56:05 [RateCDR] => 1 ) [2025-02-02 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-02 11:56:05' and `end` < '2025-02-02 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-02 14:56:18] Production.INFO: count ==1395 [2025-02-02 14:56:18] Production.ERROR: pbx CDR StartTime 2025-02-02 11:56:05 - End Time 2025-02-02 14:56:05 [2025-02-02 14:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386437', 'tblTempUsageDetail_20' ) start [2025-02-02 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386437', 'tblTempUsageDetail_20' ) end [2025-02-02 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386437', 'tblTempVendorCDR_20' ) start [2025-02-02 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386437', 'tblTempVendorCDR_20' ) end [2025-02-02 14:56:18] Production.INFO: ProcessCDR(1,14386437,1,1,2) [2025-02-02 14:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386437', 'tblTempUsageDetail_20' ) start [2025-02-02 14:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386437', 'tblTempUsageDetail_20' ) end [2025-02-02 14:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:56:21] Production.INFO: ==11186== Releasing lock... [2025-02-02 14:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:56:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 14:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:57:06 [end_date_ymd] => 2025-02-02 14:57:06 [RateCDR] => 1 ) [2025-02-02 14: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-02 11:57:06' and `end` < '2025-02-02 14: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-02 14:57:18] Production.INFO: count ==1394 [2025-02-02 14:57:19] Production.ERROR: pbx CDR StartTime 2025-02-02 11:57:06 - End Time 2025-02-02 14:57:06 [2025-02-02 14:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386439', 'tblTempUsageDetail_20' ) start [2025-02-02 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386439', 'tblTempUsageDetail_20' ) end [2025-02-02 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386439', 'tblTempVendorCDR_20' ) start [2025-02-02 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386439', 'tblTempVendorCDR_20' ) end [2025-02-02 14:57:19] Production.INFO: ProcessCDR(1,14386439,1,1,2) [2025-02-02 14:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386439', 'tblTempUsageDetail_20' ) start [2025-02-02 14:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386439', 'tblTempUsageDetail_20' ) end [2025-02-02 14:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:57:22] Production.INFO: ==11260== Releasing lock... [2025-02-02 14:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:57:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:58:05 [end_date_ymd] => 2025-02-02 14:58:05 [RateCDR] => 1 ) [2025-02-02 14:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 11:58:05' and `end` < '2025-02-02 14:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 14:58:18] Production.INFO: count ==1369 [2025-02-02 14:58:18] Production.ERROR: pbx CDR StartTime 2025-02-02 11:58:05 - End Time 2025-02-02 14:58:05 [2025-02-02 14:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386447', 'tblTempUsageDetail_20' ) start [2025-02-02 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386447', 'tblTempUsageDetail_20' ) end [2025-02-02 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386447', 'tblTempVendorCDR_20' ) start [2025-02-02 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386447', 'tblTempVendorCDR_20' ) end [2025-02-02 14:58:18] Production.INFO: ProcessCDR(1,14386447,1,1,2) [2025-02-02 14:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386447', 'tblTempUsageDetail_20' ) start [2025-02-02 14:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386447', 'tblTempUsageDetail_20' ) end [2025-02-02 14:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:58:23] Production.INFO: ==11354== Releasing lock... [2025-02-02 14:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:58:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 11:59:05 [end_date_ymd] => 2025-02-02 14:59:05 [RateCDR] => 1 ) [2025-02-02 14:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 11:59:05' and `end` < '2025-02-02 14:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 14:59:18] Production.INFO: count ==1368 [2025-02-02 14:59:19] Production.ERROR: pbx CDR StartTime 2025-02-02 11:59:05 - End Time 2025-02-02 14:59:05 [2025-02-02 14:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386452', 'tblTempUsageDetail_20' ) start [2025-02-02 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386452', 'tblTempUsageDetail_20' ) end [2025-02-02 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386452', 'tblTempVendorCDR_20' ) start [2025-02-02 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386452', 'tblTempVendorCDR_20' ) end [2025-02-02 14:59:19] Production.INFO: ProcessCDR(1,14386452,1,1,2) [2025-02-02 14:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 14:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 14:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386452', 'tblTempUsageDetail_20' ) start [2025-02-02 14:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386452', 'tblTempUsageDetail_20' ) end [2025-02-02 14:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 14:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 14:59:22] Production.INFO: ==11425== Releasing lock... [2025-02-02 14:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 14:59:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:00:06 [end_date_ymd] => 2025-02-02 15:00:06 [RateCDR] => 1 ) [2025-02-02 15:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 12:00:06' and `end` < '2025-02-02 15:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 15:00:18] Production.INFO: count ==1372 [2025-02-02 15:00:19] Production.ERROR: pbx CDR StartTime 2025-02-02 12:00:06 - End Time 2025-02-02 15:00:06 [2025-02-02 15:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386457', 'tblTempUsageDetail_20' ) start [2025-02-02 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386457', 'tblTempUsageDetail_20' ) end [2025-02-02 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386457', 'tblTempVendorCDR_20' ) start [2025-02-02 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386457', 'tblTempVendorCDR_20' ) end [2025-02-02 15:00:19] Production.INFO: ProcessCDR(1,14386457,1,1,2) [2025-02-02 15:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386457', 'tblTempUsageDetail_20' ) start [2025-02-02 15:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386457', 'tblTempUsageDetail_20' ) end [2025-02-02 15:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:00:23] Production.INFO: ==11503== Releasing lock... [2025-02-02 15:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:00:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:01:05 [end_date_ymd] => 2025-02-02 15:01:05 [RateCDR] => 1 ) [2025-02-02 15:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 12:01:05' and `end` < '2025-02-02 15:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 15:01:18] Production.INFO: count ==1388 [2025-02-02 15:01:18] Production.ERROR: pbx CDR StartTime 2025-02-02 12:01:05 - End Time 2025-02-02 15:01:05 [2025-02-02 15:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386463', 'tblTempUsageDetail_20' ) start [2025-02-02 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386463', 'tblTempUsageDetail_20' ) end [2025-02-02 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386463', 'tblTempVendorCDR_20' ) start [2025-02-02 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386463', 'tblTempVendorCDR_20' ) end [2025-02-02 15:01:18] Production.INFO: ProcessCDR(1,14386463,1,1,2) [2025-02-02 15:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386463', 'tblTempUsageDetail_20' ) start [2025-02-02 15:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386463', 'tblTempUsageDetail_20' ) end [2025-02-02 15:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:01:21] Production.INFO: ==11636== Releasing lock... [2025-02-02 15:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:01:21] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:02:05 [end_date_ymd] => 2025-02-02 15:02:05 [RateCDR] => 1 ) [2025-02-02 15:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 12:02:05' and `end` < '2025-02-02 15:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 15:02:18] Production.INFO: count ==1388 [2025-02-02 15:02:19] Production.ERROR: pbx CDR StartTime 2025-02-02 12:02:05 - End Time 2025-02-02 15:02:05 [2025-02-02 15:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386468', 'tblTempUsageDetail_20' ) start [2025-02-02 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386468', 'tblTempUsageDetail_20' ) end [2025-02-02 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386468', 'tblTempVendorCDR_20' ) start [2025-02-02 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386468', 'tblTempVendorCDR_20' ) end [2025-02-02 15:02:19] Production.INFO: ProcessCDR(1,14386468,1,1,2) [2025-02-02 15:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386468', 'tblTempUsageDetail_20' ) start [2025-02-02 15:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386468', 'tblTempUsageDetail_20' ) end [2025-02-02 15:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:02:22] Production.INFO: ==11791== Releasing lock... [2025-02-02 15:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:02:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:03:05 [end_date_ymd] => 2025-02-02 15:03:05 [RateCDR] => 1 ) [2025-02-02 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-02 12:03:05' and `end` < '2025-02-02 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-02 15:03:19] Production.INFO: count ==1393 [2025-02-02 15:03:20] Production.ERROR: pbx CDR StartTime 2025-02-02 12:03:05 - End Time 2025-02-02 15:03:05 [2025-02-02 15:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386473', 'tblTempUsageDetail_20' ) start [2025-02-02 15:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386473', 'tblTempUsageDetail_20' ) end [2025-02-02 15:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386473', 'tblTempVendorCDR_20' ) start [2025-02-02 15:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386473', 'tblTempVendorCDR_20' ) end [2025-02-02 15:03:20] Production.INFO: ProcessCDR(1,14386473,1,1,2) [2025-02-02 15:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386473', 'tblTempUsageDetail_20' ) start [2025-02-02 15:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386473', 'tblTempUsageDetail_20' ) end [2025-02-02 15:03:25] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:03:25] Production.INFO: ==11864== Releasing lock... [2025-02-02 15:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:03:25] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 15:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:04:06 [end_date_ymd] => 2025-02-02 15:04:06 [RateCDR] => 1 ) [2025-02-02 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-02 12:04:06' and `end` < '2025-02-02 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-02 15:04:20] Production.INFO: count ==1388 [2025-02-02 15:04:20] Production.ERROR: pbx CDR StartTime 2025-02-02 12:04:06 - End Time 2025-02-02 15:04:06 [2025-02-02 15:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386478', 'tblTempUsageDetail_20' ) start [2025-02-02 15:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386478', 'tblTempUsageDetail_20' ) end [2025-02-02 15:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386478', 'tblTempVendorCDR_20' ) start [2025-02-02 15:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386478', 'tblTempVendorCDR_20' ) end [2025-02-02 15:04:20] Production.INFO: ProcessCDR(1,14386478,1,1,2) [2025-02-02 15:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386478', 'tblTempUsageDetail_20' ) start [2025-02-02 15:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386478', 'tblTempUsageDetail_20' ) end [2025-02-02 15:04:25] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:04:25] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:04:25] Production.INFO: ==11938== Releasing lock... [2025-02-02 15:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:04:25] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:05:05 [end_date_ymd] => 2025-02-02 15:05:05 [RateCDR] => 1 ) [2025-02-02 15:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 12:05:05' and `end` < '2025-02-02 15:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 15:05:18] Production.INFO: count ==1398 [2025-02-02 15:05:18] Production.ERROR: pbx CDR StartTime 2025-02-02 12:05:05 - End Time 2025-02-02 15:05:05 [2025-02-02 15:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386483', 'tblTempUsageDetail_20' ) start [2025-02-02 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386483', 'tblTempUsageDetail_20' ) end [2025-02-02 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386483', 'tblTempVendorCDR_20' ) start [2025-02-02 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386483', 'tblTempVendorCDR_20' ) end [2025-02-02 15:05:18] Production.INFO: ProcessCDR(1,14386483,1,1,2) [2025-02-02 15:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386483', 'tblTempUsageDetail_20' ) start [2025-02-02 15:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386483', 'tblTempUsageDetail_20' ) end [2025-02-02 15:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:05:23] Production.INFO: ==12088== Releasing lock... [2025-02-02 15:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:05:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 15:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:06:06 [end_date_ymd] => 2025-02-02 15:06:06 [RateCDR] => 1 ) [2025-02-02 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-02 12:06:06' and `end` < '2025-02-02 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-02 15:06:19] Production.INFO: count ==1398 [2025-02-02 15:06:19] Production.ERROR: pbx CDR StartTime 2025-02-02 12:06:06 - End Time 2025-02-02 15:06:06 [2025-02-02 15:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386488', 'tblTempUsageDetail_20' ) start [2025-02-02 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386488', 'tblTempUsageDetail_20' ) end [2025-02-02 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386488', 'tblTempVendorCDR_20' ) start [2025-02-02 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386488', 'tblTempVendorCDR_20' ) end [2025-02-02 15:06:19] Production.INFO: ProcessCDR(1,14386488,1,1,2) [2025-02-02 15:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386488', 'tblTempUsageDetail_20' ) start [2025-02-02 15:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386488', 'tblTempUsageDetail_20' ) end [2025-02-02 15:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:06:24] Production.INFO: ==12159== Releasing lock... [2025-02-02 15:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:06:24] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:07:05 [end_date_ymd] => 2025-02-02 15:07:05 [RateCDR] => 1 ) [2025-02-02 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-02 12:07:05' and `end` < '2025-02-02 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-02 15:07:18] Production.INFO: count ==1407 [2025-02-02 15:07:18] Production.ERROR: pbx CDR StartTime 2025-02-02 12:07:05 - End Time 2025-02-02 15:07:05 [2025-02-02 15:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386493', 'tblTempUsageDetail_20' ) start [2025-02-02 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386493', 'tblTempUsageDetail_20' ) end [2025-02-02 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386493', 'tblTempVendorCDR_20' ) start [2025-02-02 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386493', 'tblTempVendorCDR_20' ) end [2025-02-02 15:07:18] Production.INFO: ProcessCDR(1,14386493,1,1,2) [2025-02-02 15:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386493', 'tblTempUsageDetail_20' ) start [2025-02-02 15:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386493', 'tblTempUsageDetail_20' ) end [2025-02-02 15:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:07:23] Production.INFO: ==12233== Releasing lock... [2025-02-02 15:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:07:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 15:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:08:06 [end_date_ymd] => 2025-02-02 15:08:06 [RateCDR] => 1 ) [2025-02-02 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-02 12:08:06' and `end` < '2025-02-02 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-02 15:08:19] Production.INFO: count ==1411 [2025-02-02 15:08:20] Production.ERROR: pbx CDR StartTime 2025-02-02 12:08:06 - End Time 2025-02-02 15:08:06 [2025-02-02 15:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386498', 'tblTempUsageDetail_20' ) start [2025-02-02 15:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386498', 'tblTempUsageDetail_20' ) end [2025-02-02 15:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386498', 'tblTempVendorCDR_20' ) start [2025-02-02 15:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386498', 'tblTempVendorCDR_20' ) end [2025-02-02 15:08:20] Production.INFO: ProcessCDR(1,14386498,1,1,2) [2025-02-02 15:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386498', 'tblTempUsageDetail_20' ) start [2025-02-02 15:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386498', 'tblTempUsageDetail_20' ) end [2025-02-02 15:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:08:24] Production.INFO: ==12384== Releasing lock... [2025-02-02 15:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:08:24] Production.INFO: 39 MB #Memory Used# [2025-02-02 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:09:05 [end_date_ymd] => 2025-02-02 15:09:05 [RateCDR] => 1 ) [2025-02-02 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-02 12:09:05' and `end` < '2025-02-02 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-02 15:09:18] Production.INFO: count ==1411 [2025-02-02 15:09:18] Production.ERROR: pbx CDR StartTime 2025-02-02 12:09:05 - End Time 2025-02-02 15:09:05 [2025-02-02 15:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386503', 'tblTempUsageDetail_20' ) start [2025-02-02 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386503', 'tblTempUsageDetail_20' ) end [2025-02-02 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386503', 'tblTempVendorCDR_20' ) start [2025-02-02 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386503', 'tblTempVendorCDR_20' ) end [2025-02-02 15:09:18] Production.INFO: ProcessCDR(1,14386503,1,1,2) [2025-02-02 15:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386503', 'tblTempUsageDetail_20' ) start [2025-02-02 15:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386503', 'tblTempUsageDetail_20' ) end [2025-02-02 15:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:09:23] Production.INFO: ==12453== Releasing lock... [2025-02-02 15:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:09:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:10:06 [end_date_ymd] => 2025-02-02 15:10:06 [RateCDR] => 1 ) [2025-02-02 15:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 12:10:06' and `end` < '2025-02-02 15:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 15:10:19] Production.INFO: count ==1411 [2025-02-02 15:10:19] Production.ERROR: pbx CDR StartTime 2025-02-02 12:10:06 - End Time 2025-02-02 15:10:06 [2025-02-02 15:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386509', 'tblTempUsageDetail_20' ) start [2025-02-02 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386509', 'tblTempUsageDetail_20' ) end [2025-02-02 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386509', 'tblTempVendorCDR_20' ) start [2025-02-02 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386509', 'tblTempVendorCDR_20' ) end [2025-02-02 15:10:19] Production.INFO: ProcessCDR(1,14386509,1,1,2) [2025-02-02 15:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386509', 'tblTempUsageDetail_20' ) start [2025-02-02 15:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386509', 'tblTempUsageDetail_20' ) end [2025-02-02 15:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:10:22] Production.INFO: ==12526== Releasing lock... [2025-02-02 15:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:10:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-02 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:11:05 [end_date_ymd] => 2025-02-02 15:11:05 [RateCDR] => 1 ) [2025-02-02 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-02 12:11:05' and `end` < '2025-02-02 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-02 15:11:19] Production.INFO: count ==1414 [2025-02-02 15:11:20] Production.ERROR: pbx CDR StartTime 2025-02-02 12:11:05 - End Time 2025-02-02 15:11:05 [2025-02-02 15:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386514', 'tblTempUsageDetail_20' ) start [2025-02-02 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386514', 'tblTempUsageDetail_20' ) end [2025-02-02 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386514', 'tblTempVendorCDR_20' ) start [2025-02-02 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386514', 'tblTempVendorCDR_20' ) end [2025-02-02 15:11:20] Production.INFO: ProcessCDR(1,14386514,1,1,2) [2025-02-02 15:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386514', 'tblTempUsageDetail_20' ) start [2025-02-02 15:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386514', 'tblTempUsageDetail_20' ) end [2025-02-02 15:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:11:24] Production.INFO: ==12601== Releasing lock... [2025-02-02 15:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:11:24] Production.INFO: 39 MB #Memory Used# [2025-02-02 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:12:05 [end_date_ymd] => 2025-02-02 15:12:05 [RateCDR] => 1 ) [2025-02-02 15:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 12:12:05' and `end` < '2025-02-02 15:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 15:12:19] Production.INFO: count ==1420 [2025-02-02 15:12:19] Production.ERROR: pbx CDR StartTime 2025-02-02 12:12:05 - End Time 2025-02-02 15:12:05 [2025-02-02 15:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386519', 'tblTempUsageDetail_20' ) start [2025-02-02 15:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386519', 'tblTempUsageDetail_20' ) end [2025-02-02 15:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386519', 'tblTempVendorCDR_20' ) start [2025-02-02 15:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386519', 'tblTempVendorCDR_20' ) end [2025-02-02 15:12:20] Production.INFO: ProcessCDR(1,14386519,1,1,2) [2025-02-02 15:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386519', 'tblTempUsageDetail_20' ) start [2025-02-02 15:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386519', 'tblTempUsageDetail_20' ) end [2025-02-02 15:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:12:24] Production.INFO: ==12750== Releasing lock... [2025-02-02 15:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:12:24] Production.INFO: 39 MB #Memory Used# [2025-02-02 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:13:05 [end_date_ymd] => 2025-02-02 15:13:05 [RateCDR] => 1 ) [2025-02-02 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-02 12:13:05' and `end` < '2025-02-02 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-02 15:13:17] Production.INFO: count ==1410 [2025-02-02 15:13:18] Production.ERROR: pbx CDR StartTime 2025-02-02 12:13:05 - End Time 2025-02-02 15:13:05 [2025-02-02 15:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386524', 'tblTempUsageDetail_20' ) start [2025-02-02 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386524', 'tblTempUsageDetail_20' ) end [2025-02-02 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386524', 'tblTempVendorCDR_20' ) start [2025-02-02 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386524', 'tblTempVendorCDR_20' ) end [2025-02-02 15:13:18] Production.INFO: ProcessCDR(1,14386524,1,1,2) [2025-02-02 15:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386524', 'tblTempUsageDetail_20' ) start [2025-02-02 15:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386524', 'tblTempUsageDetail_20' ) end [2025-02-02 15:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:13:21] Production.INFO: ==12820== Releasing lock... [2025-02-02 15:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:13:21] Production.INFO: 39.25 MB #Memory Used# [2025-02-02 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:14:05 [end_date_ymd] => 2025-02-02 15:14:05 [RateCDR] => 1 ) [2025-02-02 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-02 12:14:05' and `end` < '2025-02-02 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-02 15:14:18] Production.INFO: count ==1408 [2025-02-02 15:14:18] Production.ERROR: pbx CDR StartTime 2025-02-02 12:14:05 - End Time 2025-02-02 15:14:05 [2025-02-02 15:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386529', 'tblTempUsageDetail_20' ) start [2025-02-02 15:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386529', 'tblTempUsageDetail_20' ) end [2025-02-02 15:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386529', 'tblTempVendorCDR_20' ) start [2025-02-02 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386529', 'tblTempVendorCDR_20' ) end [2025-02-02 15:14:19] Production.INFO: ProcessCDR(1,14386529,1,1,2) [2025-02-02 15:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386529', 'tblTempUsageDetail_20' ) start [2025-02-02 15:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386529', 'tblTempUsageDetail_20' ) end [2025-02-02 15:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:14:21] Production.INFO: ==12891== Releasing lock... [2025-02-02 15:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:14:21] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 15:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:15:06 [end_date_ymd] => 2025-02-02 15:15:06 [RateCDR] => 1 ) [2025-02-02 15:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 12:15:06' and `end` < '2025-02-02 15:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 15:15:18] Production.INFO: count ==1404 [2025-02-02 15:15:19] Production.ERROR: pbx CDR StartTime 2025-02-02 12:15:06 - End Time 2025-02-02 15:15:06 [2025-02-02 15:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386534', 'tblTempUsageDetail_20' ) start [2025-02-02 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386534', 'tblTempUsageDetail_20' ) end [2025-02-02 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386534', 'tblTempVendorCDR_20' ) start [2025-02-02 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386534', 'tblTempVendorCDR_20' ) end [2025-02-02 15:15:19] Production.INFO: ProcessCDR(1,14386534,1,1,2) [2025-02-02 15:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386534', 'tblTempUsageDetail_20' ) start [2025-02-02 15:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386534', 'tblTempUsageDetail_20' ) end [2025-02-02 15:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:15:22] Production.INFO: ==13040== Releasing lock... [2025-02-02 15:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:15:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:16:05 [end_date_ymd] => 2025-02-02 15:16:05 [RateCDR] => 1 ) [2025-02-02 15:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 12:16:05' and `end` < '2025-02-02 15:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 15:16:18] Production.INFO: count ==1407 [2025-02-02 15:16:18] Production.ERROR: pbx CDR StartTime 2025-02-02 12:16:05 - End Time 2025-02-02 15:16:05 [2025-02-02 15:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386539', 'tblTempUsageDetail_20' ) start [2025-02-02 15:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386539', 'tblTempUsageDetail_20' ) end [2025-02-02 15:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386539', 'tblTempVendorCDR_20' ) start [2025-02-02 15:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386539', 'tblTempVendorCDR_20' ) end [2025-02-02 15:16:18] Production.INFO: ProcessCDR(1,14386539,1,1,2) [2025-02-02 15:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386539', 'tblTempUsageDetail_20' ) start [2025-02-02 15:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386539', 'tblTempUsageDetail_20' ) end [2025-02-02 15:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:16:23] Production.INFO: ==13109== Releasing lock... [2025-02-02 15:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:16:23] Production.INFO: 39 MB #Memory Used# [2025-02-02 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:17:05 [end_date_ymd] => 2025-02-02 15:17:05 [RateCDR] => 1 ) [2025-02-02 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-02 12:17:05' and `end` < '2025-02-02 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-02 15:17:18] Production.INFO: count ==1408 [2025-02-02 15:17:19] Production.ERROR: pbx CDR StartTime 2025-02-02 12:17:05 - End Time 2025-02-02 15:17:05 [2025-02-02 15:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386544', 'tblTempUsageDetail_20' ) start [2025-02-02 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386544', 'tblTempUsageDetail_20' ) end [2025-02-02 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386544', 'tblTempVendorCDR_20' ) start [2025-02-02 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386544', 'tblTempVendorCDR_20' ) end [2025-02-02 15:17:19] Production.INFO: ProcessCDR(1,14386544,1,1,2) [2025-02-02 15:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386544', 'tblTempUsageDetail_20' ) start [2025-02-02 15:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386544', 'tblTempUsageDetail_20' ) end [2025-02-02 15:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:17:23] Production.INFO: ==13225== Releasing lock... [2025-02-02 15:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:17:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:18:05 [end_date_ymd] => 2025-02-02 15:18:05 [RateCDR] => 1 ) [2025-02-02 15:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 12:18:05' and `end` < '2025-02-02 15:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 15:18:18] Production.INFO: count ==1414 [2025-02-02 15:18:18] Production.ERROR: pbx CDR StartTime 2025-02-02 12:18:05 - End Time 2025-02-02 15:18:05 [2025-02-02 15:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386549', 'tblTempUsageDetail_20' ) start [2025-02-02 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386549', 'tblTempUsageDetail_20' ) end [2025-02-02 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386549', 'tblTempVendorCDR_20' ) start [2025-02-02 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386549', 'tblTempVendorCDR_20' ) end [2025-02-02 15:18:18] Production.INFO: ProcessCDR(1,14386549,1,1,2) [2025-02-02 15:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386549', 'tblTempUsageDetail_20' ) start [2025-02-02 15:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386549', 'tblTempUsageDetail_20' ) end [2025-02-02 15:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:18:21] Production.INFO: ==13294== Releasing lock... [2025-02-02 15:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:18:21] Production.INFO: 39.25 MB #Memory Used# [2025-02-02 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:19:05 [end_date_ymd] => 2025-02-02 15:19:05 [RateCDR] => 1 ) [2025-02-02 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-02 12:19:05' and `end` < '2025-02-02 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-02 15:19:18] Production.INFO: count ==1413 [2025-02-02 15:19:18] Production.ERROR: pbx CDR StartTime 2025-02-02 12:19:05 - End Time 2025-02-02 15:19:05 [2025-02-02 15:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386554', 'tblTempUsageDetail_20' ) start [2025-02-02 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386554', 'tblTempUsageDetail_20' ) end [2025-02-02 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386554', 'tblTempVendorCDR_20' ) start [2025-02-02 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386554', 'tblTempVendorCDR_20' ) end [2025-02-02 15:19:18] Production.INFO: ProcessCDR(1,14386554,1,1,2) [2025-02-02 15:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386554', 'tblTempUsageDetail_20' ) start [2025-02-02 15:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386554', 'tblTempUsageDetail_20' ) end [2025-02-02 15:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:19:21] Production.INFO: ==13377== Releasing lock... [2025-02-02 15:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:19:21] Production.INFO: 39 MB #Memory Used# [2025-02-02 15:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:20:05 [end_date_ymd] => 2025-02-02 15:20:05 [RateCDR] => 1 ) [2025-02-02 15:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 12:20:05' and `end` < '2025-02-02 15:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 15:20:18] Production.INFO: count ==1409 [2025-02-02 15:20:19] Production.ERROR: pbx CDR StartTime 2025-02-02 12:20:05 - End Time 2025-02-02 15:20:05 [2025-02-02 15:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386560', 'tblTempUsageDetail_20' ) start [2025-02-02 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386560', 'tblTempUsageDetail_20' ) end [2025-02-02 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386560', 'tblTempVendorCDR_20' ) start [2025-02-02 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386560', 'tblTempVendorCDR_20' ) end [2025-02-02 15:20:19] Production.INFO: ProcessCDR(1,14386560,1,1,2) [2025-02-02 15:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386560', 'tblTempUsageDetail_20' ) start [2025-02-02 15:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386560', 'tblTempUsageDetail_20' ) end [2025-02-02 15:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:20:22] Production.INFO: ==13456== Releasing lock... [2025-02-02 15:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:20:22] Production.INFO: 39 MB #Memory Used# [2025-02-02 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:21:05 [end_date_ymd] => 2025-02-02 15:21:05 [RateCDR] => 1 ) [2025-02-02 15:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 12:21:05' and `end` < '2025-02-02 15:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 15:21:17] Production.INFO: count ==1410 [2025-02-02 15:21:18] Production.ERROR: pbx CDR StartTime 2025-02-02 12:21:05 - End Time 2025-02-02 15:21:05 [2025-02-02 15:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386565', 'tblTempUsageDetail_20' ) start [2025-02-02 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386565', 'tblTempUsageDetail_20' ) end [2025-02-02 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386565', 'tblTempVendorCDR_20' ) start [2025-02-02 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386565', 'tblTempVendorCDR_20' ) end [2025-02-02 15:21:18] Production.INFO: ProcessCDR(1,14386565,1,1,2) [2025-02-02 15:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386565', 'tblTempUsageDetail_20' ) start [2025-02-02 15:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386565', 'tblTempUsageDetail_20' ) end [2025-02-02 15:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:21:21] Production.INFO: ==13529== Releasing lock... [2025-02-02 15:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:21:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 15:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:22:06 [end_date_ymd] => 2025-02-02 15:22:06 [RateCDR] => 1 ) [2025-02-02 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-02 12:22:06' and `end` < '2025-02-02 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-02 15:22:19] Production.INFO: count ==1410 [2025-02-02 15:22:19] Production.ERROR: pbx CDR StartTime 2025-02-02 12:22:06 - End Time 2025-02-02 15:22:06 [2025-02-02 15:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386570', 'tblTempUsageDetail_20' ) start [2025-02-02 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386570', 'tblTempUsageDetail_20' ) end [2025-02-02 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386570', 'tblTempVendorCDR_20' ) start [2025-02-02 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386570', 'tblTempVendorCDR_20' ) end [2025-02-02 15:22:19] Production.INFO: ProcessCDR(1,14386570,1,1,2) [2025-02-02 15:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386570', 'tblTempUsageDetail_20' ) start [2025-02-02 15:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386570', 'tblTempUsageDetail_20' ) end [2025-02-02 15:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:22:22] Production.INFO: ==13602== Releasing lock... [2025-02-02 15:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:22:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:23:05 [end_date_ymd] => 2025-02-02 15:23:05 [RateCDR] => 1 ) [2025-02-02 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-02 12:23:05' and `end` < '2025-02-02 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-02 15:23:18] Production.INFO: count ==1419 [2025-02-02 15:23:18] Production.ERROR: pbx CDR StartTime 2025-02-02 12:23:05 - End Time 2025-02-02 15:23:05 [2025-02-02 15:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386575', 'tblTempUsageDetail_20' ) start [2025-02-02 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386575', 'tblTempUsageDetail_20' ) end [2025-02-02 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386575', 'tblTempVendorCDR_20' ) start [2025-02-02 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386575', 'tblTempVendorCDR_20' ) end [2025-02-02 15:23:18] Production.INFO: ProcessCDR(1,14386575,1,1,2) [2025-02-02 15:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386575', 'tblTempUsageDetail_20' ) start [2025-02-02 15:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386575', 'tblTempUsageDetail_20' ) end [2025-02-02 15:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:23:23] Production.INFO: ==13671== Releasing lock... [2025-02-02 15:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:23:23] Production.INFO: 39 MB #Memory Used# [2025-02-02 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:24:05 [end_date_ymd] => 2025-02-02 15:24:05 [RateCDR] => 1 ) [2025-02-02 15:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 12:24:05' and `end` < '2025-02-02 15:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 15:24:20] Production.INFO: count ==1427 [2025-02-02 15:24:20] Production.ERROR: pbx CDR StartTime 2025-02-02 12:24:05 - End Time 2025-02-02 15:24:05 [2025-02-02 15:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386580', 'tblTempUsageDetail_20' ) start [2025-02-02 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386580', 'tblTempUsageDetail_20' ) end [2025-02-02 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386580', 'tblTempVendorCDR_20' ) start [2025-02-02 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386580', 'tblTempVendorCDR_20' ) end [2025-02-02 15:24:20] Production.INFO: ProcessCDR(1,14386580,1,1,2) [2025-02-02 15:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386580', 'tblTempUsageDetail_20' ) start [2025-02-02 15:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386580', 'tblTempUsageDetail_20' ) end [2025-02-02 15:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:24:23] Production.INFO: ==13745== Releasing lock... [2025-02-02 15:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:24:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:25:05 [end_date_ymd] => 2025-02-02 15:25:05 [RateCDR] => 1 ) [2025-02-02 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 12:25:05' and `end` < '2025-02-02 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 15:25:18] Production.INFO: count ==1427 [2025-02-02 15:25:19] Production.ERROR: pbx CDR StartTime 2025-02-02 12:25:05 - End Time 2025-02-02 15:25:05 [2025-02-02 15:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386585', 'tblTempUsageDetail_20' ) start [2025-02-02 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386585', 'tblTempUsageDetail_20' ) end [2025-02-02 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386585', 'tblTempVendorCDR_20' ) start [2025-02-02 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386585', 'tblTempVendorCDR_20' ) end [2025-02-02 15:25:19] Production.INFO: ProcessCDR(1,14386585,1,1,2) [2025-02-02 15:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386585', 'tblTempUsageDetail_20' ) start [2025-02-02 15:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386585', 'tblTempUsageDetail_20' ) end [2025-02-02 15:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:25:22] Production.INFO: ==13832== Releasing lock... [2025-02-02 15:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:25:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:26:05 [end_date_ymd] => 2025-02-02 15:26:05 [RateCDR] => 1 ) [2025-02-02 15:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 12:26:05' and `end` < '2025-02-02 15:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 15:26:18] Production.INFO: count ==1428 [2025-02-02 15:26:19] Production.ERROR: pbx CDR StartTime 2025-02-02 12:26:05 - End Time 2025-02-02 15:26:05 [2025-02-02 15:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386590', 'tblTempUsageDetail_20' ) start [2025-02-02 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386590', 'tblTempUsageDetail_20' ) end [2025-02-02 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386590', 'tblTempVendorCDR_20' ) start [2025-02-02 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386590', 'tblTempVendorCDR_20' ) end [2025-02-02 15:26:19] Production.INFO: ProcessCDR(1,14386590,1,1,2) [2025-02-02 15:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386590', 'tblTempUsageDetail_20' ) start [2025-02-02 15:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386590', 'tblTempUsageDetail_20' ) end [2025-02-02 15:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:26:23] Production.INFO: ==13917== Releasing lock... [2025-02-02 15:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:26:23] Production.INFO: 39 MB #Memory Used# [2025-02-02 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:27:05 [end_date_ymd] => 2025-02-02 15:27:05 [RateCDR] => 1 ) [2025-02-02 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-02 12:27:05' and `end` < '2025-02-02 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-02 15:27:18] Production.INFO: count ==1430 [2025-02-02 15:27:18] Production.ERROR: pbx CDR StartTime 2025-02-02 12:27:05 - End Time 2025-02-02 15:27:05 [2025-02-02 15:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386595', 'tblTempUsageDetail_20' ) start [2025-02-02 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386595', 'tblTempUsageDetail_20' ) end [2025-02-02 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386595', 'tblTempVendorCDR_20' ) start [2025-02-02 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386595', 'tblTempVendorCDR_20' ) end [2025-02-02 15:27:18] Production.INFO: ProcessCDR(1,14386595,1,1,2) [2025-02-02 15:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386595', 'tblTempUsageDetail_20' ) start [2025-02-02 15:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386595', 'tblTempUsageDetail_20' ) end [2025-02-02 15:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:27:23] Production.INFO: ==13993== Releasing lock... [2025-02-02 15:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:27:23] Production.INFO: 39 MB #Memory Used# [2025-02-02 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:28:05 [end_date_ymd] => 2025-02-02 15:28:05 [RateCDR] => 1 ) [2025-02-02 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-02 12:28:05' and `end` < '2025-02-02 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-02 15:28:18] Production.INFO: count ==1432 [2025-02-02 15:28:18] Production.ERROR: pbx CDR StartTime 2025-02-02 12:28:05 - End Time 2025-02-02 15:28:05 [2025-02-02 15:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386600', 'tblTempUsageDetail_20' ) start [2025-02-02 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386600', 'tblTempUsageDetail_20' ) end [2025-02-02 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386600', 'tblTempVendorCDR_20' ) start [2025-02-02 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386600', 'tblTempVendorCDR_20' ) end [2025-02-02 15:28:19] Production.INFO: ProcessCDR(1,14386600,1,1,2) [2025-02-02 15:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386600', 'tblTempUsageDetail_20' ) start [2025-02-02 15:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386600', 'tblTempUsageDetail_20' ) end [2025-02-02 15:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:28:23] Production.INFO: ==14099== Releasing lock... [2025-02-02 15:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:28:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:29:05 [end_date_ymd] => 2025-02-02 15:29:05 [RateCDR] => 1 ) [2025-02-02 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-02 12:29:05' and `end` < '2025-02-02 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-02 15:29:18] Production.INFO: count ==1437 [2025-02-02 15:29:19] Production.ERROR: pbx CDR StartTime 2025-02-02 12:29:05 - End Time 2025-02-02 15:29:05 [2025-02-02 15:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386605', 'tblTempUsageDetail_20' ) start [2025-02-02 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386605', 'tblTempUsageDetail_20' ) end [2025-02-02 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386605', 'tblTempVendorCDR_20' ) start [2025-02-02 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386605', 'tblTempVendorCDR_20' ) end [2025-02-02 15:29:19] Production.INFO: ProcessCDR(1,14386605,1,1,2) [2025-02-02 15:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386605', 'tblTempUsageDetail_20' ) start [2025-02-02 15:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386605', 'tblTempUsageDetail_20' ) end [2025-02-02 15:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:29:23] Production.INFO: ==14182== Releasing lock... [2025-02-02 15:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:29:23] Production.INFO: 39 MB #Memory Used# [2025-02-02 15:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:30:05 [end_date_ymd] => 2025-02-02 15:30:05 [RateCDR] => 1 ) [2025-02-02 15: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-02 12:30:05' and `end` < '2025-02-02 15: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-02 15:30:18] Production.INFO: count ==1426 [2025-02-02 15:30:18] Production.ERROR: pbx CDR StartTime 2025-02-02 12:30:05 - End Time 2025-02-02 15:30:05 [2025-02-02 15:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386610', 'tblTempUsageDetail_20' ) start [2025-02-02 15:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386610', 'tblTempUsageDetail_20' ) end [2025-02-02 15:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386610', 'tblTempVendorCDR_20' ) start [2025-02-02 15:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386610', 'tblTempVendorCDR_20' ) end [2025-02-02 15:30:18] Production.INFO: ProcessCDR(1,14386610,1,1,2) [2025-02-02 15:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386610', 'tblTempUsageDetail_20' ) start [2025-02-02 15:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386610', 'tblTempUsageDetail_20' ) end [2025-02-02 15:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:30:21] Production.INFO: ==14279== Releasing lock... [2025-02-02 15:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:30:21] Production.INFO: 39 MB #Memory Used# [2025-02-02 15:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:31:06 [end_date_ymd] => 2025-02-02 15:31:06 [RateCDR] => 1 ) [2025-02-02 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-02 12:31:06' and `end` < '2025-02-02 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-02 15:31:19] Production.INFO: count ==1435 [2025-02-02 15:31:19] Production.ERROR: pbx CDR StartTime 2025-02-02 12:31:06 - End Time 2025-02-02 15:31:06 [2025-02-02 15:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386616', 'tblTempUsageDetail_20' ) start [2025-02-02 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386616', 'tblTempUsageDetail_20' ) end [2025-02-02 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386616', 'tblTempVendorCDR_20' ) start [2025-02-02 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386616', 'tblTempVendorCDR_20' ) end [2025-02-02 15:31:19] Production.INFO: ProcessCDR(1,14386616,1,1,2) [2025-02-02 15:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386616', 'tblTempUsageDetail_20' ) start [2025-02-02 15:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386616', 'tblTempUsageDetail_20' ) end [2025-02-02 15:31:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:31:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:31:24] Production.INFO: ==14363== Releasing lock... [2025-02-02 15:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:31:24] Production.INFO: 39 MB #Memory Used# [2025-02-02 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:32:05 [end_date_ymd] => 2025-02-02 15:32:05 [RateCDR] => 1 ) [2025-02-02 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-02 12:32:05' and `end` < '2025-02-02 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-02 15:32:19] Production.INFO: count ==1441 [2025-02-02 15:32:19] Production.ERROR: pbx CDR StartTime 2025-02-02 12:32:05 - End Time 2025-02-02 15:32:05 [2025-02-02 15:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386621', 'tblTempUsageDetail_20' ) start [2025-02-02 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386621', 'tblTempUsageDetail_20' ) end [2025-02-02 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386621', 'tblTempVendorCDR_20' ) start [2025-02-02 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386621', 'tblTempVendorCDR_20' ) end [2025-02-02 15:32:19] Production.INFO: ProcessCDR(1,14386621,1,1,2) [2025-02-02 15:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386621', 'tblTempUsageDetail_20' ) start [2025-02-02 15:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386621', 'tblTempUsageDetail_20' ) end [2025-02-02 15:32:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:32:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:32:24] Production.INFO: ==14464== Releasing lock... [2025-02-02 15:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:32:24] Production.INFO: 39 MB #Memory Used# [2025-02-02 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:33:05 [end_date_ymd] => 2025-02-02 15:33:05 [RateCDR] => 1 ) [2025-02-02 15:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 12:33:05' and `end` < '2025-02-02 15:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 15:33:19] Production.INFO: count ==1440 [2025-02-02 15:33:19] Production.ERROR: pbx CDR StartTime 2025-02-02 12:33:05 - End Time 2025-02-02 15:33:05 [2025-02-02 15:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386626', 'tblTempUsageDetail_20' ) start [2025-02-02 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386626', 'tblTempUsageDetail_20' ) end [2025-02-02 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386626', 'tblTempVendorCDR_20' ) start [2025-02-02 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386626', 'tblTempVendorCDR_20' ) end [2025-02-02 15:33:19] Production.INFO: ProcessCDR(1,14386626,1,1,2) [2025-02-02 15:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386626', 'tblTempUsageDetail_20' ) start [2025-02-02 15:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386626', 'tblTempUsageDetail_20' ) end [2025-02-02 15:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:33:22] Production.INFO: ==14581== Releasing lock... [2025-02-02 15:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:33:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:34:05 [end_date_ymd] => 2025-02-02 15:34:05 [RateCDR] => 1 ) [2025-02-02 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-02 12:34:05' and `end` < '2025-02-02 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-02 15:34:18] Production.INFO: count ==1439 [2025-02-02 15:34:18] Production.ERROR: pbx CDR StartTime 2025-02-02 12:34:05 - End Time 2025-02-02 15:34:05 [2025-02-02 15:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386631', 'tblTempUsageDetail_20' ) start [2025-02-02 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386631', 'tblTempUsageDetail_20' ) end [2025-02-02 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386631', 'tblTempVendorCDR_20' ) start [2025-02-02 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386631', 'tblTempVendorCDR_20' ) end [2025-02-02 15:34:18] Production.INFO: ProcessCDR(1,14386631,1,1,2) [2025-02-02 15:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386631', 'tblTempUsageDetail_20' ) start [2025-02-02 15:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386631', 'tblTempUsageDetail_20' ) end [2025-02-02 15:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:34:21] Production.INFO: ==14682== Releasing lock... [2025-02-02 15:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:34:21] Production.INFO: 39 MB #Memory Used# [2025-02-02 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:35:05 [end_date_ymd] => 2025-02-02 15:35:05 [RateCDR] => 1 ) [2025-02-02 15:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 12:35:05' and `end` < '2025-02-02 15:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 15:35:18] Production.INFO: count ==1436 [2025-02-02 15:35:19] Production.ERROR: pbx CDR StartTime 2025-02-02 12:35:05 - End Time 2025-02-02 15:35:05 [2025-02-02 15:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386636', 'tblTempUsageDetail_20' ) start [2025-02-02 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386636', 'tblTempUsageDetail_20' ) end [2025-02-02 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386636', 'tblTempVendorCDR_20' ) start [2025-02-02 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386636', 'tblTempVendorCDR_20' ) end [2025-02-02 15:35:19] Production.INFO: ProcessCDR(1,14386636,1,1,2) [2025-02-02 15:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386636', 'tblTempUsageDetail_20' ) start [2025-02-02 15:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386636', 'tblTempUsageDetail_20' ) end [2025-02-02 15:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:35:22] Production.INFO: ==14768== Releasing lock... [2025-02-02 15:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:35:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-02 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:36:05 [end_date_ymd] => 2025-02-02 15:36:05 [RateCDR] => 1 ) [2025-02-02 15:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 12:36:05' and `end` < '2025-02-02 15:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 15:36:18] Production.INFO: count ==1435 [2025-02-02 15:36:18] Production.ERROR: pbx CDR StartTime 2025-02-02 12:36:05 - End Time 2025-02-02 15:36:05 [2025-02-02 15:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386641', 'tblTempUsageDetail_20' ) start [2025-02-02 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386641', 'tblTempUsageDetail_20' ) end [2025-02-02 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386641', 'tblTempVendorCDR_20' ) start [2025-02-02 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386641', 'tblTempVendorCDR_20' ) end [2025-02-02 15:36:18] Production.INFO: ProcessCDR(1,14386641,1,1,2) [2025-02-02 15:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386641', 'tblTempUsageDetail_20' ) start [2025-02-02 15:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386641', 'tblTempUsageDetail_20' ) end [2025-02-02 15:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:36:21] Production.INFO: ==14847== Releasing lock... [2025-02-02 15:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:36:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:37:05 [end_date_ymd] => 2025-02-02 15:37:05 [RateCDR] => 1 ) [2025-02-02 15:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 12:37:05' and `end` < '2025-02-02 15:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 15:37:19] Production.INFO: count ==1452 [2025-02-02 15:37:19] Production.ERROR: pbx CDR StartTime 2025-02-02 12:37:05 - End Time 2025-02-02 15:37:05 [2025-02-02 15:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386646', 'tblTempUsageDetail_20' ) start [2025-02-02 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386646', 'tblTempUsageDetail_20' ) end [2025-02-02 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386646', 'tblTempVendorCDR_20' ) start [2025-02-02 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386646', 'tblTempVendorCDR_20' ) end [2025-02-02 15:37:19] Production.INFO: ProcessCDR(1,14386646,1,1,2) [2025-02-02 15:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386646', 'tblTempUsageDetail_20' ) start [2025-02-02 15:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386646', 'tblTempUsageDetail_20' ) end [2025-02-02 15:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:37:23] Production.INFO: ==14938== Releasing lock... [2025-02-02 15:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:37:23] Production.INFO: 39 MB #Memory Used# [2025-02-02 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:38:05 [end_date_ymd] => 2025-02-02 15:38:05 [RateCDR] => 1 ) [2025-02-02 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-02 12:38:05' and `end` < '2025-02-02 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-02 15:38:18] Production.INFO: count ==1461 [2025-02-02 15:38:19] Production.ERROR: pbx CDR StartTime 2025-02-02 12:38:05 - End Time 2025-02-02 15:38:05 [2025-02-02 15:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386651', 'tblTempUsageDetail_20' ) start [2025-02-02 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386651', 'tblTempUsageDetail_20' ) end [2025-02-02 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386651', 'tblTempVendorCDR_20' ) start [2025-02-02 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386651', 'tblTempVendorCDR_20' ) end [2025-02-02 15:38:19] Production.INFO: ProcessCDR(1,14386651,1,1,2) [2025-02-02 15:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386651', 'tblTempUsageDetail_20' ) start [2025-02-02 15:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386651', 'tblTempUsageDetail_20' ) end [2025-02-02 15:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:38:22] Production.INFO: ==15014== Releasing lock... [2025-02-02 15:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:38:22] Production.INFO: 39 MB #Memory Used# [2025-02-02 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:39:05 [end_date_ymd] => 2025-02-02 15:39:05 [RateCDR] => 1 ) [2025-02-02 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-02 12:39:05' and `end` < '2025-02-02 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-02 15:39:18] Production.INFO: count ==1466 [2025-02-02 15:39:18] Production.ERROR: pbx CDR StartTime 2025-02-02 12:39:05 - End Time 2025-02-02 15:39:05 [2025-02-02 15:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386656', 'tblTempUsageDetail_20' ) start [2025-02-02 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386656', 'tblTempUsageDetail_20' ) end [2025-02-02 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386656', 'tblTempVendorCDR_20' ) start [2025-02-02 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386656', 'tblTempVendorCDR_20' ) end [2025-02-02 15:39:18] Production.INFO: ProcessCDR(1,14386656,1,1,2) [2025-02-02 15:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386656', 'tblTempUsageDetail_20' ) start [2025-02-02 15:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386656', 'tblTempUsageDetail_20' ) end [2025-02-02 15:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:39:22] Production.INFO: ==15154== Releasing lock... [2025-02-02 15:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:39:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-02 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:40:06 [end_date_ymd] => 2025-02-02 15:40:06 [RateCDR] => 1 ) [2025-02-02 15:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 12:40:06' and `end` < '2025-02-02 15:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 15:40:19] Production.INFO: count ==1464 [2025-02-02 15:40:19] Production.ERROR: pbx CDR StartTime 2025-02-02 12:40:06 - End Time 2025-02-02 15:40:06 [2025-02-02 15:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386661', 'tblTempUsageDetail_20' ) start [2025-02-02 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386661', 'tblTempUsageDetail_20' ) end [2025-02-02 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386661', 'tblTempVendorCDR_20' ) start [2025-02-02 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386661', 'tblTempVendorCDR_20' ) end [2025-02-02 15:40:19] Production.INFO: ProcessCDR(1,14386661,1,1,2) [2025-02-02 15:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386661', 'tblTempUsageDetail_20' ) start [2025-02-02 15:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386661', 'tblTempUsageDetail_20' ) end [2025-02-02 15:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:40:22] Production.INFO: ==15293== Releasing lock... [2025-02-02 15:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:40:22] Production.INFO: 39 MB #Memory Used# [2025-02-02 15:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:41:04 [end_date_ymd] => 2025-02-02 15:41:04 [RateCDR] => 1 ) [2025-02-02 15:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 12:41:04' and `end` < '2025-02-02 15:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 15:41:17] Production.INFO: count ==1433 [2025-02-02 15:41:18] Production.ERROR: pbx CDR StartTime 2025-02-02 12:41:04 - End Time 2025-02-02 15:41:04 [2025-02-02 15:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386667', 'tblTempUsageDetail_20' ) start [2025-02-02 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386667', 'tblTempUsageDetail_20' ) end [2025-02-02 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386667', 'tblTempVendorCDR_20' ) start [2025-02-02 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386667', 'tblTempVendorCDR_20' ) end [2025-02-02 15:41:18] Production.INFO: ProcessCDR(1,14386667,1,1,2) [2025-02-02 15:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386667', 'tblTempUsageDetail_20' ) start [2025-02-02 15:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386667', 'tblTempUsageDetail_20' ) end [2025-02-02 15:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:41:22] Production.INFO: ==15390== Releasing lock... [2025-02-02 15:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:41:22] Production.INFO: 39 MB #Memory Used# [2025-02-02 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:42:05 [end_date_ymd] => 2025-02-02 15:42:05 [RateCDR] => 1 ) [2025-02-02 15:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 12:42:05' and `end` < '2025-02-02 15:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 15:42:18] Production.INFO: count ==1433 [2025-02-02 15:42:19] Production.ERROR: pbx CDR StartTime 2025-02-02 12:42:05 - End Time 2025-02-02 15:42:05 [2025-02-02 15:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386672', 'tblTempUsageDetail_20' ) start [2025-02-02 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386672', 'tblTempUsageDetail_20' ) end [2025-02-02 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386672', 'tblTempVendorCDR_20' ) start [2025-02-02 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386672', 'tblTempVendorCDR_20' ) end [2025-02-02 15:42:19] Production.INFO: ProcessCDR(1,14386672,1,1,2) [2025-02-02 15:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386672', 'tblTempUsageDetail_20' ) start [2025-02-02 15:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386672', 'tblTempUsageDetail_20' ) end [2025-02-02 15:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:42:22] Production.INFO: ==15485== Releasing lock... [2025-02-02 15:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:42:22] Production.INFO: 39 MB #Memory Used# [2025-02-02 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:43:05 [end_date_ymd] => 2025-02-02 15:43:05 [RateCDR] => 1 ) [2025-02-02 15:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 12:43:05' and `end` < '2025-02-02 15:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 15:43:17] Production.INFO: count ==1419 [2025-02-02 15:43:18] Production.ERROR: pbx CDR StartTime 2025-02-02 12:43:05 - End Time 2025-02-02 15:43:05 [2025-02-02 15:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386677', 'tblTempUsageDetail_20' ) start [2025-02-02 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386677', 'tblTempUsageDetail_20' ) end [2025-02-02 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386677', 'tblTempVendorCDR_20' ) start [2025-02-02 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386677', 'tblTempVendorCDR_20' ) end [2025-02-02 15:43:18] Production.INFO: ProcessCDR(1,14386677,1,1,2) [2025-02-02 15:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386677', 'tblTempUsageDetail_20' ) start [2025-02-02 15:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386677', 'tblTempUsageDetail_20' ) end [2025-02-02 15:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:43:21] Production.INFO: ==15606== Releasing lock... [2025-02-02 15:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:43:21] Production.INFO: 39.5 MB #Memory Used# [2025-02-02 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:44:05 [end_date_ymd] => 2025-02-02 15:44:05 [RateCDR] => 1 ) [2025-02-02 15:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 12:44:05' and `end` < '2025-02-02 15:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 15:44:21] Production.INFO: count ==1425 [2025-02-02 15:44:22] Production.ERROR: pbx CDR StartTime 2025-02-02 12:44:05 - End Time 2025-02-02 15:44:05 [2025-02-02 15:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386682', 'tblTempUsageDetail_20' ) start [2025-02-02 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386682', 'tblTempUsageDetail_20' ) end [2025-02-02 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386682', 'tblTempVendorCDR_20' ) start [2025-02-02 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386682', 'tblTempVendorCDR_20' ) end [2025-02-02 15:44:22] Production.INFO: ProcessCDR(1,14386682,1,1,2) [2025-02-02 15:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386682', 'tblTempUsageDetail_20' ) start [2025-02-02 15:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386682', 'tblTempUsageDetail_20' ) end [2025-02-02 15:44:25] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:44:25] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:44:25] Production.INFO: ==15694== Releasing lock... [2025-02-02 15:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:44:25] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:45:05 [end_date_ymd] => 2025-02-02 15:45:05 [RateCDR] => 1 ) [2025-02-02 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-02 12:45:05' and `end` < '2025-02-02 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-02 15:45:18] Production.INFO: count ==1414 [2025-02-02 15:45:18] Production.ERROR: pbx CDR StartTime 2025-02-02 12:45:05 - End Time 2025-02-02 15:45:05 [2025-02-02 15:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386687', 'tblTempUsageDetail_20' ) start [2025-02-02 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386687', 'tblTempUsageDetail_20' ) end [2025-02-02 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386687', 'tblTempVendorCDR_20' ) start [2025-02-02 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386687', 'tblTempVendorCDR_20' ) end [2025-02-02 15:45:18] Production.INFO: ProcessCDR(1,14386687,1,1,2) [2025-02-02 15:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386687', 'tblTempUsageDetail_20' ) start [2025-02-02 15:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386687', 'tblTempUsageDetail_20' ) end [2025-02-02 15:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:45:22] Production.INFO: ==15812== Releasing lock... [2025-02-02 15:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:45:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-02 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:46:05 [end_date_ymd] => 2025-02-02 15:46:05 [RateCDR] => 1 ) [2025-02-02 15:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 12:46:05' and `end` < '2025-02-02 15:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 15:46:18] Production.INFO: count ==1413 [2025-02-02 15:46:19] Production.ERROR: pbx CDR StartTime 2025-02-02 12:46:05 - End Time 2025-02-02 15:46:05 [2025-02-02 15:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386692', 'tblTempUsageDetail_20' ) start [2025-02-02 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386692', 'tblTempUsageDetail_20' ) end [2025-02-02 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386692', 'tblTempVendorCDR_20' ) start [2025-02-02 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386692', 'tblTempVendorCDR_20' ) end [2025-02-02 15:46:19] Production.INFO: ProcessCDR(1,14386692,1,1,2) [2025-02-02 15:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386692', 'tblTempUsageDetail_20' ) start [2025-02-02 15:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386692', 'tblTempUsageDetail_20' ) end [2025-02-02 15:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:46:22] Production.INFO: ==15914== Releasing lock... [2025-02-02 15:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:46:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-02 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:47:05 [end_date_ymd] => 2025-02-02 15:47:05 [RateCDR] => 1 ) [2025-02-02 15:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 12:47:05' and `end` < '2025-02-02 15:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 15:47:19] Production.INFO: count ==1409 [2025-02-02 15:47:19] Production.ERROR: pbx CDR StartTime 2025-02-02 12:47:05 - End Time 2025-02-02 15:47:05 [2025-02-02 15:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386697', 'tblTempUsageDetail_20' ) start [2025-02-02 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386697', 'tblTempUsageDetail_20' ) end [2025-02-02 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386697', 'tblTempVendorCDR_20' ) start [2025-02-02 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386697', 'tblTempVendorCDR_20' ) end [2025-02-02 15:47:19] Production.INFO: ProcessCDR(1,14386697,1,1,2) [2025-02-02 15:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386697', 'tblTempUsageDetail_20' ) start [2025-02-02 15:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386697', 'tblTempUsageDetail_20' ) end [2025-02-02 15:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:47:22] Production.INFO: ==16000== Releasing lock... [2025-02-02 15:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:47:22] Production.INFO: 39 MB #Memory Used# [2025-02-02 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:48:05 [end_date_ymd] => 2025-02-02 15:48:05 [RateCDR] => 1 ) [2025-02-02 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-02 12:48:05' and `end` < '2025-02-02 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-02 15:48:18] Production.INFO: count ==1403 [2025-02-02 15:48:18] Production.ERROR: pbx CDR StartTime 2025-02-02 12:48:05 - End Time 2025-02-02 15:48:05 [2025-02-02 15:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386702', 'tblTempUsageDetail_20' ) start [2025-02-02 15:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386702', 'tblTempUsageDetail_20' ) end [2025-02-02 15:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386702', 'tblTempVendorCDR_20' ) start [2025-02-02 15:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386702', 'tblTempVendorCDR_20' ) end [2025-02-02 15:48:18] Production.INFO: ProcessCDR(1,14386702,1,1,2) [2025-02-02 15:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386702', 'tblTempUsageDetail_20' ) start [2025-02-02 15:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386702', 'tblTempUsageDetail_20' ) end [2025-02-02 15:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:48:23] Production.INFO: ==16157== Releasing lock... [2025-02-02 15:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:48:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:49:05 [end_date_ymd] => 2025-02-02 15:49:05 [RateCDR] => 1 ) [2025-02-02 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-02 12:49:05' and `end` < '2025-02-02 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-02 15:49:19] Production.INFO: count ==1407 [2025-02-02 15:49:20] Production.ERROR: pbx CDR StartTime 2025-02-02 12:49:05 - End Time 2025-02-02 15:49:05 [2025-02-02 15:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386707', 'tblTempUsageDetail_20' ) start [2025-02-02 15:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386707', 'tblTempUsageDetail_20' ) end [2025-02-02 15:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386707', 'tblTempVendorCDR_20' ) start [2025-02-02 15:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386707', 'tblTempVendorCDR_20' ) end [2025-02-02 15:49:20] Production.INFO: ProcessCDR(1,14386707,1,1,2) [2025-02-02 15:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386707', 'tblTempUsageDetail_20' ) start [2025-02-02 15:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386707', 'tblTempUsageDetail_20' ) end [2025-02-02 15:49:25] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:49:25] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:49:25] Production.INFO: ==16253== Releasing lock... [2025-02-02 15:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:49:25] Production.INFO: 39 MB #Memory Used# [2025-02-02 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:50:06 [end_date_ymd] => 2025-02-02 15:50:06 [RateCDR] => 1 ) [2025-02-02 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-02 12:50:06' and `end` < '2025-02-02 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-02 15:50:20] Production.INFO: count ==1405 [2025-02-02 15:50:20] Production.ERROR: pbx CDR StartTime 2025-02-02 12:50:06 - End Time 2025-02-02 15:50:06 [2025-02-02 15:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386713', 'tblTempUsageDetail_20' ) start [2025-02-02 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386713', 'tblTempUsageDetail_20' ) end [2025-02-02 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386713', 'tblTempVendorCDR_20' ) start [2025-02-02 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386713', 'tblTempVendorCDR_20' ) end [2025-02-02 15:50:20] Production.INFO: ProcessCDR(1,14386713,1,1,2) [2025-02-02 15:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386713', 'tblTempUsageDetail_20' ) start [2025-02-02 15:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386713', 'tblTempUsageDetail_20' ) end [2025-02-02 15:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:50:25] Production.INFO: ==16351== Releasing lock... [2025-02-02 15:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:50:25] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:51:05 [end_date_ymd] => 2025-02-02 15:51:05 [RateCDR] => 1 ) [2025-02-02 15:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 12:51:05' and `end` < '2025-02-02 15:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 15:51:18] Production.INFO: count ==1389 [2025-02-02 15:51:18] Production.ERROR: pbx CDR StartTime 2025-02-02 12:51:05 - End Time 2025-02-02 15:51:05 [2025-02-02 15:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386718', 'tblTempUsageDetail_20' ) start [2025-02-02 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386718', 'tblTempUsageDetail_20' ) end [2025-02-02 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386718', 'tblTempVendorCDR_20' ) start [2025-02-02 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386718', 'tblTempVendorCDR_20' ) end [2025-02-02 15:51:18] Production.INFO: ProcessCDR(1,14386718,1,1,2) [2025-02-02 15:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386718', 'tblTempUsageDetail_20' ) start [2025-02-02 15:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386718', 'tblTempUsageDetail_20' ) end [2025-02-02 15:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:51:23] Production.INFO: ==16452== Releasing lock... [2025-02-02 15:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:51:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 15:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:52:04 [end_date_ymd] => 2025-02-02 15:52:04 [RateCDR] => 1 ) [2025-02-02 15:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 12:52:04' and `end` < '2025-02-02 15:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 15:52:17] Production.INFO: count ==1391 [2025-02-02 15:52:18] Production.ERROR: pbx CDR StartTime 2025-02-02 12:52:04 - End Time 2025-02-02 15:52:04 [2025-02-02 15:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386723', 'tblTempUsageDetail_20' ) start [2025-02-02 15:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386723', 'tblTempUsageDetail_20' ) end [2025-02-02 15:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386723', 'tblTempVendorCDR_20' ) start [2025-02-02 15:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386723', 'tblTempVendorCDR_20' ) end [2025-02-02 15:52:18] Production.INFO: ProcessCDR(1,14386723,1,1,2) [2025-02-02 15:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386723', 'tblTempUsageDetail_20' ) start [2025-02-02 15:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386723', 'tblTempUsageDetail_20' ) end [2025-02-02 15:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:52:22] Production.INFO: ==16539== Releasing lock... [2025-02-02 15:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:52:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:53:05 [end_date_ymd] => 2025-02-02 15:53:05 [RateCDR] => 1 ) [2025-02-02 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-02 12:53:05' and `end` < '2025-02-02 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-02 15:53:18] Production.INFO: count ==1390 [2025-02-02 15:53:18] Production.ERROR: pbx CDR StartTime 2025-02-02 12:53:05 - End Time 2025-02-02 15:53:05 [2025-02-02 15:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386728', 'tblTempUsageDetail_20' ) start [2025-02-02 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386728', 'tblTempUsageDetail_20' ) end [2025-02-02 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386728', 'tblTempVendorCDR_20' ) start [2025-02-02 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386728', 'tblTempVendorCDR_20' ) end [2025-02-02 15:53:18] Production.INFO: ProcessCDR(1,14386728,1,1,2) [2025-02-02 15:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386728', 'tblTempUsageDetail_20' ) start [2025-02-02 15:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386728', 'tblTempUsageDetail_20' ) end [2025-02-02 15:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:53:23] Production.INFO: ==16627== Releasing lock... [2025-02-02 15:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:53:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:54:05 [end_date_ymd] => 2025-02-02 15:54:05 [RateCDR] => 1 ) [2025-02-02 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-02 12:54:05' and `end` < '2025-02-02 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-02 15:54:18] Production.INFO: count ==1391 [2025-02-02 15:54:19] Production.ERROR: pbx CDR StartTime 2025-02-02 12:54:05 - End Time 2025-02-02 15:54:05 [2025-02-02 15:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386733', 'tblTempUsageDetail_20' ) start [2025-02-02 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386733', 'tblTempUsageDetail_20' ) end [2025-02-02 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386733', 'tblTempVendorCDR_20' ) start [2025-02-02 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386733', 'tblTempVendorCDR_20' ) end [2025-02-02 15:54:19] Production.INFO: ProcessCDR(1,14386733,1,1,2) [2025-02-02 15:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386733', 'tblTempUsageDetail_20' ) start [2025-02-02 15:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386733', 'tblTempUsageDetail_20' ) end [2025-02-02 15:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:54:23] Production.INFO: ==16714== Releasing lock... [2025-02-02 15:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:54:23] Production.INFO: 39 MB #Memory Used# [2025-02-02 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:55:05 [end_date_ymd] => 2025-02-02 15:55:05 [RateCDR] => 1 ) [2025-02-02 15:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 12:55:05' and `end` < '2025-02-02 15:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 15:55:18] Production.INFO: count ==1395 [2025-02-02 15:55:18] Production.ERROR: pbx CDR StartTime 2025-02-02 12:55:05 - End Time 2025-02-02 15:55:05 [2025-02-02 15:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386738', 'tblTempUsageDetail_20' ) start [2025-02-02 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386738', 'tblTempUsageDetail_20' ) end [2025-02-02 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386738', 'tblTempVendorCDR_20' ) start [2025-02-02 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386738', 'tblTempVendorCDR_20' ) end [2025-02-02 15:55:18] Production.INFO: ProcessCDR(1,14386738,1,1,2) [2025-02-02 15:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386738', 'tblTempUsageDetail_20' ) start [2025-02-02 15:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386738', 'tblTempUsageDetail_20' ) end [2025-02-02 15:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:55:23] Production.INFO: ==16799== Releasing lock... [2025-02-02 15:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:55:23] Production.INFO: 39 MB #Memory Used# [2025-02-02 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:56:05 [end_date_ymd] => 2025-02-02 15:56:05 [RateCDR] => 1 ) [2025-02-02 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-02 12:56:05' and `end` < '2025-02-02 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-02 15:56:18] Production.INFO: count ==1398 [2025-02-02 15:56:19] Production.ERROR: pbx CDR StartTime 2025-02-02 12:56:05 - End Time 2025-02-02 15:56:05 [2025-02-02 15:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386743', 'tblTempUsageDetail_20' ) start [2025-02-02 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386743', 'tblTempUsageDetail_20' ) end [2025-02-02 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386743', 'tblTempVendorCDR_20' ) start [2025-02-02 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386743', 'tblTempVendorCDR_20' ) end [2025-02-02 15:56:19] Production.INFO: ProcessCDR(1,14386743,1,1,2) [2025-02-02 15:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386743', 'tblTempUsageDetail_20' ) start [2025-02-02 15:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386743', 'tblTempUsageDetail_20' ) end [2025-02-02 15:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:56:23] Production.INFO: ==16888== Releasing lock... [2025-02-02 15:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:56:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-02 15:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:57:04 [end_date_ymd] => 2025-02-02 15:57:04 [RateCDR] => 1 ) [2025-02-02 15: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-02 12:57:04' and `end` < '2025-02-02 15: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-02 15:57:19] Production.INFO: count ==1397 [2025-02-02 15:57:19] Production.ERROR: pbx CDR StartTime 2025-02-02 12:57:04 - End Time 2025-02-02 15:57:04 [2025-02-02 15:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386748', 'tblTempUsageDetail_20' ) start [2025-02-02 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386748', 'tblTempUsageDetail_20' ) end [2025-02-02 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386748', 'tblTempVendorCDR_20' ) start [2025-02-02 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386748', 'tblTempVendorCDR_20' ) end [2025-02-02 15:57:19] Production.INFO: ProcessCDR(1,14386748,1,1,2) [2025-02-02 15:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386748', 'tblTempUsageDetail_20' ) start [2025-02-02 15:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386748', 'tblTempUsageDetail_20' ) end [2025-02-02 15:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:57:24] Production.INFO: ==16974== Releasing lock... [2025-02-02 15:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:57:24] Production.INFO: 39 MB #Memory Used# [2025-02-02 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:58:05 [end_date_ymd] => 2025-02-02 15:58:05 [RateCDR] => 1 ) [2025-02-02 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-02 12:58:05' and `end` < '2025-02-02 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-02 15:58:18] Production.INFO: count ==1402 [2025-02-02 15:58:19] Production.ERROR: pbx CDR StartTime 2025-02-02 12:58:05 - End Time 2025-02-02 15:58:05 [2025-02-02 15:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386753', 'tblTempUsageDetail_20' ) start [2025-02-02 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386753', 'tblTempUsageDetail_20' ) end [2025-02-02 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386753', 'tblTempVendorCDR_20' ) start [2025-02-02 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386753', 'tblTempVendorCDR_20' ) end [2025-02-02 15:58:19] Production.INFO: ProcessCDR(1,14386753,1,1,2) [2025-02-02 15:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386753', 'tblTempUsageDetail_20' ) start [2025-02-02 15:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386753', 'tblTempUsageDetail_20' ) end [2025-02-02 15:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:58:23] Production.INFO: ==17056== Releasing lock... [2025-02-02 15:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:58:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-02 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 12:59:05 [end_date_ymd] => 2025-02-02 15:59:05 [RateCDR] => 1 ) [2025-02-02 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-02 12:59:05' and `end` < '2025-02-02 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-02 15:59:18] Production.INFO: count ==1412 [2025-02-02 15:59:19] Production.ERROR: pbx CDR StartTime 2025-02-02 12:59:05 - End Time 2025-02-02 15:59:05 [2025-02-02 15:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386758', 'tblTempUsageDetail_20' ) start [2025-02-02 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386758', 'tblTempUsageDetail_20' ) end [2025-02-02 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386758', 'tblTempVendorCDR_20' ) start [2025-02-02 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386758', 'tblTempVendorCDR_20' ) end [2025-02-02 15:59:19] Production.INFO: ProcessCDR(1,14386758,1,1,2) [2025-02-02 15:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 15:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 15:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386758', 'tblTempUsageDetail_20' ) start [2025-02-02 15:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386758', 'tblTempUsageDetail_20' ) end [2025-02-02 15:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 15:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 15:59:22] Production.INFO: ==17143== Releasing lock... [2025-02-02 15:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 15:59:22] Production.INFO: 39 MB #Memory Used# [2025-02-02 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:00:06 [end_date_ymd] => 2025-02-02 16:00:06 [RateCDR] => 1 ) [2025-02-02 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-02 13:00:06' and `end` < '2025-02-02 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-02 16:00:19] Production.INFO: count ==1399 [2025-02-02 16:00:19] Production.ERROR: pbx CDR StartTime 2025-02-02 13:00:06 - End Time 2025-02-02 16:00:06 [2025-02-02 16:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386764', 'tblTempUsageDetail_20' ) start [2025-02-02 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386764', 'tblTempUsageDetail_20' ) end [2025-02-02 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386764', 'tblTempVendorCDR_20' ) start [2025-02-02 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386764', 'tblTempVendorCDR_20' ) end [2025-02-02 16:00:19] Production.INFO: ProcessCDR(1,14386764,1,1,2) [2025-02-02 16:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386764', 'tblTempUsageDetail_20' ) start [2025-02-02 16:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386764', 'tblTempUsageDetail_20' ) end [2025-02-02 16:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:00:23] Production.INFO: ==17235== Releasing lock... [2025-02-02 16:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:00:23] Production.INFO: 39 MB #Memory Used# [2025-02-02 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:01:05 [end_date_ymd] => 2025-02-02 16:01:05 [RateCDR] => 1 ) [2025-02-02 16:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 13:01:05' and `end` < '2025-02-02 16:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 16:01:18] Production.INFO: count ==1419 [2025-02-02 16:01:18] Production.ERROR: pbx CDR StartTime 2025-02-02 13:01:05 - End Time 2025-02-02 16:01:05 [2025-02-02 16:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386769', 'tblTempUsageDetail_20' ) start [2025-02-02 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386769', 'tblTempUsageDetail_20' ) end [2025-02-02 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386769', 'tblTempVendorCDR_20' ) start [2025-02-02 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386769', 'tblTempVendorCDR_20' ) end [2025-02-02 16:01:19] Production.INFO: ProcessCDR(1,14386769,1,1,2) [2025-02-02 16:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386769', 'tblTempUsageDetail_20' ) start [2025-02-02 16:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386769', 'tblTempUsageDetail_20' ) end [2025-02-02 16:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:01:22] Production.INFO: ==17333== Releasing lock... [2025-02-02 16:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:01:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-02 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:02:05 [end_date_ymd] => 2025-02-02 16:02:05 [RateCDR] => 1 ) [2025-02-02 16:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 13:02:05' and `end` < '2025-02-02 16:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 16:02:18] Production.INFO: count ==1418 [2025-02-02 16:02:19] Production.ERROR: pbx CDR StartTime 2025-02-02 13:02:05 - End Time 2025-02-02 16:02:05 [2025-02-02 16:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386774', 'tblTempUsageDetail_20' ) start [2025-02-02 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386774', 'tblTempUsageDetail_20' ) end [2025-02-02 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386774', 'tblTempVendorCDR_20' ) start [2025-02-02 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386774', 'tblTempVendorCDR_20' ) end [2025-02-02 16:02:19] Production.INFO: ProcessCDR(1,14386774,1,1,2) [2025-02-02 16:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386774', 'tblTempUsageDetail_20' ) start [2025-02-02 16:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386774', 'tblTempUsageDetail_20' ) end [2025-02-02 16:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:02:22] Production.INFO: ==17418== Releasing lock... [2025-02-02 16:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:02:22] Production.INFO: 39 MB #Memory Used# [2025-02-02 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:03:05 [end_date_ymd] => 2025-02-02 16:03:05 [RateCDR] => 1 ) [2025-02-02 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-02 13:03:05' and `end` < '2025-02-02 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-02 16:03:18] Production.INFO: count ==1418 [2025-02-02 16:03:19] Production.ERROR: pbx CDR StartTime 2025-02-02 13:03:05 - End Time 2025-02-02 16:03:05 [2025-02-02 16:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386779', 'tblTempUsageDetail_20' ) start [2025-02-02 16:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386779', 'tblTempUsageDetail_20' ) end [2025-02-02 16:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386779', 'tblTempVendorCDR_20' ) start [2025-02-02 16:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386779', 'tblTempVendorCDR_20' ) end [2025-02-02 16:03:19] Production.INFO: ProcessCDR(1,14386779,1,1,2) [2025-02-02 16:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386779', 'tblTempUsageDetail_20' ) start [2025-02-02 16:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386779', 'tblTempUsageDetail_20' ) end [2025-02-02 16:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:03:22] Production.INFO: ==17504== Releasing lock... [2025-02-02 16:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:03:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-02 16:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:04:04 [end_date_ymd] => 2025-02-02 16:04:04 [RateCDR] => 1 ) [2025-02-02 16:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 13:04:04' and `end` < '2025-02-02 16:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 16:04:17] Production.INFO: count ==1417 [2025-02-02 16:04:18] Production.ERROR: pbx CDR StartTime 2025-02-02 13:04:04 - End Time 2025-02-02 16:04:04 [2025-02-02 16:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386784', 'tblTempUsageDetail_20' ) start [2025-02-02 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386784', 'tblTempUsageDetail_20' ) end [2025-02-02 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386784', 'tblTempVendorCDR_20' ) start [2025-02-02 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386784', 'tblTempVendorCDR_20' ) end [2025-02-02 16:04:18] Production.INFO: ProcessCDR(1,14386784,1,1,2) [2025-02-02 16:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386784', 'tblTempUsageDetail_20' ) start [2025-02-02 16:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386784', 'tblTempUsageDetail_20' ) end [2025-02-02 16:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:04:22] Production.INFO: ==17629== Releasing lock... [2025-02-02 16:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:04:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-02 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:05:05 [end_date_ymd] => 2025-02-02 16:05:05 [RateCDR] => 1 ) [2025-02-02 16:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 13:05:05' and `end` < '2025-02-02 16:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 16:05:18] Production.INFO: count ==1413 [2025-02-02 16:05:18] Production.ERROR: pbx CDR StartTime 2025-02-02 13:05:05 - End Time 2025-02-02 16:05:05 [2025-02-02 16:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386789', 'tblTempUsageDetail_20' ) start [2025-02-02 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386789', 'tblTempUsageDetail_20' ) end [2025-02-02 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386789', 'tblTempVendorCDR_20' ) start [2025-02-02 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386789', 'tblTempVendorCDR_20' ) end [2025-02-02 16:05:18] Production.INFO: ProcessCDR(1,14386789,1,1,2) [2025-02-02 16:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386789', 'tblTempUsageDetail_20' ) start [2025-02-02 16:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386789', 'tblTempUsageDetail_20' ) end [2025-02-02 16:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:05:21] Production.INFO: ==17714== Releasing lock... [2025-02-02 16:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:05:21] Production.INFO: 39.5 MB #Memory Used# [2025-02-02 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:06:05 [end_date_ymd] => 2025-02-02 16:06:05 [RateCDR] => 1 ) [2025-02-02 16: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-02 13:06:05' and `end` < '2025-02-02 16:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 16:06:19] Production.INFO: count ==1410 [2025-02-02 16:06:19] Production.ERROR: pbx CDR StartTime 2025-02-02 13:06:05 - End Time 2025-02-02 16:06:05 [2025-02-02 16:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386794', 'tblTempUsageDetail_20' ) start [2025-02-02 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386794', 'tblTempUsageDetail_20' ) end [2025-02-02 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386794', 'tblTempVendorCDR_20' ) start [2025-02-02 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386794', 'tblTempVendorCDR_20' ) end [2025-02-02 16:06:19] Production.INFO: ProcessCDR(1,14386794,1,1,2) [2025-02-02 16:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386794', 'tblTempUsageDetail_20' ) start [2025-02-02 16:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386794', 'tblTempUsageDetail_20' ) end [2025-02-02 16:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:06:24] Production.INFO: ==17797== Releasing lock... [2025-02-02 16:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:06:24] Production.INFO: 39.25 MB #Memory Used# [2025-02-02 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:07:05 [end_date_ymd] => 2025-02-02 16:07:05 [RateCDR] => 1 ) [2025-02-02 16:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 13:07:05' and `end` < '2025-02-02 16:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 16:07:18] Production.INFO: count ==1410 [2025-02-02 16:07:18] Production.ERROR: pbx CDR StartTime 2025-02-02 13:07:05 - End Time 2025-02-02 16:07:05 [2025-02-02 16:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386799', 'tblTempUsageDetail_20' ) start [2025-02-02 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386799', 'tblTempUsageDetail_20' ) end [2025-02-02 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386799', 'tblTempVendorCDR_20' ) start [2025-02-02 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386799', 'tblTempVendorCDR_20' ) end [2025-02-02 16:07:18] Production.INFO: ProcessCDR(1,14386799,1,1,2) [2025-02-02 16:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386799', 'tblTempUsageDetail_20' ) start [2025-02-02 16:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386799', 'tblTempUsageDetail_20' ) end [2025-02-02 16:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:07:23] Production.INFO: ==17885== Releasing lock... [2025-02-02 16:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:07:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-02 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:08:05 [end_date_ymd] => 2025-02-02 16:08:05 [RateCDR] => 1 ) [2025-02-02 16:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 13:08:05' and `end` < '2025-02-02 16:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 16:08:19] Production.INFO: count ==1410 [2025-02-02 16:08:19] Production.ERROR: pbx CDR StartTime 2025-02-02 13:08:05 - End Time 2025-02-02 16:08:05 [2025-02-02 16:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386804', 'tblTempUsageDetail_20' ) start [2025-02-02 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386804', 'tblTempUsageDetail_20' ) end [2025-02-02 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386804', 'tblTempVendorCDR_20' ) start [2025-02-02 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386804', 'tblTempVendorCDR_20' ) end [2025-02-02 16:08:19] Production.INFO: ProcessCDR(1,14386804,1,1,2) [2025-02-02 16:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386804', 'tblTempUsageDetail_20' ) start [2025-02-02 16:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386804', 'tblTempUsageDetail_20' ) end [2025-02-02 16:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:08:23] Production.INFO: ==17994== Releasing lock... [2025-02-02 16:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:08:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-02 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:09:05 [end_date_ymd] => 2025-02-02 16:09:05 [RateCDR] => 1 ) [2025-02-02 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-02 13:09:05' and `end` < '2025-02-02 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-02 16:09:18] Production.INFO: count ==1409 [2025-02-02 16:09:19] Production.ERROR: pbx CDR StartTime 2025-02-02 13:09:05 - End Time 2025-02-02 16:09:05 [2025-02-02 16:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386809', 'tblTempUsageDetail_20' ) start [2025-02-02 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386809', 'tblTempUsageDetail_20' ) end [2025-02-02 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386809', 'tblTempVendorCDR_20' ) start [2025-02-02 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386809', 'tblTempVendorCDR_20' ) end [2025-02-02 16:09:19] Production.INFO: ProcessCDR(1,14386809,1,1,2) [2025-02-02 16:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386809', 'tblTempUsageDetail_20' ) start [2025-02-02 16:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386809', 'tblTempUsageDetail_20' ) end [2025-02-02 16:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:09:22] Production.INFO: ==18094== Releasing lock... [2025-02-02 16:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:09:22] Production.INFO: 39 MB #Memory Used# [2025-02-02 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:10:06 [end_date_ymd] => 2025-02-02 16:10:06 [RateCDR] => 1 ) [2025-02-02 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-02 13:10:06' and `end` < '2025-02-02 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-02 16:10:19] Production.INFO: count ==1405 [2025-02-02 16:10:19] Production.ERROR: pbx CDR StartTime 2025-02-02 13:10:06 - End Time 2025-02-02 16:10:06 [2025-02-02 16:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386815', 'tblTempUsageDetail_20' ) start [2025-02-02 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386815', 'tblTempUsageDetail_20' ) end [2025-02-02 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386815', 'tblTempVendorCDR_20' ) start [2025-02-02 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386815', 'tblTempVendorCDR_20' ) end [2025-02-02 16:10:19] Production.INFO: ProcessCDR(1,14386815,1,1,2) [2025-02-02 16:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386815', 'tblTempUsageDetail_20' ) start [2025-02-02 16:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386815', 'tblTempUsageDetail_20' ) end [2025-02-02 16:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:10:22] Production.INFO: ==18205== Releasing lock... [2025-02-02 16:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:10:22] Production.INFO: 39 MB #Memory Used# [2025-02-02 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:11:05 [end_date_ymd] => 2025-02-02 16:11:05 [RateCDR] => 1 ) [2025-02-02 16:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 13:11:05' and `end` < '2025-02-02 16:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 16:11:18] Production.INFO: count ==1397 [2025-02-02 16:11:18] Production.ERROR: pbx CDR StartTime 2025-02-02 13:11:05 - End Time 2025-02-02 16:11:05 [2025-02-02 16:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386820', 'tblTempUsageDetail_20' ) start [2025-02-02 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386820', 'tblTempUsageDetail_20' ) end [2025-02-02 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386820', 'tblTempVendorCDR_20' ) start [2025-02-02 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386820', 'tblTempVendorCDR_20' ) end [2025-02-02 16:11:18] Production.INFO: ProcessCDR(1,14386820,1,1,2) [2025-02-02 16:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386820', 'tblTempUsageDetail_20' ) start [2025-02-02 16:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386820', 'tblTempUsageDetail_20' ) end [2025-02-02 16:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:11:21] Production.INFO: ==18311== Releasing lock... [2025-02-02 16:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:11:21] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 16:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:12:06 [end_date_ymd] => 2025-02-02 16:12:06 [RateCDR] => 1 ) [2025-02-02 16: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-02 13:12:06' and `end` < '2025-02-02 16: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-02 16:12:19] Production.INFO: count ==1396 [2025-02-02 16:12:19] Production.ERROR: pbx CDR StartTime 2025-02-02 13:12:06 - End Time 2025-02-02 16:12:06 [2025-02-02 16:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386825', 'tblTempUsageDetail_20' ) start [2025-02-02 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386825', 'tblTempUsageDetail_20' ) end [2025-02-02 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386825', 'tblTempVendorCDR_20' ) start [2025-02-02 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386825', 'tblTempVendorCDR_20' ) end [2025-02-02 16:12:19] Production.INFO: ProcessCDR(1,14386825,1,1,2) [2025-02-02 16:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386825', 'tblTempUsageDetail_20' ) start [2025-02-02 16:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386825', 'tblTempUsageDetail_20' ) end [2025-02-02 16:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:12:23] Production.INFO: ==18414== Releasing lock... [2025-02-02 16:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:12:23] Production.INFO: 39 MB #Memory Used# [2025-02-02 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:13:05 [end_date_ymd] => 2025-02-02 16:13:05 [RateCDR] => 1 ) [2025-02-02 16:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 13:13:05' and `end` < '2025-02-02 16:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 16:13:18] Production.INFO: count ==1389 [2025-02-02 16:13:18] Production.ERROR: pbx CDR StartTime 2025-02-02 13:13:05 - End Time 2025-02-02 16:13:05 [2025-02-02 16:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386830', 'tblTempUsageDetail_20' ) start [2025-02-02 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386830', 'tblTempUsageDetail_20' ) end [2025-02-02 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386830', 'tblTempVendorCDR_20' ) start [2025-02-02 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386830', 'tblTempVendorCDR_20' ) end [2025-02-02 16:13:18] Production.INFO: ProcessCDR(1,14386830,1,1,2) [2025-02-02 16:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386830', 'tblTempUsageDetail_20' ) start [2025-02-02 16:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386830', 'tblTempUsageDetail_20' ) end [2025-02-02 16:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:13:21] Production.INFO: ==18522== Releasing lock... [2025-02-02 16:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:13:21] Production.INFO: 39.5 MB #Memory Used# [2025-02-02 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:14:05 [end_date_ymd] => 2025-02-02 16:14:05 [RateCDR] => 1 ) [2025-02-02 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-02 13:14:05' and `end` < '2025-02-02 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-02 16:14:20] Production.INFO: count ==1384 [2025-02-02 16:14:20] Production.ERROR: pbx CDR StartTime 2025-02-02 13:14:05 - End Time 2025-02-02 16:14:05 [2025-02-02 16:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386835', 'tblTempUsageDetail_20' ) start [2025-02-02 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386835', 'tblTempUsageDetail_20' ) end [2025-02-02 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386835', 'tblTempVendorCDR_20' ) start [2025-02-02 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386835', 'tblTempVendorCDR_20' ) end [2025-02-02 16:14:20] Production.INFO: ProcessCDR(1,14386835,1,1,2) [2025-02-02 16:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386835', 'tblTempUsageDetail_20' ) start [2025-02-02 16:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386835', 'tblTempUsageDetail_20' ) end [2025-02-02 16:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:14:23] Production.INFO: ==18626== Releasing lock... [2025-02-02 16:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:14:23] Production.INFO: 39 MB #Memory Used# [2025-02-02 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:15:05 [end_date_ymd] => 2025-02-02 16:15:05 [RateCDR] => 1 ) [2025-02-02 16:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 13:15:05' and `end` < '2025-02-02 16:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 16:15:18] Production.INFO: count ==1384 [2025-02-02 16:15:18] Production.ERROR: pbx CDR StartTime 2025-02-02 13:15:05 - End Time 2025-02-02 16:15:05 [2025-02-02 16:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386840', 'tblTempUsageDetail_20' ) start [2025-02-02 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386840', 'tblTempUsageDetail_20' ) end [2025-02-02 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386840', 'tblTempVendorCDR_20' ) start [2025-02-02 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386840', 'tblTempVendorCDR_20' ) end [2025-02-02 16:15:18] Production.INFO: ProcessCDR(1,14386840,1,1,2) [2025-02-02 16:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386840', 'tblTempUsageDetail_20' ) start [2025-02-02 16:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386840', 'tblTempUsageDetail_20' ) end [2025-02-02 16:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:15:21] Production.INFO: ==18735== Releasing lock... [2025-02-02 16:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:15:21] Production.INFO: 39 MB #Memory Used# [2025-02-02 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:16:05 [end_date_ymd] => 2025-02-02 16:16:05 [RateCDR] => 1 ) [2025-02-02 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-02 13:16:05' and `end` < '2025-02-02 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-02 16:16:18] Production.INFO: count ==1382 [2025-02-02 16:16:19] Production.ERROR: pbx CDR StartTime 2025-02-02 13:16:05 - End Time 2025-02-02 16:16:05 [2025-02-02 16:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386845', 'tblTempUsageDetail_20' ) start [2025-02-02 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386845', 'tblTempUsageDetail_20' ) end [2025-02-02 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386845', 'tblTempVendorCDR_20' ) start [2025-02-02 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386845', 'tblTempVendorCDR_20' ) end [2025-02-02 16:16:19] Production.INFO: ProcessCDR(1,14386845,1,1,2) [2025-02-02 16:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386845', 'tblTempUsageDetail_20' ) start [2025-02-02 16:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386845', 'tblTempUsageDetail_20' ) end [2025-02-02 16:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:16:21] Production.INFO: ==18847== Releasing lock... [2025-02-02 16:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:16:21] Production.INFO: 39.25 MB #Memory Used# [2025-02-02 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:17:05 [end_date_ymd] => 2025-02-02 16:17:05 [RateCDR] => 1 ) [2025-02-02 16:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 13:17:05' and `end` < '2025-02-02 16:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 16:17:20] Production.INFO: count ==1381 [2025-02-02 16:17:20] Production.ERROR: pbx CDR StartTime 2025-02-02 13:17:05 - End Time 2025-02-02 16:17:05 [2025-02-02 16:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386850', 'tblTempUsageDetail_20' ) start [2025-02-02 16:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386850', 'tblTempUsageDetail_20' ) end [2025-02-02 16:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386850', 'tblTempVendorCDR_20' ) start [2025-02-02 16:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386850', 'tblTempVendorCDR_20' ) end [2025-02-02 16:17:20] Production.INFO: ProcessCDR(1,14386850,1,1,2) [2025-02-02 16:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386850', 'tblTempUsageDetail_20' ) start [2025-02-02 16:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386850', 'tblTempUsageDetail_20' ) end [2025-02-02 16:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:17:24] Production.INFO: ==18954== Releasing lock... [2025-02-02 16:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:17:24] Production.INFO: 39 MB #Memory Used# [2025-02-02 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:18:05 [end_date_ymd] => 2025-02-02 16:18:05 [RateCDR] => 1 ) [2025-02-02 16:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 13:18:05' and `end` < '2025-02-02 16:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 16:18:18] Production.INFO: count ==1390 [2025-02-02 16:18:18] Production.ERROR: pbx CDR StartTime 2025-02-02 13:18:05 - End Time 2025-02-02 16:18:05 [2025-02-02 16:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386855', 'tblTempUsageDetail_20' ) start [2025-02-02 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386855', 'tblTempUsageDetail_20' ) end [2025-02-02 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386855', 'tblTempVendorCDR_20' ) start [2025-02-02 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386855', 'tblTempVendorCDR_20' ) end [2025-02-02 16:18:18] Production.INFO: ProcessCDR(1,14386855,1,1,2) [2025-02-02 16:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386855', 'tblTempUsageDetail_20' ) start [2025-02-02 16:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386855', 'tblTempUsageDetail_20' ) end [2025-02-02 16:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:18:22] Production.INFO: ==19073== Releasing lock... [2025-02-02 16:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:18:22] Production.INFO: 39 MB #Memory Used# [2025-02-02 16:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:19:06 [end_date_ymd] => 2025-02-02 16:19:06 [RateCDR] => 1 ) [2025-02-02 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-02 13:19:06' and `end` < '2025-02-02 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-02 16:19:18] Production.INFO: count ==1392 [2025-02-02 16:19:19] Production.ERROR: pbx CDR StartTime 2025-02-02 13:19:06 - End Time 2025-02-02 16:19:06 [2025-02-02 16:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386860', 'tblTempUsageDetail_20' ) start [2025-02-02 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386860', 'tblTempUsageDetail_20' ) end [2025-02-02 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386860', 'tblTempVendorCDR_20' ) start [2025-02-02 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386860', 'tblTempVendorCDR_20' ) end [2025-02-02 16:19:19] Production.INFO: ProcessCDR(1,14386860,1,1,2) [2025-02-02 16:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386860', 'tblTempUsageDetail_20' ) start [2025-02-02 16:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386860', 'tblTempUsageDetail_20' ) end [2025-02-02 16:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:19:22] Production.INFO: ==19224== Releasing lock... [2025-02-02 16:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:19:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-02 16:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:20:05 [end_date_ymd] => 2025-02-02 16:20:05 [RateCDR] => 1 ) [2025-02-02 16:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 13:20:05' and `end` < '2025-02-02 16:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 16:20:18] Production.INFO: count ==1396 [2025-02-02 16:20:19] Production.ERROR: pbx CDR StartTime 2025-02-02 13:20:05 - End Time 2025-02-02 16:20:05 [2025-02-02 16:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386866', 'tblTempUsageDetail_20' ) start [2025-02-02 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386866', 'tblTempUsageDetail_20' ) end [2025-02-02 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386866', 'tblTempVendorCDR_20' ) start [2025-02-02 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386866', 'tblTempVendorCDR_20' ) end [2025-02-02 16:20:19] Production.INFO: ProcessCDR(1,14386866,1,1,2) [2025-02-02 16:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386866', 'tblTempUsageDetail_20' ) start [2025-02-02 16:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386866', 'tblTempUsageDetail_20' ) end [2025-02-02 16:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:20:22] Production.INFO: ==19327== Releasing lock... [2025-02-02 16:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:20:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-02 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:21:05 [end_date_ymd] => 2025-02-02 16:21:05 [RateCDR] => 1 ) [2025-02-02 16:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 13:21:05' and `end` < '2025-02-02 16:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 16:21:19] Production.INFO: count ==1377 [2025-02-02 16:21:20] Production.ERROR: pbx CDR StartTime 2025-02-02 13:21:05 - End Time 2025-02-02 16:21:05 [2025-02-02 16:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386871', 'tblTempUsageDetail_20' ) start [2025-02-02 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386871', 'tblTempUsageDetail_20' ) end [2025-02-02 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386871', 'tblTempVendorCDR_20' ) start [2025-02-02 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386871', 'tblTempVendorCDR_20' ) end [2025-02-02 16:21:20] Production.INFO: ProcessCDR(1,14386871,1,1,2) [2025-02-02 16:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386871', 'tblTempUsageDetail_20' ) start [2025-02-02 16:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386871', 'tblTempUsageDetail_20' ) end [2025-02-02 16:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:21:23] Production.INFO: ==19434== Releasing lock... [2025-02-02 16:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:21:23] Production.INFO: 39 MB #Memory Used# [2025-02-02 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:22:05 [end_date_ymd] => 2025-02-02 16:22:05 [RateCDR] => 1 ) [2025-02-02 16:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 13:22:05' and `end` < '2025-02-02 16:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 16:22:18] Production.INFO: count ==1365 [2025-02-02 16:22:18] Production.ERROR: pbx CDR StartTime 2025-02-02 13:22:05 - End Time 2025-02-02 16:22:05 [2025-02-02 16:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386876', 'tblTempUsageDetail_20' ) start [2025-02-02 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386876', 'tblTempUsageDetail_20' ) end [2025-02-02 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386876', 'tblTempVendorCDR_20' ) start [2025-02-02 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386876', 'tblTempVendorCDR_20' ) end [2025-02-02 16:22:18] Production.INFO: ProcessCDR(1,14386876,1,1,2) [2025-02-02 16:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386876', 'tblTempUsageDetail_20' ) start [2025-02-02 16:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386876', 'tblTempUsageDetail_20' ) end [2025-02-02 16:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:22:23] Production.INFO: ==19539== Releasing lock... [2025-02-02 16:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:22:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:23:05 [end_date_ymd] => 2025-02-02 16:23:05 [RateCDR] => 1 ) [2025-02-02 16:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 13:23:05' and `end` < '2025-02-02 16:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 16:23:20] Production.INFO: count ==1277 [2025-02-02 16:23:20] Production.ERROR: pbx CDR StartTime 2025-02-02 13:23:05 - End Time 2025-02-02 16:23:05 [2025-02-02 16:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386881', 'tblTempUsageDetail_20' ) start [2025-02-02 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386881', 'tblTempUsageDetail_20' ) end [2025-02-02 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386881', 'tblTempVendorCDR_20' ) start [2025-02-02 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386881', 'tblTempVendorCDR_20' ) end [2025-02-02 16:23:21] Production.INFO: ProcessCDR(1,14386881,1,1,2) [2025-02-02 16:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386881', 'tblTempUsageDetail_20' ) start [2025-02-02 16:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386881', 'tblTempUsageDetail_20' ) end [2025-02-02 16:23:25] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:23:25] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:23:25] Production.INFO: ==19640== Releasing lock... [2025-02-02 16:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:23:25] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:24:05 [end_date_ymd] => 2025-02-02 16:24:05 [RateCDR] => 1 ) [2025-02-02 16:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 13:24:05' and `end` < '2025-02-02 16:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 16:24:18] Production.INFO: count ==1260 [2025-02-02 16:24:18] Production.ERROR: pbx CDR StartTime 2025-02-02 13:24:05 - End Time 2025-02-02 16:24:05 [2025-02-02 16:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386886', 'tblTempUsageDetail_20' ) start [2025-02-02 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386886', 'tblTempUsageDetail_20' ) end [2025-02-02 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386886', 'tblTempVendorCDR_20' ) start [2025-02-02 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386886', 'tblTempVendorCDR_20' ) end [2025-02-02 16:24:18] Production.INFO: ProcessCDR(1,14386886,1,1,2) [2025-02-02 16:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386886', 'tblTempUsageDetail_20' ) start [2025-02-02 16:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386886', 'tblTempUsageDetail_20' ) end [2025-02-02 16:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:24:22] Production.INFO: ==19711== Releasing lock... [2025-02-02 16:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:24:22] Production.INFO: 38 MB #Memory Used# [2025-02-02 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:25:05 [end_date_ymd] => 2025-02-02 16:25:05 [RateCDR] => 1 ) [2025-02-02 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-02 13:25:05' and `end` < '2025-02-02 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-02 16:25:18] Production.INFO: count ==1248 [2025-02-02 16:25:18] Production.ERROR: pbx CDR StartTime 2025-02-02 13:25:05 - End Time 2025-02-02 16:25:05 [2025-02-02 16:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386891', 'tblTempUsageDetail_20' ) start [2025-02-02 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386891', 'tblTempUsageDetail_20' ) end [2025-02-02 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386891', 'tblTempVendorCDR_20' ) start [2025-02-02 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386891', 'tblTempVendorCDR_20' ) end [2025-02-02 16:25:18] Production.INFO: ProcessCDR(1,14386891,1,1,2) [2025-02-02 16:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386891', 'tblTempUsageDetail_20' ) start [2025-02-02 16:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386891', 'tblTempUsageDetail_20' ) end [2025-02-02 16:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:25:23] Production.INFO: ==19782== Releasing lock... [2025-02-02 16:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:25:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 16:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:26:06 [end_date_ymd] => 2025-02-02 16:26:06 [RateCDR] => 1 ) [2025-02-02 16:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 13:26:06' and `end` < '2025-02-02 16:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 16:26:20] Production.INFO: count ==1241 [2025-02-02 16:26:20] Production.ERROR: pbx CDR StartTime 2025-02-02 13:26:06 - End Time 2025-02-02 16:26:06 [2025-02-02 16:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386896', 'tblTempUsageDetail_20' ) start [2025-02-02 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386896', 'tblTempUsageDetail_20' ) end [2025-02-02 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386896', 'tblTempVendorCDR_20' ) start [2025-02-02 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386896', 'tblTempVendorCDR_20' ) end [2025-02-02 16:26:20] Production.INFO: ProcessCDR(1,14386896,1,1,2) [2025-02-02 16:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386896', 'tblTempUsageDetail_20' ) start [2025-02-02 16:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386896', 'tblTempUsageDetail_20' ) end [2025-02-02 16:26:25] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:26:25] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:26:25] Production.INFO: ==19858== Releasing lock... [2025-02-02 16:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:26:25] Production.INFO: 37.75 MB #Memory Used# [2025-02-02 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:27:05 [end_date_ymd] => 2025-02-02 16:27:05 [RateCDR] => 1 ) [2025-02-02 16:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 13:27:05' and `end` < '2025-02-02 16:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 16:27:19] Production.INFO: count ==1239 [2025-02-02 16:27:19] Production.ERROR: pbx CDR StartTime 2025-02-02 13:27:05 - End Time 2025-02-02 16:27:05 [2025-02-02 16:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386901', 'tblTempUsageDetail_20' ) start [2025-02-02 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386901', 'tblTempUsageDetail_20' ) end [2025-02-02 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386901', 'tblTempVendorCDR_20' ) start [2025-02-02 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386901', 'tblTempVendorCDR_20' ) end [2025-02-02 16:27:19] Production.INFO: ProcessCDR(1,14386901,1,1,2) [2025-02-02 16:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386901', 'tblTempUsageDetail_20' ) start [2025-02-02 16:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386901', 'tblTempUsageDetail_20' ) end [2025-02-02 16:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:27:22] Production.INFO: ==19930== Releasing lock... [2025-02-02 16:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:27:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-02 16:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:28:06 [end_date_ymd] => 2025-02-02 16:28:06 [RateCDR] => 1 ) [2025-02-02 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-02 13:28:06' and `end` < '2025-02-02 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-02 16:28:18] Production.INFO: count ==1238 [2025-02-02 16:28:19] Production.ERROR: pbx CDR StartTime 2025-02-02 13:28:06 - End Time 2025-02-02 16:28:06 [2025-02-02 16:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386906', 'tblTempUsageDetail_20' ) start [2025-02-02 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386906', 'tblTempUsageDetail_20' ) end [2025-02-02 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386906', 'tblTempVendorCDR_20' ) start [2025-02-02 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386906', 'tblTempVendorCDR_20' ) end [2025-02-02 16:28:19] Production.INFO: ProcessCDR(1,14386906,1,1,2) [2025-02-02 16:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386906', 'tblTempUsageDetail_20' ) start [2025-02-02 16:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386906', 'tblTempUsageDetail_20' ) end [2025-02-02 16:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:28:22] Production.INFO: ==20001== Releasing lock... [2025-02-02 16:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:28:22] Production.INFO: 38 MB #Memory Used# [2025-02-02 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:29:05 [end_date_ymd] => 2025-02-02 16:29:05 [RateCDR] => 1 ) [2025-02-02 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-02 13:29:05' and `end` < '2025-02-02 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-02 16:29:17] Production.INFO: count ==1238 [2025-02-02 16:29:18] Production.ERROR: pbx CDR StartTime 2025-02-02 13:29:05 - End Time 2025-02-02 16:29:05 [2025-02-02 16:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386911', 'tblTempUsageDetail_20' ) start [2025-02-02 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386911', 'tblTempUsageDetail_20' ) end [2025-02-02 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386911', 'tblTempVendorCDR_20' ) start [2025-02-02 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386911', 'tblTempVendorCDR_20' ) end [2025-02-02 16:29:18] Production.INFO: ProcessCDR(1,14386911,1,1,2) [2025-02-02 16:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386911', 'tblTempUsageDetail_20' ) start [2025-02-02 16:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386911', 'tblTempUsageDetail_20' ) end [2025-02-02 16:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:29:21] Production.INFO: ==20072== Releasing lock... [2025-02-02 16:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:29:21] Production.INFO: 38 MB #Memory Used# [2025-02-02 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:30:06 [end_date_ymd] => 2025-02-02 16:30:06 [RateCDR] => 1 ) [2025-02-02 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-02 13:30:06' and `end` < '2025-02-02 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-02 16:30:19] Production.INFO: count ==1240 [2025-02-02 16:30:19] Production.ERROR: pbx CDR StartTime 2025-02-02 13:30:06 - End Time 2025-02-02 16:30:06 [2025-02-02 16:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386916', 'tblTempUsageDetail_20' ) start [2025-02-02 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386916', 'tblTempUsageDetail_20' ) end [2025-02-02 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386916', 'tblTempVendorCDR_20' ) start [2025-02-02 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386916', 'tblTempVendorCDR_20' ) end [2025-02-02 16:30:19] Production.INFO: ProcessCDR(1,14386916,1,1,2) [2025-02-02 16:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386916', 'tblTempUsageDetail_20' ) start [2025-02-02 16:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386916', 'tblTempUsageDetail_20' ) end [2025-02-02 16:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:30:22] Production.INFO: ==20149== Releasing lock... [2025-02-02 16:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:30:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-02 16:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:31:04 [end_date_ymd] => 2025-02-02 16:31:04 [RateCDR] => 1 ) [2025-02-02 16:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 13:31:04' and `end` < '2025-02-02 16:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 16:31:17] Production.INFO: count ==1281 [2025-02-02 16:31:18] Production.ERROR: pbx CDR StartTime 2025-02-02 13:31:04 - End Time 2025-02-02 16:31:04 [2025-02-02 16:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386922', 'tblTempUsageDetail_20' ) start [2025-02-02 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386922', 'tblTempUsageDetail_20' ) end [2025-02-02 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386922', 'tblTempVendorCDR_20' ) start [2025-02-02 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386922', 'tblTempVendorCDR_20' ) end [2025-02-02 16:31:18] Production.INFO: ProcessCDR(1,14386922,1,1,2) [2025-02-02 16:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386922', 'tblTempUsageDetail_20' ) start [2025-02-02 16:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386922', 'tblTempUsageDetail_20' ) end [2025-02-02 16:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:31:21] Production.INFO: ==20222== Releasing lock... [2025-02-02 16:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:31:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:32:05 [end_date_ymd] => 2025-02-02 16:32:05 [RateCDR] => 1 ) [2025-02-02 16:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 13:32:05' and `end` < '2025-02-02 16:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 16:32:19] Production.INFO: count ==1271 [2025-02-02 16:32:19] Production.ERROR: pbx CDR StartTime 2025-02-02 13:32:05 - End Time 2025-02-02 16:32:05 [2025-02-02 16:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386927', 'tblTempUsageDetail_20' ) start [2025-02-02 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386927', 'tblTempUsageDetail_20' ) end [2025-02-02 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386927', 'tblTempVendorCDR_20' ) start [2025-02-02 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386927', 'tblTempVendorCDR_20' ) end [2025-02-02 16:32:19] Production.INFO: ProcessCDR(1,14386927,1,1,2) [2025-02-02 16:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386927', 'tblTempUsageDetail_20' ) start [2025-02-02 16:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386927', 'tblTempUsageDetail_20' ) end [2025-02-02 16:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:32:22] Production.INFO: ==20292== Releasing lock... [2025-02-02 16:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:32:22] Production.INFO: 38 MB #Memory Used# [2025-02-02 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:33:05 [end_date_ymd] => 2025-02-02 16:33:05 [RateCDR] => 1 ) [2025-02-02 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-02 13:33:05' and `end` < '2025-02-02 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-02 16:33:18] Production.INFO: count ==1269 [2025-02-02 16:33:18] Production.ERROR: pbx CDR StartTime 2025-02-02 13:33:05 - End Time 2025-02-02 16:33:05 [2025-02-02 16:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386932', 'tblTempUsageDetail_20' ) start [2025-02-02 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386932', 'tblTempUsageDetail_20' ) end [2025-02-02 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386932', 'tblTempVendorCDR_20' ) start [2025-02-02 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386932', 'tblTempVendorCDR_20' ) end [2025-02-02 16:33:18] Production.INFO: ProcessCDR(1,14386932,1,1,2) [2025-02-02 16:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386932', 'tblTempUsageDetail_20' ) start [2025-02-02 16:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386932', 'tblTempUsageDetail_20' ) end [2025-02-02 16:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:33:21] Production.INFO: ==20362== Releasing lock... [2025-02-02 16:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:33:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:34:05 [end_date_ymd] => 2025-02-02 16:34:05 [RateCDR] => 1 ) [2025-02-02 16:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 13:34:05' and `end` < '2025-02-02 16:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 16:34:18] Production.INFO: count ==1269 [2025-02-02 16:34:18] Production.ERROR: pbx CDR StartTime 2025-02-02 13:34:05 - End Time 2025-02-02 16:34:05 [2025-02-02 16:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386937', 'tblTempUsageDetail_20' ) start [2025-02-02 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386937', 'tblTempUsageDetail_20' ) end [2025-02-02 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386937', 'tblTempVendorCDR_20' ) start [2025-02-02 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386937', 'tblTempVendorCDR_20' ) end [2025-02-02 16:34:18] Production.INFO: ProcessCDR(1,14386937,1,1,2) [2025-02-02 16:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386937', 'tblTempUsageDetail_20' ) start [2025-02-02 16:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386937', 'tblTempUsageDetail_20' ) end [2025-02-02 16:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:34:21] Production.INFO: ==20432== Releasing lock... [2025-02-02 16:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:34:21] Production.INFO: 38 MB #Memory Used# [2025-02-02 16:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:35:06 [end_date_ymd] => 2025-02-02 16:35:06 [RateCDR] => 1 ) [2025-02-02 16:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 13:35:06' and `end` < '2025-02-02 16:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 16:35:19] Production.INFO: count ==1253 [2025-02-02 16:35:19] Production.ERROR: pbx CDR StartTime 2025-02-02 13:35:06 - End Time 2025-02-02 16:35:06 [2025-02-02 16:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386942', 'tblTempUsageDetail_20' ) start [2025-02-02 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386942', 'tblTempUsageDetail_20' ) end [2025-02-02 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386942', 'tblTempVendorCDR_20' ) start [2025-02-02 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386942', 'tblTempVendorCDR_20' ) end [2025-02-02 16:35:19] Production.INFO: ProcessCDR(1,14386942,1,1,2) [2025-02-02 16:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386942', 'tblTempUsageDetail_20' ) start [2025-02-02 16:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386942', 'tblTempUsageDetail_20' ) end [2025-02-02 16:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:35:22] Production.INFO: ==20543== Releasing lock... [2025-02-02 16:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:35:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:36:05 [end_date_ymd] => 2025-02-02 16:36:05 [RateCDR] => 1 ) [2025-02-02 16:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 13:36:05' and `end` < '2025-02-02 16:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 16:36:18] Production.INFO: count ==1235 [2025-02-02 16:36:19] Production.ERROR: pbx CDR StartTime 2025-02-02 13:36:05 - End Time 2025-02-02 16:36:05 [2025-02-02 16:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386947', 'tblTempUsageDetail_20' ) start [2025-02-02 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386947', 'tblTempUsageDetail_20' ) end [2025-02-02 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386947', 'tblTempVendorCDR_20' ) start [2025-02-02 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386947', 'tblTempVendorCDR_20' ) end [2025-02-02 16:36:19] Production.INFO: ProcessCDR(1,14386947,1,1,2) [2025-02-02 16:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386947', 'tblTempUsageDetail_20' ) start [2025-02-02 16:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386947', 'tblTempUsageDetail_20' ) end [2025-02-02 16:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:36:23] Production.INFO: ==20615== Releasing lock... [2025-02-02 16:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:36:23] Production.INFO: 38 MB #Memory Used# [2025-02-02 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:37:05 [end_date_ymd] => 2025-02-02 16:37:05 [RateCDR] => 1 ) [2025-02-02 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-02 13:37:05' and `end` < '2025-02-02 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-02 16:37:18] Production.INFO: count ==1237 [2025-02-02 16:37:18] Production.ERROR: pbx CDR StartTime 2025-02-02 13:37:05 - End Time 2025-02-02 16:37:05 [2025-02-02 16:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386952', 'tblTempUsageDetail_20' ) start [2025-02-02 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386952', 'tblTempUsageDetail_20' ) end [2025-02-02 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386952', 'tblTempVendorCDR_20' ) start [2025-02-02 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386952', 'tblTempVendorCDR_20' ) end [2025-02-02 16:37:18] Production.INFO: ProcessCDR(1,14386952,1,1,2) [2025-02-02 16:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386952', 'tblTempUsageDetail_20' ) start [2025-02-02 16:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386952', 'tblTempUsageDetail_20' ) end [2025-02-02 16:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:37:23] Production.INFO: ==20687== Releasing lock... [2025-02-02 16:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:37:23] Production.INFO: 38 MB #Memory Used# [2025-02-02 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:38:05 [end_date_ymd] => 2025-02-02 16:38:05 [RateCDR] => 1 ) [2025-02-02 16:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 13:38:05' and `end` < '2025-02-02 16:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 16:38:18] Production.INFO: count ==1238 [2025-02-02 16:38:18] Production.ERROR: pbx CDR StartTime 2025-02-02 13:38:05 - End Time 2025-02-02 16:38:05 [2025-02-02 16:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386957', 'tblTempUsageDetail_20' ) start [2025-02-02 16:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386957', 'tblTempUsageDetail_20' ) end [2025-02-02 16:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386957', 'tblTempVendorCDR_20' ) start [2025-02-02 16:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386957', 'tblTempVendorCDR_20' ) end [2025-02-02 16:38:18] Production.INFO: ProcessCDR(1,14386957,1,1,2) [2025-02-02 16:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386957', 'tblTempUsageDetail_20' ) start [2025-02-02 16:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386957', 'tblTempUsageDetail_20' ) end [2025-02-02 16:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:38:23] Production.INFO: ==20763== Releasing lock... [2025-02-02 16:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:38:23] Production.INFO: 38 MB #Memory Used# [2025-02-02 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:39:05 [end_date_ymd] => 2025-02-02 16:39:05 [RateCDR] => 1 ) [2025-02-02 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-02 13:39:05' and `end` < '2025-02-02 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-02 16:39:17] Production.INFO: count ==1252 [2025-02-02 16:39:18] Production.ERROR: pbx CDR StartTime 2025-02-02 13:39:05 - End Time 2025-02-02 16:39:05 [2025-02-02 16:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386962', 'tblTempUsageDetail_20' ) start [2025-02-02 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386962', 'tblTempUsageDetail_20' ) end [2025-02-02 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386962', 'tblTempVendorCDR_20' ) start [2025-02-02 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386962', 'tblTempVendorCDR_20' ) end [2025-02-02 16:39:18] Production.INFO: ProcessCDR(1,14386962,1,1,2) [2025-02-02 16:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386962', 'tblTempUsageDetail_20' ) start [2025-02-02 16:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386962', 'tblTempUsageDetail_20' ) end [2025-02-02 16:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:39:23] Production.INFO: ==20833== Releasing lock... [2025-02-02 16:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:39:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:40:06 [end_date_ymd] => 2025-02-02 16:40:06 [RateCDR] => 1 ) [2025-02-02 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-02 13:40:06' and `end` < '2025-02-02 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-02 16:40:19] Production.INFO: count ==1252 [2025-02-02 16:40:19] Production.ERROR: pbx CDR StartTime 2025-02-02 13:40:06 - End Time 2025-02-02 16:40:06 [2025-02-02 16:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386968', 'tblTempUsageDetail_20' ) start [2025-02-02 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386968', 'tblTempUsageDetail_20' ) end [2025-02-02 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386968', 'tblTempVendorCDR_20' ) start [2025-02-02 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386968', 'tblTempVendorCDR_20' ) end [2025-02-02 16:40:19] Production.INFO: ProcessCDR(1,14386968,1,1,2) [2025-02-02 16:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386968', 'tblTempUsageDetail_20' ) start [2025-02-02 16:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386968', 'tblTempUsageDetail_20' ) end [2025-02-02 16:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:40:23] Production.INFO: ==20906== Releasing lock... [2025-02-02 16:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:40:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:41:05 [end_date_ymd] => 2025-02-02 16:41:05 [RateCDR] => 1 ) [2025-02-02 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-02 13:41:05' and `end` < '2025-02-02 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-02 16:41:18] Production.INFO: count ==1261 [2025-02-02 16:41:19] Production.ERROR: pbx CDR StartTime 2025-02-02 13:41:05 - End Time 2025-02-02 16:41:05 [2025-02-02 16:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386973', 'tblTempUsageDetail_20' ) start [2025-02-02 16:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386973', 'tblTempUsageDetail_20' ) end [2025-02-02 16:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386973', 'tblTempVendorCDR_20' ) start [2025-02-02 16:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386973', 'tblTempVendorCDR_20' ) end [2025-02-02 16:41:19] Production.INFO: ProcessCDR(1,14386973,1,1,2) [2025-02-02 16:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386973', 'tblTempUsageDetail_20' ) start [2025-02-02 16:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386973', 'tblTempUsageDetail_20' ) end [2025-02-02 16:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:41:22] Production.INFO: ==20980== Releasing lock... [2025-02-02 16:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:41:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-02 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:42:05 [end_date_ymd] => 2025-02-02 16:42:05 [RateCDR] => 1 ) [2025-02-02 16:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 13:42:05' and `end` < '2025-02-02 16:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 16:42:18] Production.INFO: count ==1267 [2025-02-02 16:42:18] Production.ERROR: pbx CDR StartTime 2025-02-02 13:42:05 - End Time 2025-02-02 16:42:05 [2025-02-02 16:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386978', 'tblTempUsageDetail_20' ) start [2025-02-02 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386978', 'tblTempUsageDetail_20' ) end [2025-02-02 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386978', 'tblTempVendorCDR_20' ) start [2025-02-02 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386978', 'tblTempVendorCDR_20' ) end [2025-02-02 16:42:18] Production.INFO: ProcessCDR(1,14386978,1,1,2) [2025-02-02 16:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386978', 'tblTempUsageDetail_20' ) start [2025-02-02 16:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386978', 'tblTempUsageDetail_20' ) end [2025-02-02 16:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:42:22] Production.INFO: ==21052== Releasing lock... [2025-02-02 16:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:42:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:43:05 [end_date_ymd] => 2025-02-02 16:43:05 [RateCDR] => 1 ) [2025-02-02 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-02 13:43:05' and `end` < '2025-02-02 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-02 16:43:20] Production.INFO: count ==1271 [2025-02-02 16:43:20] Production.ERROR: pbx CDR StartTime 2025-02-02 13:43:05 - End Time 2025-02-02 16:43:05 [2025-02-02 16:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386983', 'tblTempUsageDetail_20' ) start [2025-02-02 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386983', 'tblTempUsageDetail_20' ) end [2025-02-02 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386983', 'tblTempVendorCDR_20' ) start [2025-02-02 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386983', 'tblTempVendorCDR_20' ) end [2025-02-02 16:43:20] Production.INFO: ProcessCDR(1,14386983,1,1,2) [2025-02-02 16:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386983', 'tblTempUsageDetail_20' ) start [2025-02-02 16:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386983', 'tblTempUsageDetail_20' ) end [2025-02-02 16:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:43:23] Production.INFO: ==21122== Releasing lock... [2025-02-02 16:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:43:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:44:05 [end_date_ymd] => 2025-02-02 16:44:05 [RateCDR] => 1 ) [2025-02-02 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-02 13:44:05' and `end` < '2025-02-02 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-02 16:44:18] Production.INFO: count ==1274 [2025-02-02 16:44:18] Production.ERROR: pbx CDR StartTime 2025-02-02 13:44:05 - End Time 2025-02-02 16:44:05 [2025-02-02 16:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386988', 'tblTempUsageDetail_20' ) start [2025-02-02 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386988', 'tblTempUsageDetail_20' ) end [2025-02-02 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386988', 'tblTempVendorCDR_20' ) start [2025-02-02 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386988', 'tblTempVendorCDR_20' ) end [2025-02-02 16:44:18] Production.INFO: ProcessCDR(1,14386988,1,1,2) [2025-02-02 16:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386988', 'tblTempUsageDetail_20' ) start [2025-02-02 16:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386988', 'tblTempUsageDetail_20' ) end [2025-02-02 16:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:44:22] Production.INFO: ==21200== Releasing lock... [2025-02-02 16:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:44:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:45:05 [end_date_ymd] => 2025-02-02 16:45:05 [RateCDR] => 1 ) [2025-02-02 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-02 13:45:05' and `end` < '2025-02-02 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-02 16:45:18] Production.INFO: count ==1271 [2025-02-02 16:45:18] Production.ERROR: pbx CDR StartTime 2025-02-02 13:45:05 - End Time 2025-02-02 16:45:05 [2025-02-02 16:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386993', 'tblTempUsageDetail_20' ) start [2025-02-02 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386993', 'tblTempUsageDetail_20' ) end [2025-02-02 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386993', 'tblTempVendorCDR_20' ) start [2025-02-02 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386993', 'tblTempVendorCDR_20' ) end [2025-02-02 16:45:18] Production.INFO: ProcessCDR(1,14386993,1,1,2) [2025-02-02 16:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386993', 'tblTempUsageDetail_20' ) start [2025-02-02 16:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386993', 'tblTempUsageDetail_20' ) end [2025-02-02 16:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:45:22] Production.INFO: ==21273== Releasing lock... [2025-02-02 16:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:45:22] Production.INFO: 38 MB #Memory Used# [2025-02-02 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:46:05 [end_date_ymd] => 2025-02-02 16:46:05 [RateCDR] => 1 ) [2025-02-02 16:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 13:46:05' and `end` < '2025-02-02 16:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 16:46:19] Production.INFO: count ==1271 [2025-02-02 16:46:19] Production.ERROR: pbx CDR StartTime 2025-02-02 13:46:05 - End Time 2025-02-02 16:46:05 [2025-02-02 16:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386998', 'tblTempUsageDetail_20' ) start [2025-02-02 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14386998', 'tblTempUsageDetail_20' ) end [2025-02-02 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386998', 'tblTempVendorCDR_20' ) start [2025-02-02 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14386998', 'tblTempVendorCDR_20' ) end [2025-02-02 16:46:19] Production.INFO: ProcessCDR(1,14386998,1,1,2) [2025-02-02 16:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14386998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14386998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14386998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14386998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386998', 'tblTempUsageDetail_20' ) start [2025-02-02 16:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14386998', 'tblTempUsageDetail_20' ) end [2025-02-02 16:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:46:23] Production.INFO: ==21345== Releasing lock... [2025-02-02 16:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:46:23] Production.INFO: 38 MB #Memory Used# [2025-02-02 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:47:05 [end_date_ymd] => 2025-02-02 16:47:05 [RateCDR] => 1 ) [2025-02-02 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-02 13:47:05' and `end` < '2025-02-02 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-02 16:47:18] Production.INFO: count ==1272 [2025-02-02 16:47:18] Production.ERROR: pbx CDR StartTime 2025-02-02 13:47:05 - End Time 2025-02-02 16:47:05 [2025-02-02 16:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387003', 'tblTempUsageDetail_20' ) start [2025-02-02 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387003', 'tblTempUsageDetail_20' ) end [2025-02-02 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387003', 'tblTempVendorCDR_20' ) start [2025-02-02 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387003', 'tblTempVendorCDR_20' ) end [2025-02-02 16:47:18] Production.INFO: ProcessCDR(1,14387003,1,1,2) [2025-02-02 16:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387003', 'tblTempUsageDetail_20' ) start [2025-02-02 16:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387003', 'tblTempUsageDetail_20' ) end [2025-02-02 16:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:47:23] Production.INFO: ==21417== Releasing lock... [2025-02-02 16:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:47:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 16:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:48:06 [end_date_ymd] => 2025-02-02 16:48:06 [RateCDR] => 1 ) [2025-02-02 16:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 13:48:06' and `end` < '2025-02-02 16:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 16:48:19] Production.INFO: count ==1276 [2025-02-02 16:48:19] Production.ERROR: pbx CDR StartTime 2025-02-02 13:48:06 - End Time 2025-02-02 16:48:06 [2025-02-02 16:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387008', 'tblTempUsageDetail_20' ) start [2025-02-02 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387008', 'tblTempUsageDetail_20' ) end [2025-02-02 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387008', 'tblTempVendorCDR_20' ) start [2025-02-02 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387008', 'tblTempVendorCDR_20' ) end [2025-02-02 16:48:19] Production.INFO: ProcessCDR(1,14387008,1,1,2) [2025-02-02 16:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387008', 'tblTempUsageDetail_20' ) start [2025-02-02 16:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387008', 'tblTempUsageDetail_20' ) end [2025-02-02 16:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:48:24] Production.INFO: ==21487== Releasing lock... [2025-02-02 16:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:48:24] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:49:05 [end_date_ymd] => 2025-02-02 16:49:05 [RateCDR] => 1 ) [2025-02-02 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-02 13:49:05' and `end` < '2025-02-02 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-02 16:49:18] Production.INFO: count ==1276 [2025-02-02 16:49:18] Production.ERROR: pbx CDR StartTime 2025-02-02 13:49:05 - End Time 2025-02-02 16:49:05 [2025-02-02 16:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387013', 'tblTempUsageDetail_20' ) start [2025-02-02 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387013', 'tblTempUsageDetail_20' ) end [2025-02-02 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387013', 'tblTempVendorCDR_20' ) start [2025-02-02 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387013', 'tblTempVendorCDR_20' ) end [2025-02-02 16:49:18] Production.INFO: ProcessCDR(1,14387013,1,1,2) [2025-02-02 16:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387013', 'tblTempUsageDetail_20' ) start [2025-02-02 16:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387013', 'tblTempUsageDetail_20' ) end [2025-02-02 16:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:49:21] Production.INFO: ==21558== Releasing lock... [2025-02-02 16:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:49:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:50:06 [end_date_ymd] => 2025-02-02 16:50:06 [RateCDR] => 1 ) [2025-02-02 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-02 13:50:06' and `end` < '2025-02-02 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-02 16:50:19] Production.INFO: count ==1280 [2025-02-02 16:50:19] Production.ERROR: pbx CDR StartTime 2025-02-02 13:50:06 - End Time 2025-02-02 16:50:06 [2025-02-02 16:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387019', 'tblTempUsageDetail_20' ) start [2025-02-02 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387019', 'tblTempUsageDetail_20' ) end [2025-02-02 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387019', 'tblTempVendorCDR_20' ) start [2025-02-02 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387019', 'tblTempVendorCDR_20' ) end [2025-02-02 16:50:19] Production.INFO: ProcessCDR(1,14387019,1,1,2) [2025-02-02 16:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387019', 'tblTempUsageDetail_20' ) start [2025-02-02 16:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387019', 'tblTempUsageDetail_20' ) end [2025-02-02 16:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:50:22] Production.INFO: ==21670== Releasing lock... [2025-02-02 16:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:50:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:51:05 [end_date_ymd] => 2025-02-02 16:51:05 [RateCDR] => 1 ) [2025-02-02 16:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 13:51:05' and `end` < '2025-02-02 16:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 16:51:18] Production.INFO: count ==1317 [2025-02-02 16:51:18] Production.ERROR: pbx CDR StartTime 2025-02-02 13:51:05 - End Time 2025-02-02 16:51:05 [2025-02-02 16:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387024', 'tblTempUsageDetail_20' ) start [2025-02-02 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387024', 'tblTempUsageDetail_20' ) end [2025-02-02 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387024', 'tblTempVendorCDR_20' ) start [2025-02-02 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387024', 'tblTempVendorCDR_20' ) end [2025-02-02 16:51:18] Production.INFO: ProcessCDR(1,14387024,1,1,2) [2025-02-02 16:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387024', 'tblTempUsageDetail_20' ) start [2025-02-02 16:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387024', 'tblTempUsageDetail_20' ) end [2025-02-02 16:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:51:21] Production.INFO: ==21742== Releasing lock... [2025-02-02 16:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:51:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 16:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:52:06 [end_date_ymd] => 2025-02-02 16:52:06 [RateCDR] => 1 ) [2025-02-02 16: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-02 13:52:06' and `end` < '2025-02-02 16: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-02 16:52:18] Production.INFO: count ==1318 [2025-02-02 16:52:19] Production.ERROR: pbx CDR StartTime 2025-02-02 13:52:06 - End Time 2025-02-02 16:52:06 [2025-02-02 16:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387029', 'tblTempUsageDetail_20' ) start [2025-02-02 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387029', 'tblTempUsageDetail_20' ) end [2025-02-02 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387029', 'tblTempVendorCDR_20' ) start [2025-02-02 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387029', 'tblTempVendorCDR_20' ) end [2025-02-02 16:52:19] Production.INFO: ProcessCDR(1,14387029,1,1,2) [2025-02-02 16:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387029', 'tblTempUsageDetail_20' ) start [2025-02-02 16:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387029', 'tblTempUsageDetail_20' ) end [2025-02-02 16:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:52:22] Production.INFO: ==21814== Releasing lock... [2025-02-02 16:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:52:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 16:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:53:06 [end_date_ymd] => 2025-02-02 16:53:06 [RateCDR] => 1 ) [2025-02-02 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-02 13:53:06' and `end` < '2025-02-02 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-02 16:53:20] Production.INFO: count ==1316 [2025-02-02 16:53:20] Production.ERROR: pbx CDR StartTime 2025-02-02 13:53:06 - End Time 2025-02-02 16:53:06 [2025-02-02 16:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387034', 'tblTempUsageDetail_20' ) start [2025-02-02 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387034', 'tblTempUsageDetail_20' ) end [2025-02-02 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387034', 'tblTempVendorCDR_20' ) start [2025-02-02 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387034', 'tblTempVendorCDR_20' ) end [2025-02-02 16:53:20] Production.INFO: ProcessCDR(1,14387034,1,1,2) [2025-02-02 16:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387034', 'tblTempUsageDetail_20' ) start [2025-02-02 16:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387034', 'tblTempUsageDetail_20' ) end [2025-02-02 16:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:53:23] Production.INFO: ==21886== Releasing lock... [2025-02-02 16:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:53:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:54:05 [end_date_ymd] => 2025-02-02 16:54:05 [RateCDR] => 1 ) [2025-02-02 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-02 13:54:05' and `end` < '2025-02-02 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-02 16:54:19] Production.INFO: count ==1318 [2025-02-02 16:54:20] Production.ERROR: pbx CDR StartTime 2025-02-02 13:54:05 - End Time 2025-02-02 16:54:05 [2025-02-02 16:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387039', 'tblTempUsageDetail_20' ) start [2025-02-02 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387039', 'tblTempUsageDetail_20' ) end [2025-02-02 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387039', 'tblTempVendorCDR_20' ) start [2025-02-02 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387039', 'tblTempVendorCDR_20' ) end [2025-02-02 16:54:20] Production.INFO: ProcessCDR(1,14387039,1,1,2) [2025-02-02 16:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387039', 'tblTempUsageDetail_20' ) start [2025-02-02 16:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387039', 'tblTempUsageDetail_20' ) end [2025-02-02 16:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:54:24] Production.INFO: ==21955== Releasing lock... [2025-02-02 16:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:54:24] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 16:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:55:06 [end_date_ymd] => 2025-02-02 16:55:06 [RateCDR] => 1 ) [2025-02-02 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-02 13:55:06' and `end` < '2025-02-02 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-02 16:55:18] Production.INFO: count ==1320 [2025-02-02 16:55:19] Production.ERROR: pbx CDR StartTime 2025-02-02 13:55:06 - End Time 2025-02-02 16:55:06 [2025-02-02 16:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387044', 'tblTempUsageDetail_20' ) start [2025-02-02 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387044', 'tblTempUsageDetail_20' ) end [2025-02-02 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387044', 'tblTempVendorCDR_20' ) start [2025-02-02 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387044', 'tblTempVendorCDR_20' ) end [2025-02-02 16:55:19] Production.INFO: ProcessCDR(1,14387044,1,1,2) [2025-02-02 16:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387044', 'tblTempUsageDetail_20' ) start [2025-02-02 16:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387044', 'tblTempUsageDetail_20' ) end [2025-02-02 16:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:55:22] Production.INFO: ==22032== Releasing lock... [2025-02-02 16:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:55:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:56:05 [end_date_ymd] => 2025-02-02 16:56:05 [RateCDR] => 1 ) [2025-02-02 16:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 13:56:05' and `end` < '2025-02-02 16:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 16:56:19] Production.INFO: count ==1319 [2025-02-02 16:56:19] Production.ERROR: pbx CDR StartTime 2025-02-02 13:56:05 - End Time 2025-02-02 16:56:05 [2025-02-02 16:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387049', 'tblTempUsageDetail_20' ) start [2025-02-02 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387049', 'tblTempUsageDetail_20' ) end [2025-02-02 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387049', 'tblTempVendorCDR_20' ) start [2025-02-02 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387049', 'tblTempVendorCDR_20' ) end [2025-02-02 16:56:19] Production.INFO: ProcessCDR(1,14387049,1,1,2) [2025-02-02 16:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387049', 'tblTempUsageDetail_20' ) start [2025-02-02 16:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387049', 'tblTempUsageDetail_20' ) end [2025-02-02 16:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:56:23] Production.INFO: ==22103== Releasing lock... [2025-02-02 16:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:56:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:57:05 [end_date_ymd] => 2025-02-02 16:57:05 [RateCDR] => 1 ) [2025-02-02 16:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 13:57:05' and `end` < '2025-02-02 16:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 16:57:19] Production.INFO: count ==1319 [2025-02-02 16:57:19] Production.ERROR: pbx CDR StartTime 2025-02-02 13:57:05 - End Time 2025-02-02 16:57:05 [2025-02-02 16:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387054', 'tblTempUsageDetail_20' ) start [2025-02-02 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387054', 'tblTempUsageDetail_20' ) end [2025-02-02 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387054', 'tblTempVendorCDR_20' ) start [2025-02-02 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387054', 'tblTempVendorCDR_20' ) end [2025-02-02 16:57:19] Production.INFO: ProcessCDR(1,14387054,1,1,2) [2025-02-02 16:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387054', 'tblTempUsageDetail_20' ) start [2025-02-02 16:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387054', 'tblTempUsageDetail_20' ) end [2025-02-02 16:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:57:22] Production.INFO: ==22179== Releasing lock... [2025-02-02 16:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:57:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:58:05 [end_date_ymd] => 2025-02-02 16:58:05 [RateCDR] => 1 ) [2025-02-02 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-02 13:58:05' and `end` < '2025-02-02 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-02 16:58:18] Production.INFO: count ==1318 [2025-02-02 16:58:19] Production.ERROR: pbx CDR StartTime 2025-02-02 13:58:05 - End Time 2025-02-02 16:58:05 [2025-02-02 16:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387059', 'tblTempUsageDetail_20' ) start [2025-02-02 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387059', 'tblTempUsageDetail_20' ) end [2025-02-02 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387059', 'tblTempVendorCDR_20' ) start [2025-02-02 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387059', 'tblTempVendorCDR_20' ) end [2025-02-02 16:58:19] Production.INFO: ProcessCDR(1,14387059,1,1,2) [2025-02-02 16:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387059', 'tblTempUsageDetail_20' ) start [2025-02-02 16:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387059', 'tblTempUsageDetail_20' ) end [2025-02-02 16:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:58:22] Production.INFO: ==22251== Releasing lock... [2025-02-02 16:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:58:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 13:59:05 [end_date_ymd] => 2025-02-02 16:59:05 [RateCDR] => 1 ) [2025-02-02 16:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 13:59:05' and `end` < '2025-02-02 16:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 16:59:18] Production.INFO: count ==1318 [2025-02-02 16:59:18] Production.ERROR: pbx CDR StartTime 2025-02-02 13:59:05 - End Time 2025-02-02 16:59:05 [2025-02-02 16:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387064', 'tblTempUsageDetail_20' ) start [2025-02-02 16:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387064', 'tblTempUsageDetail_20' ) end [2025-02-02 16:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387064', 'tblTempVendorCDR_20' ) start [2025-02-02 16:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387064', 'tblTempVendorCDR_20' ) end [2025-02-02 16:59:19] Production.INFO: ProcessCDR(1,14387064,1,1,2) [2025-02-02 16:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 16:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 16:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387064', 'tblTempUsageDetail_20' ) start [2025-02-02 16:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387064', 'tblTempUsageDetail_20' ) end [2025-02-02 16:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 16:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 16:59:22] Production.INFO: ==22326== Releasing lock... [2025-02-02 16:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 16:59:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:00:06 [end_date_ymd] => 2025-02-02 17:00:06 [RateCDR] => 1 ) [2025-02-02 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-02 14:00:06' and `end` < '2025-02-02 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-02 17:00:19] Production.INFO: count ==1318 [2025-02-02 17:00:20] Production.ERROR: pbx CDR StartTime 2025-02-02 14:00:06 - End Time 2025-02-02 17:00:06 [2025-02-02 17:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387070', 'tblTempUsageDetail_20' ) start [2025-02-02 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387070', 'tblTempUsageDetail_20' ) end [2025-02-02 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387070', 'tblTempVendorCDR_20' ) start [2025-02-02 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387070', 'tblTempVendorCDR_20' ) end [2025-02-02 17:00:20] Production.INFO: ProcessCDR(1,14387070,1,1,2) [2025-02-02 17:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387070', 'tblTempUsageDetail_20' ) start [2025-02-02 17:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387070', 'tblTempUsageDetail_20' ) end [2025-02-02 17:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:00:24] Production.INFO: ==22401== Releasing lock... [2025-02-02 17:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:00:24] Production.INFO: 39 MB #Memory Used# [2025-02-02 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:01:05 [end_date_ymd] => 2025-02-02 17:01:05 [RateCDR] => 1 ) [2025-02-02 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-02 14:01:05' and `end` < '2025-02-02 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-02 17:01:18] Production.INFO: count ==1324 [2025-02-02 17:01:19] Production.ERROR: pbx CDR StartTime 2025-02-02 14:01:05 - End Time 2025-02-02 17:01:05 [2025-02-02 17:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387075', 'tblTempUsageDetail_20' ) start [2025-02-02 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387075', 'tblTempUsageDetail_20' ) end [2025-02-02 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387075', 'tblTempVendorCDR_20' ) start [2025-02-02 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387075', 'tblTempVendorCDR_20' ) end [2025-02-02 17:01:19] Production.INFO: ProcessCDR(1,14387075,1,1,2) [2025-02-02 17:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387075', 'tblTempUsageDetail_20' ) start [2025-02-02 17:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387075', 'tblTempUsageDetail_20' ) end [2025-02-02 17:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:01:23] Production.INFO: ==22485== Releasing lock... [2025-02-02 17:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:01:23] Production.INFO: 39 MB #Memory Used# [2025-02-02 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:02:05 [end_date_ymd] => 2025-02-02 17:02:05 [RateCDR] => 1 ) [2025-02-02 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-02 14:02:05' and `end` < '2025-02-02 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-02 17:02:19] Production.INFO: count ==1319 [2025-02-02 17:02:19] Production.ERROR: pbx CDR StartTime 2025-02-02 14:02:05 - End Time 2025-02-02 17:02:05 [2025-02-02 17:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387080', 'tblTempUsageDetail_20' ) start [2025-02-02 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387080', 'tblTempUsageDetail_20' ) end [2025-02-02 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387080', 'tblTempVendorCDR_20' ) start [2025-02-02 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387080', 'tblTempVendorCDR_20' ) end [2025-02-02 17:02:19] Production.INFO: ProcessCDR(1,14387080,1,1,2) [2025-02-02 17:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387080', 'tblTempUsageDetail_20' ) start [2025-02-02 17:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387080', 'tblTempUsageDetail_20' ) end [2025-02-02 17:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:02:23] Production.INFO: ==22554== Releasing lock... [2025-02-02 17:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:02:23] Production.INFO: 39 MB #Memory Used# [2025-02-02 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:03:05 [end_date_ymd] => 2025-02-02 17:03:05 [RateCDR] => 1 ) [2025-02-02 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-02 14:03:05' and `end` < '2025-02-02 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-02 17:03:18] Production.INFO: count ==1310 [2025-02-02 17:03:18] Production.ERROR: pbx CDR StartTime 2025-02-02 14:03:05 - End Time 2025-02-02 17:03:05 [2025-02-02 17:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387085', 'tblTempUsageDetail_20' ) start [2025-02-02 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387085', 'tblTempUsageDetail_20' ) end [2025-02-02 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387085', 'tblTempVendorCDR_20' ) start [2025-02-02 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387085', 'tblTempVendorCDR_20' ) end [2025-02-02 17:03:18] Production.INFO: ProcessCDR(1,14387085,1,1,2) [2025-02-02 17:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387085', 'tblTempUsageDetail_20' ) start [2025-02-02 17:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387085', 'tblTempUsageDetail_20' ) end [2025-02-02 17:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:03:23] Production.INFO: ==22625== Releasing lock... [2025-02-02 17:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:03:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:04:05 [end_date_ymd] => 2025-02-02 17:04:05 [RateCDR] => 1 ) [2025-02-02 17:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 14:04:05' and `end` < '2025-02-02 17:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 17:04:18] Production.INFO: count ==1313 [2025-02-02 17:04:19] Production.ERROR: pbx CDR StartTime 2025-02-02 14:04:05 - End Time 2025-02-02 17:04:05 [2025-02-02 17:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387090', 'tblTempUsageDetail_20' ) start [2025-02-02 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387090', 'tblTempUsageDetail_20' ) end [2025-02-02 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387090', 'tblTempVendorCDR_20' ) start [2025-02-02 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387090', 'tblTempVendorCDR_20' ) end [2025-02-02 17:04:19] Production.INFO: ProcessCDR(1,14387090,1,1,2) [2025-02-02 17:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387090', 'tblTempUsageDetail_20' ) start [2025-02-02 17:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387090', 'tblTempUsageDetail_20' ) end [2025-02-02 17:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:04:22] Production.INFO: ==22696== Releasing lock... [2025-02-02 17:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:04:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:05:05 [end_date_ymd] => 2025-02-02 17:05:05 [RateCDR] => 1 ) [2025-02-02 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-02 14:05:05' and `end` < '2025-02-02 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-02 17:05:18] Production.INFO: count ==1304 [2025-02-02 17:05:18] Production.ERROR: pbx CDR StartTime 2025-02-02 14:05:05 - End Time 2025-02-02 17:05:05 [2025-02-02 17:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387095', 'tblTempUsageDetail_20' ) start [2025-02-02 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387095', 'tblTempUsageDetail_20' ) end [2025-02-02 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387095', 'tblTempVendorCDR_20' ) start [2025-02-02 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387095', 'tblTempVendorCDR_20' ) end [2025-02-02 17:05:18] Production.INFO: ProcessCDR(1,14387095,1,1,2) [2025-02-02 17:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387095', 'tblTempUsageDetail_20' ) start [2025-02-02 17:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387095', 'tblTempUsageDetail_20' ) end [2025-02-02 17:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:05:23] Production.INFO: ==22804== Releasing lock... [2025-02-02 17:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:05:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 17:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:06:06 [end_date_ymd] => 2025-02-02 17:06:06 [RateCDR] => 1 ) [2025-02-02 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-02 14:06:06' and `end` < '2025-02-02 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-02 17:06:19] Production.INFO: count ==1305 [2025-02-02 17:06:20] Production.ERROR: pbx CDR StartTime 2025-02-02 14:06:06 - End Time 2025-02-02 17:06:06 [2025-02-02 17:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387100', 'tblTempUsageDetail_20' ) start [2025-02-02 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387100', 'tblTempUsageDetail_20' ) end [2025-02-02 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387100', 'tblTempVendorCDR_20' ) start [2025-02-02 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387100', 'tblTempVendorCDR_20' ) end [2025-02-02 17:06:20] Production.INFO: ProcessCDR(1,14387100,1,1,2) [2025-02-02 17:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387100', 'tblTempUsageDetail_20' ) start [2025-02-02 17:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387100', 'tblTempUsageDetail_20' ) end [2025-02-02 17:06:25] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:06:25] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:06:25] Production.INFO: ==22878== Releasing lock... [2025-02-02 17:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:06:25] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:07:05 [end_date_ymd] => 2025-02-02 17:07:05 [RateCDR] => 1 ) [2025-02-02 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-02 14:07:05' and `end` < '2025-02-02 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-02 17:07:19] Production.INFO: count ==1304 [2025-02-02 17:07:19] Production.ERROR: pbx CDR StartTime 2025-02-02 14:07:05 - End Time 2025-02-02 17:07:05 [2025-02-02 17:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387105', 'tblTempUsageDetail_20' ) start [2025-02-02 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387105', 'tblTempUsageDetail_20' ) end [2025-02-02 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387105', 'tblTempVendorCDR_20' ) start [2025-02-02 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387105', 'tblTempVendorCDR_20' ) end [2025-02-02 17:07:19] Production.INFO: ProcessCDR(1,14387105,1,1,2) [2025-02-02 17:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387105', 'tblTempUsageDetail_20' ) start [2025-02-02 17:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387105', 'tblTempUsageDetail_20' ) end [2025-02-02 17:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:07:24] Production.INFO: ==22947== Releasing lock... [2025-02-02 17:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:07:24] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 17:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:08:06 [end_date_ymd] => 2025-02-02 17:08:06 [RateCDR] => 1 ) [2025-02-02 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-02 14:08:06' and `end` < '2025-02-02 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-02 17:08:19] Production.INFO: count ==1303 [2025-02-02 17:08:19] Production.ERROR: pbx CDR StartTime 2025-02-02 14:08:06 - End Time 2025-02-02 17:08:06 [2025-02-02 17:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387110', 'tblTempUsageDetail_20' ) start [2025-02-02 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387110', 'tblTempUsageDetail_20' ) end [2025-02-02 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387110', 'tblTempVendorCDR_20' ) start [2025-02-02 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387110', 'tblTempVendorCDR_20' ) end [2025-02-02 17:08:19] Production.INFO: ProcessCDR(1,14387110,1,1,2) [2025-02-02 17:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387110', 'tblTempUsageDetail_20' ) start [2025-02-02 17:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387110', 'tblTempUsageDetail_20' ) end [2025-02-02 17:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:08:24] Production.INFO: ==23019== Releasing lock... [2025-02-02 17:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:08:24] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:09:05 [end_date_ymd] => 2025-02-02 17:09:05 [RateCDR] => 1 ) [2025-02-02 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-02 14:09:05' and `end` < '2025-02-02 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-02 17:09:18] Production.INFO: count ==1299 [2025-02-02 17:09:18] Production.ERROR: pbx CDR StartTime 2025-02-02 14:09:05 - End Time 2025-02-02 17:09:05 [2025-02-02 17:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387115', 'tblTempUsageDetail_20' ) start [2025-02-02 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387115', 'tblTempUsageDetail_20' ) end [2025-02-02 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387115', 'tblTempVendorCDR_20' ) start [2025-02-02 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387115', 'tblTempVendorCDR_20' ) end [2025-02-02 17:09:18] Production.INFO: ProcessCDR(1,14387115,1,1,2) [2025-02-02 17:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387115', 'tblTempUsageDetail_20' ) start [2025-02-02 17:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387115', 'tblTempUsageDetail_20' ) end [2025-02-02 17:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:09:21] Production.INFO: ==23097== Releasing lock... [2025-02-02 17:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:09:21] Production.INFO: 38 MB #Memory Used# [2025-02-02 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:10:06 [end_date_ymd] => 2025-02-02 17:10:06 [RateCDR] => 1 ) [2025-02-02 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-02 14:10:06' and `end` < '2025-02-02 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-02 17:10:19] Production.INFO: count ==1297 [2025-02-02 17:10:20] Production.ERROR: pbx CDR StartTime 2025-02-02 14:10:06 - End Time 2025-02-02 17:10:06 [2025-02-02 17:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387121', 'tblTempUsageDetail_20' ) start [2025-02-02 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387121', 'tblTempUsageDetail_20' ) end [2025-02-02 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387121', 'tblTempVendorCDR_20' ) start [2025-02-02 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387121', 'tblTempVendorCDR_20' ) end [2025-02-02 17:10:20] Production.INFO: ProcessCDR(1,14387121,1,1,2) [2025-02-02 17:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387121', 'tblTempUsageDetail_20' ) start [2025-02-02 17:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387121', 'tblTempUsageDetail_20' ) end [2025-02-02 17:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:10:23] Production.INFO: ==23189== Releasing lock... [2025-02-02 17:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:10:23] Production.INFO: 38 MB #Memory Used# [2025-02-02 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:11:05 [end_date_ymd] => 2025-02-02 17:11:05 [RateCDR] => 1 ) [2025-02-02 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-02 14:11:05' and `end` < '2025-02-02 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-02 17:11:18] Production.INFO: count ==1322 [2025-02-02 17:11:18] Production.ERROR: pbx CDR StartTime 2025-02-02 14:11:05 - End Time 2025-02-02 17:11:05 [2025-02-02 17:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387125', 'tblTempUsageDetail_20' ) start [2025-02-02 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387125', 'tblTempUsageDetail_20' ) end [2025-02-02 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387125', 'tblTempVendorCDR_20' ) start [2025-02-02 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387125', 'tblTempVendorCDR_20' ) end [2025-02-02 17:11:18] Production.INFO: ProcessCDR(1,14387125,1,1,2) [2025-02-02 17:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387125', 'tblTempUsageDetail_20' ) start [2025-02-02 17:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387125', 'tblTempUsageDetail_20' ) end [2025-02-02 17:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:11:21] Production.INFO: ==23282== Releasing lock... [2025-02-02 17:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:11:21] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:12:05 [end_date_ymd] => 2025-02-02 17:12:05 [RateCDR] => 1 ) [2025-02-02 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-02 14:12:05' and `end` < '2025-02-02 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-02 17:12:19] Production.INFO: count ==1323 [2025-02-02 17:12:19] Production.ERROR: pbx CDR StartTime 2025-02-02 14:12:05 - End Time 2025-02-02 17:12:05 [2025-02-02 17:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387131', 'tblTempUsageDetail_20' ) start [2025-02-02 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387131', 'tblTempUsageDetail_20' ) end [2025-02-02 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387131', 'tblTempVendorCDR_20' ) start [2025-02-02 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387131', 'tblTempVendorCDR_20' ) end [2025-02-02 17:12:19] Production.INFO: ProcessCDR(1,14387131,1,1,2) [2025-02-02 17:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387131', 'tblTempUsageDetail_20' ) start [2025-02-02 17:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387131', 'tblTempUsageDetail_20' ) end [2025-02-02 17:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:12:23] Production.INFO: ==23375== Releasing lock... [2025-02-02 17:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:12:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 17:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:13:04 [end_date_ymd] => 2025-02-02 17:13:04 [RateCDR] => 1 ) [2025-02-02 17:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 14:13:04' and `end` < '2025-02-02 17:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 17:13:18] Production.INFO: count ==1315 [2025-02-02 17:13:18] Production.ERROR: pbx CDR StartTime 2025-02-02 14:13:04 - End Time 2025-02-02 17:13:04 [2025-02-02 17:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387136', 'tblTempUsageDetail_20' ) start [2025-02-02 17:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387136', 'tblTempUsageDetail_20' ) end [2025-02-02 17:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387136', 'tblTempVendorCDR_20' ) start [2025-02-02 17:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387136', 'tblTempVendorCDR_20' ) end [2025-02-02 17:13:18] Production.INFO: ProcessCDR(1,14387136,1,1,2) [2025-02-02 17:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387136', 'tblTempUsageDetail_20' ) start [2025-02-02 17:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387136', 'tblTempUsageDetail_20' ) end [2025-02-02 17:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:13:22] Production.INFO: ==23473== Releasing lock... [2025-02-02 17:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:13:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 17:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:14:06 [end_date_ymd] => 2025-02-02 17:14:06 [RateCDR] => 1 ) [2025-02-02 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-02 14:14:06' and `end` < '2025-02-02 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-02 17:14:19] Production.INFO: count ==1315 [2025-02-02 17:14:19] Production.ERROR: pbx CDR StartTime 2025-02-02 14:14:06 - End Time 2025-02-02 17:14:06 [2025-02-02 17:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387141', 'tblTempUsageDetail_20' ) start [2025-02-02 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387141', 'tblTempUsageDetail_20' ) end [2025-02-02 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387141', 'tblTempVendorCDR_20' ) start [2025-02-02 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387141', 'tblTempVendorCDR_20' ) end [2025-02-02 17:14:19] Production.INFO: ProcessCDR(1,14387141,1,1,2) [2025-02-02 17:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387141', 'tblTempUsageDetail_20' ) start [2025-02-02 17:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387141', 'tblTempUsageDetail_20' ) end [2025-02-02 17:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:14:23] Production.INFO: ==23567== Releasing lock... [2025-02-02 17:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:14:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-02 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:15:05 [end_date_ymd] => 2025-02-02 17:15:05 [RateCDR] => 1 ) [2025-02-02 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-02 14:15:05' and `end` < '2025-02-02 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-02 17:15:18] Production.INFO: count ==1318 [2025-02-02 17:15:18] Production.ERROR: pbx CDR StartTime 2025-02-02 14:15:05 - End Time 2025-02-02 17:15:05 [2025-02-02 17:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387146', 'tblTempUsageDetail_20' ) start [2025-02-02 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387146', 'tblTempUsageDetail_20' ) end [2025-02-02 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387146', 'tblTempVendorCDR_20' ) start [2025-02-02 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387146', 'tblTempVendorCDR_20' ) end [2025-02-02 17:15:18] Production.INFO: ProcessCDR(1,14387146,1,1,2) [2025-02-02 17:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387146', 'tblTempUsageDetail_20' ) start [2025-02-02 17:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387146', 'tblTempUsageDetail_20' ) end [2025-02-02 17:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:15:22] Production.INFO: ==23642== Releasing lock... [2025-02-02 17:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:15:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:16:05 [end_date_ymd] => 2025-02-02 17:16:05 [RateCDR] => 1 ) [2025-02-02 17:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 14:16:05' and `end` < '2025-02-02 17:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 17:16:18] Production.INFO: count ==1321 [2025-02-02 17:16:19] Production.ERROR: pbx CDR StartTime 2025-02-02 14:16:05 - End Time 2025-02-02 17:16:05 [2025-02-02 17:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387151', 'tblTempUsageDetail_20' ) start [2025-02-02 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387151', 'tblTempUsageDetail_20' ) end [2025-02-02 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387151', 'tblTempVendorCDR_20' ) start [2025-02-02 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387151', 'tblTempVendorCDR_20' ) end [2025-02-02 17:16:19] Production.INFO: ProcessCDR(1,14387151,1,1,2) [2025-02-02 17:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387151', 'tblTempUsageDetail_20' ) start [2025-02-02 17:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387151', 'tblTempUsageDetail_20' ) end [2025-02-02 17:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:16:22] Production.INFO: ==23718== Releasing lock... [2025-02-02 17:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:16:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:17:05 [end_date_ymd] => 2025-02-02 17:17:05 [RateCDR] => 1 ) [2025-02-02 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-02 14:17:05' and `end` < '2025-02-02 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-02 17:17:19] Production.INFO: count ==1322 [2025-02-02 17:17:19] Production.ERROR: pbx CDR StartTime 2025-02-02 14:17:05 - End Time 2025-02-02 17:17:05 [2025-02-02 17:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387156', 'tblTempUsageDetail_20' ) start [2025-02-02 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387156', 'tblTempUsageDetail_20' ) end [2025-02-02 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387156', 'tblTempVendorCDR_20' ) start [2025-02-02 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387156', 'tblTempVendorCDR_20' ) end [2025-02-02 17:17:19] Production.INFO: ProcessCDR(1,14387156,1,1,2) [2025-02-02 17:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387156', 'tblTempUsageDetail_20' ) start [2025-02-02 17:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387156', 'tblTempUsageDetail_20' ) end [2025-02-02 17:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:17:24] Production.INFO: ==23799== Releasing lock... [2025-02-02 17:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:17:24] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:18:05 [end_date_ymd] => 2025-02-02 17:18:05 [RateCDR] => 1 ) [2025-02-02 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-02 14:18:05' and `end` < '2025-02-02 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-02 17:18:19] Production.INFO: count ==1327 [2025-02-02 17:18:19] Production.ERROR: pbx CDR StartTime 2025-02-02 14:18:05 - End Time 2025-02-02 17:18:05 [2025-02-02 17:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387161', 'tblTempUsageDetail_20' ) start [2025-02-02 17:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387161', 'tblTempUsageDetail_20' ) end [2025-02-02 17:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387161', 'tblTempVendorCDR_20' ) start [2025-02-02 17:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387161', 'tblTempVendorCDR_20' ) end [2025-02-02 17:18:19] Production.INFO: ProcessCDR(1,14387161,1,1,2) [2025-02-02 17:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387161', 'tblTempUsageDetail_20' ) start [2025-02-02 17:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387161', 'tblTempUsageDetail_20' ) end [2025-02-02 17:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:18:22] Production.INFO: ==23873== Releasing lock... [2025-02-02 17:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:18:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 17:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:19:06 [end_date_ymd] => 2025-02-02 17:19:06 [RateCDR] => 1 ) [2025-02-02 17: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-02 14:19:06' and `end` < '2025-02-02 17: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-02 17:19:19] Production.INFO: count ==1342 [2025-02-02 17:19:19] Production.ERROR: pbx CDR StartTime 2025-02-02 14:19:06 - End Time 2025-02-02 17:19:06 [2025-02-02 17:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387166', 'tblTempUsageDetail_20' ) start [2025-02-02 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387166', 'tblTempUsageDetail_20' ) end [2025-02-02 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387166', 'tblTempVendorCDR_20' ) start [2025-02-02 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387166', 'tblTempVendorCDR_20' ) end [2025-02-02 17:19:19] Production.INFO: ProcessCDR(1,14387166,1,1,2) [2025-02-02 17:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387166', 'tblTempUsageDetail_20' ) start [2025-02-02 17:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387166', 'tblTempUsageDetail_20' ) end [2025-02-02 17:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:19:22] Production.INFO: ==23946== Releasing lock... [2025-02-02 17:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:19:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:20:06 [end_date_ymd] => 2025-02-02 17:20:06 [RateCDR] => 1 ) [2025-02-02 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-02 14:20:06' and `end` < '2025-02-02 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-02 17:20:19] Production.INFO: count ==1339 [2025-02-02 17:20:19] Production.ERROR: pbx CDR StartTime 2025-02-02 14:20:06 - End Time 2025-02-02 17:20:06 [2025-02-02 17:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387171', 'tblTempUsageDetail_20' ) start [2025-02-02 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387171', 'tblTempUsageDetail_20' ) end [2025-02-02 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387171', 'tblTempVendorCDR_20' ) start [2025-02-02 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387171', 'tblTempVendorCDR_20' ) end [2025-02-02 17:20:19] Production.INFO: ProcessCDR(1,14387171,1,1,2) [2025-02-02 17:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387171', 'tblTempUsageDetail_20' ) start [2025-02-02 17:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387171', 'tblTempUsageDetail_20' ) end [2025-02-02 17:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:20:23] Production.INFO: ==24023== Releasing lock... [2025-02-02 17:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:20:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:21:05 [end_date_ymd] => 2025-02-02 17:21:05 [RateCDR] => 1 ) [2025-02-02 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-02 14:21:05' and `end` < '2025-02-02 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-02 17:21:18] Production.INFO: count ==1332 [2025-02-02 17:21:18] Production.ERROR: pbx CDR StartTime 2025-02-02 14:21:05 - End Time 2025-02-02 17:21:05 [2025-02-02 17:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387177', 'tblTempUsageDetail_20' ) start [2025-02-02 17:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387177', 'tblTempUsageDetail_20' ) end [2025-02-02 17:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387177', 'tblTempVendorCDR_20' ) start [2025-02-02 17:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387177', 'tblTempVendorCDR_20' ) end [2025-02-02 17:21:18] Production.INFO: ProcessCDR(1,14387177,1,1,2) [2025-02-02 17:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387177', 'tblTempUsageDetail_20' ) start [2025-02-02 17:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387177', 'tblTempUsageDetail_20' ) end [2025-02-02 17:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:21:21] Production.INFO: ==24138== Releasing lock... [2025-02-02 17:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:21:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:22:05 [end_date_ymd] => 2025-02-02 17:22:05 [RateCDR] => 1 ) [2025-02-02 17:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 14:22:05' and `end` < '2025-02-02 17:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 17:22:18] Production.INFO: count ==1331 [2025-02-02 17:22:18] Production.ERROR: pbx CDR StartTime 2025-02-02 14:22:05 - End Time 2025-02-02 17:22:05 [2025-02-02 17:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387182', 'tblTempUsageDetail_20' ) start [2025-02-02 17:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387182', 'tblTempUsageDetail_20' ) end [2025-02-02 17:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387182', 'tblTempVendorCDR_20' ) start [2025-02-02 17:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387182', 'tblTempVendorCDR_20' ) end [2025-02-02 17:22:18] Production.INFO: ProcessCDR(1,14387182,1,1,2) [2025-02-02 17:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387182', 'tblTempUsageDetail_20' ) start [2025-02-02 17:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387182', 'tblTempUsageDetail_20' ) end [2025-02-02 17:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:22:21] Production.INFO: ==24212== Releasing lock... [2025-02-02 17:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:22:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:23:05 [end_date_ymd] => 2025-02-02 17:23:05 [RateCDR] => 1 ) [2025-02-02 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-02 14:23:05' and `end` < '2025-02-02 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-02 17:23:19] Production.INFO: count ==1332 [2025-02-02 17:23:19] Production.ERROR: pbx CDR StartTime 2025-02-02 14:23:05 - End Time 2025-02-02 17:23:05 [2025-02-02 17:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387187', 'tblTempUsageDetail_20' ) start [2025-02-02 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387187', 'tblTempUsageDetail_20' ) end [2025-02-02 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387187', 'tblTempVendorCDR_20' ) start [2025-02-02 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387187', 'tblTempVendorCDR_20' ) end [2025-02-02 17:23:19] Production.INFO: ProcessCDR(1,14387187,1,1,2) [2025-02-02 17:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387187', 'tblTempUsageDetail_20' ) start [2025-02-02 17:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387187', 'tblTempUsageDetail_20' ) end [2025-02-02 17:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:23:23] Production.INFO: ==24286== Releasing lock... [2025-02-02 17:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:23:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:24:05 [end_date_ymd] => 2025-02-02 17:24:05 [RateCDR] => 1 ) [2025-02-02 17:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 14:24:05' and `end` < '2025-02-02 17:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 17:24:19] Production.INFO: count ==1332 [2025-02-02 17:24:19] Production.ERROR: pbx CDR StartTime 2025-02-02 14:24:05 - End Time 2025-02-02 17:24:05 [2025-02-02 17:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387192', 'tblTempUsageDetail_20' ) start [2025-02-02 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387192', 'tblTempUsageDetail_20' ) end [2025-02-02 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387192', 'tblTempVendorCDR_20' ) start [2025-02-02 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387192', 'tblTempVendorCDR_20' ) end [2025-02-02 17:24:19] Production.INFO: ProcessCDR(1,14387192,1,1,2) [2025-02-02 17:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387192', 'tblTempUsageDetail_20' ) start [2025-02-02 17:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387192', 'tblTempUsageDetail_20' ) end [2025-02-02 17:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:24:24] Production.INFO: ==24364== Releasing lock... [2025-02-02 17:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:24:24] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:25:05 [end_date_ymd] => 2025-02-02 17:25:05 [RateCDR] => 1 ) [2025-02-02 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 14:25:05' and `end` < '2025-02-02 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 17:25:18] Production.INFO: count ==1332 [2025-02-02 17:25:31] Production.ERROR: pbx CDR StartTime 2025-02-02 14:25:05 - End Time 2025-02-02 17:25:05 [2025-02-02 17:25:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387197', 'tblTempUsageDetail_20' ) start [2025-02-02 17:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387197', 'tblTempUsageDetail_20' ) end [2025-02-02 17:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387197', 'tblTempVendorCDR_20' ) start [2025-02-02 17:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387197', 'tblTempVendorCDR_20' ) end [2025-02-02 17:25:31] Production.INFO: ProcessCDR(1,14387197,1,1,2) [2025-02-02 17:25:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:25:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:25:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387197', 'tblTempUsageDetail_20' ) start [2025-02-02 17:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387197', 'tblTempUsageDetail_20' ) end [2025-02-02 17:25:35] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:25:35] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:25:37] Production.INFO: ==24437== Releasing lock... [2025-02-02 17:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:25:37] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 17:26:15] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:26:15 [end_date_ymd] => 2025-02-02 17:26:15 [RateCDR] => 1 ) [2025-02-02 17:26:15] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 14:26:15' and `end` < '2025-02-02 17:26:15' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 17:26:28] Production.INFO: count ==1333 [2025-02-02 17:26:38] Production.ERROR: pbx CDR StartTime 2025-02-02 14:26:15 - End Time 2025-02-02 17:26:15 [2025-02-02 17:26:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:26:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387202', 'tblTempUsageDetail_20' ) start [2025-02-02 17:26:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387202', 'tblTempUsageDetail_20' ) end [2025-02-02 17:26:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387202', 'tblTempVendorCDR_20' ) start [2025-02-02 17:26:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387202', 'tblTempVendorCDR_20' ) end [2025-02-02 17:26:38] Production.INFO: ProcessCDR(1,14387202,1,1,2) [2025-02-02 17:26:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:26:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:26:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:27:18] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:27:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387202', 'tblTempUsageDetail_20' ) start [2025-02-02 17:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387202', 'tblTempUsageDetail_20' ) end [2025-02-02 17:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:27:26] Production.INFO: ==24510== Releasing lock... [2025-02-02 17:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:27:26] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 17:28:15] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:28:15 [end_date_ymd] => 2025-02-02 17:28:15 [RateCDR] => 1 ) [2025-02-02 17:28:15] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 14:28:15' and `end` < '2025-02-02 17:28:15' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 17:28:29] Production.INFO: count ==1332 [2025-02-02 17:28:35] Production.ERROR: pbx CDR StartTime 2025-02-02 14:28:15 - End Time 2025-02-02 17:28:15 [2025-02-02 17:28:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:28:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387210', 'tblTempUsageDetail_20' ) start [2025-02-02 17:28:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387210', 'tblTempUsageDetail_20' ) end [2025-02-02 17:28:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387210', 'tblTempVendorCDR_20' ) start [2025-02-02 17:28:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387210', 'tblTempVendorCDR_20' ) end [2025-02-02 17:28:38] Production.INFO: ProcessCDR(1,14387210,1,1,2) [2025-02-02 17:28:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:28:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:28:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:28:50] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:28:50] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387210', 'tblTempUsageDetail_20' ) start [2025-02-02 17:28:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387210', 'tblTempUsageDetail_20' ) end [2025-02-02 17:28:51] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:28:51] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:28:53] Production.INFO: ==24647== Releasing lock... [2025-02-02 17:28:53] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:28:53] Production.INFO: 38.5 MB #Memory Used# [2025-02-02 17:29:14] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:29:14 [end_date_ymd] => 2025-02-02 17:29:14 [RateCDR] => 1 ) [2025-02-02 17:29:14] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 14:29:14' and `end` < '2025-02-02 17:29:14' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 17:29:27] Production.INFO: count ==1334 [2025-02-02 17:29:32] Production.ERROR: pbx CDR StartTime 2025-02-02 14:29:14 - End Time 2025-02-02 17:29:14 [2025-02-02 17:29:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:29:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387215', 'tblTempUsageDetail_20' ) start [2025-02-02 17:29:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387215', 'tblTempUsageDetail_20' ) end [2025-02-02 17:29:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387215', 'tblTempVendorCDR_20' ) start [2025-02-02 17:29:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387215', 'tblTempVendorCDR_20' ) end [2025-02-02 17:29:34] Production.INFO: ProcessCDR(1,14387215,1,1,2) [2025-02-02 17:29:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:29:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:29:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:29:58] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:29:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387215', 'tblTempUsageDetail_20' ) start [2025-02-02 17:30:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387215', 'tblTempUsageDetail_20' ) end [2025-02-02 17:30:00] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:30:00] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:30:00] Production.INFO: ==24721== Releasing lock... [2025-02-02 17:30:00] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:30:00] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 17:30:30] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:30:30 [end_date_ymd] => 2025-02-02 17:30:30 [RateCDR] => 1 ) [2025-02-02 17:30:30] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 14:30:30' and `end` < '2025-02-02 17:30:30' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 17:30:44] Production.INFO: count ==1356 [2025-02-02 17:30:55] Production.ERROR: pbx CDR StartTime 2025-02-02 14:30:30 - End Time 2025-02-02 17:30:30 [2025-02-02 17:30:55] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:30:55] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387220', 'tblTempUsageDetail_20' ) start [2025-02-02 17:30:58] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387220', 'tblTempUsageDetail_20' ) end [2025-02-02 17:30:58] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387220', 'tblTempVendorCDR_20' ) start [2025-02-02 17:30:58] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387220', 'tblTempVendorCDR_20' ) end [2025-02-02 17:30:58] Production.INFO: ProcessCDR(1,14387220,1,1,2) [2025-02-02 17:30:58] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:31:03] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:31:03] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:31:12] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:31:12] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387220', 'tblTempUsageDetail_20' ) start [2025-02-02 17:31:15] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387220', 'tblTempUsageDetail_20' ) end [2025-02-02 17:31:15] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:31:15] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:31:23] Production.INFO: ==24791== Releasing lock... [2025-02-02 17:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:31:23] Production.INFO: 39 MB #Memory Used# [2025-02-02 17:32:26] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:32:26 [end_date_ymd] => 2025-02-02 17:32:26 [RateCDR] => 1 ) [2025-02-02 17:32:26] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 14:32:26' and `end` < '2025-02-02 17:32:26' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 17:32:39] Production.INFO: count ==1357 [2025-02-02 17:32:39] Production.ERROR: pbx CDR StartTime 2025-02-02 14:32:26 - End Time 2025-02-02 17:32:26 [2025-02-02 17:32:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:32:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387228', 'tblTempUsageDetail_20' ) start [2025-02-02 17:32:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387228', 'tblTempUsageDetail_20' ) end [2025-02-02 17:32:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387228', 'tblTempVendorCDR_20' ) start [2025-02-02 17:32:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387228', 'tblTempVendorCDR_20' ) end [2025-02-02 17:32:39] Production.INFO: ProcessCDR(1,14387228,1,1,2) [2025-02-02 17:32:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:32:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:32:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:32:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:32:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387228', 'tblTempUsageDetail_20' ) start [2025-02-02 17:32:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387228', 'tblTempUsageDetail_20' ) end [2025-02-02 17:32:43] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:32:43] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:32:43] Production.INFO: ==24948== Releasing lock... [2025-02-02 17:32:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:32:43] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 17:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:33:06 [end_date_ymd] => 2025-02-02 17:33:06 [RateCDR] => 1 ) [2025-02-02 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-02 14:33:06' and `end` < '2025-02-02 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-02 17:33:21] Production.INFO: count ==1354 [2025-02-02 17:33:21] Production.ERROR: pbx CDR StartTime 2025-02-02 14:33:06 - End Time 2025-02-02 17:33:06 [2025-02-02 17:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387233', 'tblTempUsageDetail_20' ) start [2025-02-02 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387233', 'tblTempUsageDetail_20' ) end [2025-02-02 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387233', 'tblTempVendorCDR_20' ) start [2025-02-02 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387233', 'tblTempVendorCDR_20' ) end [2025-02-02 17:33:21] Production.INFO: ProcessCDR(1,14387233,1,1,2) [2025-02-02 17:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387233', 'tblTempUsageDetail_20' ) start [2025-02-02 17:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387233', 'tblTempUsageDetail_20' ) end [2025-02-02 17:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:33:24] Production.INFO: ==25016== Releasing lock... [2025-02-02 17:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:33:24] Production.INFO: 38.75 MB #Memory Used# [2025-02-02 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:34:05 [end_date_ymd] => 2025-02-02 17:34:05 [RateCDR] => 1 ) [2025-02-02 17:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 14:34:05' and `end` < '2025-02-02 17:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 17:34:17] Production.INFO: count ==1247 [2025-02-02 17:34:18] Production.ERROR: pbx CDR StartTime 2025-02-02 14:34:05 - End Time 2025-02-02 17:34:05 [2025-02-02 17:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387238', 'tblTempUsageDetail_20' ) start [2025-02-02 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387238', 'tblTempUsageDetail_20' ) end [2025-02-02 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387238', 'tblTempVendorCDR_20' ) start [2025-02-02 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387238', 'tblTempVendorCDR_20' ) end [2025-02-02 17:34:18] Production.INFO: ProcessCDR(1,14387238,1,1,2) [2025-02-02 17:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387238', 'tblTempUsageDetail_20' ) start [2025-02-02 17:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387238', 'tblTempUsageDetail_20' ) end [2025-02-02 17:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:34:21] Production.INFO: ==25088== Releasing lock... [2025-02-02 17:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:34:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:35:05 [end_date_ymd] => 2025-02-02 17:35:05 [RateCDR] => 1 ) [2025-02-02 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-02 14:35:05' and `end` < '2025-02-02 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-02 17:35:18] Production.INFO: count ==1237 [2025-02-02 17:35:18] Production.ERROR: pbx CDR StartTime 2025-02-02 14:35:05 - End Time 2025-02-02 17:35:05 [2025-02-02 17:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387243', 'tblTempUsageDetail_20' ) start [2025-02-02 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387243', 'tblTempUsageDetail_20' ) end [2025-02-02 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387243', 'tblTempVendorCDR_20' ) start [2025-02-02 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387243', 'tblTempVendorCDR_20' ) end [2025-02-02 17:35:18] Production.INFO: ProcessCDR(1,14387243,1,1,2) [2025-02-02 17:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387243', 'tblTempUsageDetail_20' ) start [2025-02-02 17:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387243', 'tblTempUsageDetail_20' ) end [2025-02-02 17:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:35:23] Production.INFO: ==25162== Releasing lock... [2025-02-02 17:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:35:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-02 17:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:36:04 [end_date_ymd] => 2025-02-02 17:36:04 [RateCDR] => 1 ) [2025-02-02 17:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 14:36:04' and `end` < '2025-02-02 17:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 17:36:18] Production.INFO: count ==1235 [2025-02-02 17:36:18] Production.ERROR: pbx CDR StartTime 2025-02-02 14:36:04 - End Time 2025-02-02 17:36:04 [2025-02-02 17:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387248', 'tblTempUsageDetail_20' ) start [2025-02-02 17:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387248', 'tblTempUsageDetail_20' ) end [2025-02-02 17:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387248', 'tblTempVendorCDR_20' ) start [2025-02-02 17:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387248', 'tblTempVendorCDR_20' ) end [2025-02-02 17:36:18] Production.INFO: ProcessCDR(1,14387248,1,1,2) [2025-02-02 17:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387248', 'tblTempUsageDetail_20' ) start [2025-02-02 17:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387248', 'tblTempUsageDetail_20' ) end [2025-02-02 17:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:36:21] Production.INFO: ==25278== Releasing lock... [2025-02-02 17:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:36:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:37:05 [end_date_ymd] => 2025-02-02 17:37:05 [RateCDR] => 1 ) [2025-02-02 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-02 14:37:05' and `end` < '2025-02-02 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-02 17:37:18] Production.INFO: count ==1234 [2025-02-02 17:37:18] Production.ERROR: pbx CDR StartTime 2025-02-02 14:37:05 - End Time 2025-02-02 17:37:05 [2025-02-02 17:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387253', 'tblTempUsageDetail_20' ) start [2025-02-02 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387253', 'tblTempUsageDetail_20' ) end [2025-02-02 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387253', 'tblTempVendorCDR_20' ) start [2025-02-02 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387253', 'tblTempVendorCDR_20' ) end [2025-02-02 17:37:18] Production.INFO: ProcessCDR(1,14387253,1,1,2) [2025-02-02 17:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387253', 'tblTempUsageDetail_20' ) start [2025-02-02 17:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387253', 'tblTempUsageDetail_20' ) end [2025-02-02 17:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:37:23] Production.INFO: ==25351== Releasing lock... [2025-02-02 17:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:37:23] Production.INFO: 37 MB #Memory Used# [2025-02-02 17:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:38:06 [end_date_ymd] => 2025-02-02 17:38:06 [RateCDR] => 1 ) [2025-02-02 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-02 14:38:06' and `end` < '2025-02-02 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-02 17:38:19] Production.INFO: count ==1233 [2025-02-02 17:38:19] Production.ERROR: pbx CDR StartTime 2025-02-02 14:38:06 - End Time 2025-02-02 17:38:06 [2025-02-02 17:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387258', 'tblTempUsageDetail_20' ) start [2025-02-02 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387258', 'tblTempUsageDetail_20' ) end [2025-02-02 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387258', 'tblTempVendorCDR_20' ) start [2025-02-02 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387258', 'tblTempVendorCDR_20' ) end [2025-02-02 17:38:19] Production.INFO: ProcessCDR(1,14387258,1,1,2) [2025-02-02 17:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387258', 'tblTempUsageDetail_20' ) start [2025-02-02 17:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387258', 'tblTempUsageDetail_20' ) end [2025-02-02 17:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:38:22] Production.INFO: ==25429== Releasing lock... [2025-02-02 17:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:38:22] Production.INFO: 37 MB #Memory Used# [2025-02-02 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:39:05 [end_date_ymd] => 2025-02-02 17:39:05 [RateCDR] => 1 ) [2025-02-02 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-02 14:39:05' and `end` < '2025-02-02 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-02 17:39:18] Production.INFO: count ==1219 [2025-02-02 17:39:18] Production.ERROR: pbx CDR StartTime 2025-02-02 14:39:05 - End Time 2025-02-02 17:39:05 [2025-02-02 17:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387263', 'tblTempUsageDetail_20' ) start [2025-02-02 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387263', 'tblTempUsageDetail_20' ) end [2025-02-02 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387263', 'tblTempVendorCDR_20' ) start [2025-02-02 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387263', 'tblTempVendorCDR_20' ) end [2025-02-02 17:39:18] Production.INFO: ProcessCDR(1,14387263,1,1,2) [2025-02-02 17:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387263', 'tblTempUsageDetail_20' ) start [2025-02-02 17:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387263', 'tblTempUsageDetail_20' ) end [2025-02-02 17:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:39:22] Production.INFO: ==25504== Releasing lock... [2025-02-02 17:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:39:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 17:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:40:07 [end_date_ymd] => 2025-02-02 17:40:07 [RateCDR] => 1 ) [2025-02-02 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-02 14:40:07' and `end` < '2025-02-02 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-02 17:40:19] Production.INFO: count ==1218 [2025-02-02 17:40:20] Production.ERROR: pbx CDR StartTime 2025-02-02 14:40:07 - End Time 2025-02-02 17:40:07 [2025-02-02 17:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387269', 'tblTempUsageDetail_20' ) start [2025-02-02 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387269', 'tblTempUsageDetail_20' ) end [2025-02-02 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387269', 'tblTempVendorCDR_20' ) start [2025-02-02 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387269', 'tblTempVendorCDR_20' ) end [2025-02-02 17:40:20] Production.INFO: ProcessCDR(1,14387269,1,1,2) [2025-02-02 17:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387269', 'tblTempUsageDetail_20' ) start [2025-02-02 17:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387269', 'tblTempUsageDetail_20' ) end [2025-02-02 17:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:40:23] Production.INFO: ==25578== Releasing lock... [2025-02-02 17:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:40:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:41:05 [end_date_ymd] => 2025-02-02 17:41:05 [RateCDR] => 1 ) [2025-02-02 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-02 14:41:05' and `end` < '2025-02-02 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-02 17:41:17] Production.INFO: count ==1220 [2025-02-02 17:41:18] Production.ERROR: pbx CDR StartTime 2025-02-02 14:41:05 - End Time 2025-02-02 17:41:05 [2025-02-02 17:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387274', 'tblTempUsageDetail_20' ) start [2025-02-02 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387274', 'tblTempUsageDetail_20' ) end [2025-02-02 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387274', 'tblTempVendorCDR_20' ) start [2025-02-02 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387274', 'tblTempVendorCDR_20' ) end [2025-02-02 17:41:18] Production.INFO: ProcessCDR(1,14387274,1,1,2) [2025-02-02 17:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387274', 'tblTempUsageDetail_20' ) start [2025-02-02 17:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387274', 'tblTempUsageDetail_20' ) end [2025-02-02 17:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:41:21] Production.INFO: ==25651== Releasing lock... [2025-02-02 17:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:41:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:42:05 [end_date_ymd] => 2025-02-02 17:42:05 [RateCDR] => 1 ) [2025-02-02 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-02 14:42:05' and `end` < '2025-02-02 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-02 17:42:18] Production.INFO: count ==1218 [2025-02-02 17:42:18] Production.ERROR: pbx CDR StartTime 2025-02-02 14:42:05 - End Time 2025-02-02 17:42:05 [2025-02-02 17:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387279', 'tblTempUsageDetail_20' ) start [2025-02-02 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387279', 'tblTempUsageDetail_20' ) end [2025-02-02 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387279', 'tblTempVendorCDR_20' ) start [2025-02-02 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387279', 'tblTempVendorCDR_20' ) end [2025-02-02 17:42:19] Production.INFO: ProcessCDR(1,14387279,1,1,2) [2025-02-02 17:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387279', 'tblTempUsageDetail_20' ) start [2025-02-02 17:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387279', 'tblTempUsageDetail_20' ) end [2025-02-02 17:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:42:22] Production.INFO: ==25729== Releasing lock... [2025-02-02 17:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:42:22] Production.INFO: 37 MB #Memory Used# [2025-02-02 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:43:05 [end_date_ymd] => 2025-02-02 17:43:05 [RateCDR] => 1 ) [2025-02-02 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-02 14:43:05' and `end` < '2025-02-02 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-02 17:43:18] Production.INFO: count ==1220 [2025-02-02 17:43:18] Production.ERROR: pbx CDR StartTime 2025-02-02 14:43:05 - End Time 2025-02-02 17:43:05 [2025-02-02 17:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387284', 'tblTempUsageDetail_20' ) start [2025-02-02 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387284', 'tblTempUsageDetail_20' ) end [2025-02-02 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387284', 'tblTempVendorCDR_20' ) start [2025-02-02 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387284', 'tblTempVendorCDR_20' ) end [2025-02-02 17:43:18] Production.INFO: ProcessCDR(1,14387284,1,1,2) [2025-02-02 17:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387284', 'tblTempUsageDetail_20' ) start [2025-02-02 17:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387284', 'tblTempUsageDetail_20' ) end [2025-02-02 17:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:43:21] Production.INFO: ==25803== Releasing lock... [2025-02-02 17:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:43:21] Production.INFO: 37.5 MB #Memory Used# [2025-02-02 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:44:05 [end_date_ymd] => 2025-02-02 17:44:05 [RateCDR] => 1 ) [2025-02-02 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-02 14:44:05' and `end` < '2025-02-02 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-02 17:44:18] Production.INFO: count ==1225 [2025-02-02 17:44:18] Production.ERROR: pbx CDR StartTime 2025-02-02 14:44:05 - End Time 2025-02-02 17:44:05 [2025-02-02 17:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387289', 'tblTempUsageDetail_20' ) start [2025-02-02 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387289', 'tblTempUsageDetail_20' ) end [2025-02-02 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387289', 'tblTempVendorCDR_20' ) start [2025-02-02 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387289', 'tblTempVendorCDR_20' ) end [2025-02-02 17:44:18] Production.INFO: ProcessCDR(1,14387289,1,1,2) [2025-02-02 17:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387289', 'tblTempUsageDetail_20' ) start [2025-02-02 17:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387289', 'tblTempUsageDetail_20' ) end [2025-02-02 17:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:44:22] Production.INFO: ==25879== Releasing lock... [2025-02-02 17:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:44:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:45:05 [end_date_ymd] => 2025-02-02 17:45:05 [RateCDR] => 1 ) [2025-02-02 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-02 14:45:05' and `end` < '2025-02-02 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-02 17:45:18] Production.INFO: count ==1229 [2025-02-02 17:45:18] Production.ERROR: pbx CDR StartTime 2025-02-02 14:45:05 - End Time 2025-02-02 17:45:05 [2025-02-02 17:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387294', 'tblTempUsageDetail_20' ) start [2025-02-02 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387294', 'tblTempUsageDetail_20' ) end [2025-02-02 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387294', 'tblTempVendorCDR_20' ) start [2025-02-02 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387294', 'tblTempVendorCDR_20' ) end [2025-02-02 17:45:18] Production.INFO: ProcessCDR(1,14387294,1,1,2) [2025-02-02 17:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387294', 'tblTempUsageDetail_20' ) start [2025-02-02 17:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387294', 'tblTempUsageDetail_20' ) end [2025-02-02 17:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:45:23] Production.INFO: ==25954== Releasing lock... [2025-02-02 17:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:45:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:46:05 [end_date_ymd] => 2025-02-02 17:46:05 [RateCDR] => 1 ) [2025-02-02 17:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 14:46:05' and `end` < '2025-02-02 17:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 17:46:19] Production.INFO: count ==1229 [2025-02-02 17:46:19] Production.ERROR: pbx CDR StartTime 2025-02-02 14:46:05 - End Time 2025-02-02 17:46:05 [2025-02-02 17:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387299', 'tblTempUsageDetail_20' ) start [2025-02-02 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387299', 'tblTempUsageDetail_20' ) end [2025-02-02 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387299', 'tblTempVendorCDR_20' ) start [2025-02-02 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387299', 'tblTempVendorCDR_20' ) end [2025-02-02 17:46:19] Production.INFO: ProcessCDR(1,14387299,1,1,2) [2025-02-02 17:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387299', 'tblTempUsageDetail_20' ) start [2025-02-02 17:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387299', 'tblTempUsageDetail_20' ) end [2025-02-02 17:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:46:23] Production.INFO: ==26030== Releasing lock... [2025-02-02 17:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:46:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:47:05 [end_date_ymd] => 2025-02-02 17:47:05 [RateCDR] => 1 ) [2025-02-02 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-02 14:47:05' and `end` < '2025-02-02 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-02 17:47:18] Production.INFO: count ==1232 [2025-02-02 17:47:18] Production.ERROR: pbx CDR StartTime 2025-02-02 14:47:05 - End Time 2025-02-02 17:47:05 [2025-02-02 17:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387304', 'tblTempUsageDetail_20' ) start [2025-02-02 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387304', 'tblTempUsageDetail_20' ) end [2025-02-02 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387304', 'tblTempVendorCDR_20' ) start [2025-02-02 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387304', 'tblTempVendorCDR_20' ) end [2025-02-02 17:47:18] Production.INFO: ProcessCDR(1,14387304,1,1,2) [2025-02-02 17:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387304', 'tblTempUsageDetail_20' ) start [2025-02-02 17:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387304', 'tblTempUsageDetail_20' ) end [2025-02-02 17:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:47:22] Production.INFO: ==26100== Releasing lock... [2025-02-02 17:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:47:22] Production.INFO: 37 MB #Memory Used# [2025-02-02 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:48:05 [end_date_ymd] => 2025-02-02 17:48:05 [RateCDR] => 1 ) [2025-02-02 17:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 14:48:05' and `end` < '2025-02-02 17:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 17:48:18] Production.INFO: count ==1220 [2025-02-02 17:48:19] Production.ERROR: pbx CDR StartTime 2025-02-02 14:48:05 - End Time 2025-02-02 17:48:05 [2025-02-02 17:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387309', 'tblTempUsageDetail_20' ) start [2025-02-02 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387309', 'tblTempUsageDetail_20' ) end [2025-02-02 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387309', 'tblTempVendorCDR_20' ) start [2025-02-02 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387309', 'tblTempVendorCDR_20' ) end [2025-02-02 17:48:19] Production.INFO: ProcessCDR(1,14387309,1,1,2) [2025-02-02 17:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387309', 'tblTempUsageDetail_20' ) start [2025-02-02 17:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387309', 'tblTempUsageDetail_20' ) end [2025-02-02 17:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:48:22] Production.INFO: ==26172== Releasing lock... [2025-02-02 17:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:48:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:49:05 [end_date_ymd] => 2025-02-02 17:49:05 [RateCDR] => 1 ) [2025-02-02 17:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 14:49:05' and `end` < '2025-02-02 17:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 17:49:17] Production.INFO: count ==1218 [2025-02-02 17:49:17] Production.ERROR: pbx CDR StartTime 2025-02-02 14:49:05 - End Time 2025-02-02 17:49:05 [2025-02-02 17:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387313', 'tblTempUsageDetail_20' ) start [2025-02-02 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387313', 'tblTempUsageDetail_20' ) end [2025-02-02 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387313', 'tblTempVendorCDR_20' ) start [2025-02-02 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387313', 'tblTempVendorCDR_20' ) end [2025-02-02 17:49:18] Production.INFO: ProcessCDR(1,14387313,1,1,2) [2025-02-02 17:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387313', 'tblTempUsageDetail_20' ) start [2025-02-02 17:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387313', 'tblTempUsageDetail_20' ) end [2025-02-02 17:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:49:21] Production.INFO: ==26250== Releasing lock... [2025-02-02 17:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:49:21] Production.INFO: 37 MB #Memory Used# [2025-02-02 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:50:06 [end_date_ymd] => 2025-02-02 17:50:06 [RateCDR] => 1 ) [2025-02-02 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-02 14:50:06' and `end` < '2025-02-02 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-02 17:50:19] Production.INFO: count ==1215 [2025-02-02 17:50:19] Production.ERROR: pbx CDR StartTime 2025-02-02 14:50:06 - End Time 2025-02-02 17:50:06 [2025-02-02 17:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387320', 'tblTempUsageDetail_20' ) start [2025-02-02 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387320', 'tblTempUsageDetail_20' ) end [2025-02-02 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387320', 'tblTempVendorCDR_20' ) start [2025-02-02 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387320', 'tblTempVendorCDR_20' ) end [2025-02-02 17:50:19] Production.INFO: ProcessCDR(1,14387320,1,1,2) [2025-02-02 17:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387320', 'tblTempUsageDetail_20' ) start [2025-02-02 17:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387320', 'tblTempUsageDetail_20' ) end [2025-02-02 17:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:50:22] Production.INFO: ==26325== Releasing lock... [2025-02-02 17:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:50:22] Production.INFO: 37 MB #Memory Used# [2025-02-02 17:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:51:06 [end_date_ymd] => 2025-02-02 17:51:06 [RateCDR] => 1 ) [2025-02-02 17:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 14:51:06' and `end` < '2025-02-02 17:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 17:51:20] Production.INFO: count ==1250 [2025-02-02 17:51:20] Production.ERROR: pbx CDR StartTime 2025-02-02 14:51:06 - End Time 2025-02-02 17:51:06 [2025-02-02 17:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387325', 'tblTempUsageDetail_20' ) start [2025-02-02 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387325', 'tblTempUsageDetail_20' ) end [2025-02-02 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387325', 'tblTempVendorCDR_20' ) start [2025-02-02 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387325', 'tblTempVendorCDR_20' ) end [2025-02-02 17:51:20] Production.INFO: ProcessCDR(1,14387325,1,1,2) [2025-02-02 17:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387325', 'tblTempUsageDetail_20' ) start [2025-02-02 17:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387325', 'tblTempUsageDetail_20' ) end [2025-02-02 17:51:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:51:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:51:24] Production.INFO: ==26401== Releasing lock... [2025-02-02 17:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:51:24] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:52:05 [end_date_ymd] => 2025-02-02 17:52:05 [RateCDR] => 1 ) [2025-02-02 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-02 14:52:05' and `end` < '2025-02-02 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-02 17:52:19] Production.INFO: count ==1250 [2025-02-02 17:52:19] Production.ERROR: pbx CDR StartTime 2025-02-02 14:52:05 - End Time 2025-02-02 17:52:05 [2025-02-02 17:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387330', 'tblTempUsageDetail_20' ) start [2025-02-02 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387330', 'tblTempUsageDetail_20' ) end [2025-02-02 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387330', 'tblTempVendorCDR_20' ) start [2025-02-02 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387330', 'tblTempVendorCDR_20' ) end [2025-02-02 17:52:19] Production.INFO: ProcessCDR(1,14387330,1,1,2) [2025-02-02 17:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387330', 'tblTempUsageDetail_20' ) start [2025-02-02 17:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387330', 'tblTempUsageDetail_20' ) end [2025-02-02 17:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:52:24] Production.INFO: ==26513== Releasing lock... [2025-02-02 17:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:52:24] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 17:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:53:06 [end_date_ymd] => 2025-02-02 17:53:06 [RateCDR] => 1 ) [2025-02-02 17:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 14:53:06' and `end` < '2025-02-02 17:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 17:53:19] Production.INFO: count ==1246 [2025-02-02 17:53:19] Production.ERROR: pbx CDR StartTime 2025-02-02 14:53:06 - End Time 2025-02-02 17:53:06 [2025-02-02 17:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387335', 'tblTempUsageDetail_20' ) start [2025-02-02 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387335', 'tblTempUsageDetail_20' ) end [2025-02-02 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387335', 'tblTempVendorCDR_20' ) start [2025-02-02 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387335', 'tblTempVendorCDR_20' ) end [2025-02-02 17:53:19] Production.INFO: ProcessCDR(1,14387335,1,1,2) [2025-02-02 17:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387335', 'tblTempUsageDetail_20' ) start [2025-02-02 17:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387335', 'tblTempUsageDetail_20' ) end [2025-02-02 17:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:53:22] Production.INFO: ==26586== Releasing lock... [2025-02-02 17:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:53:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:54:05 [end_date_ymd] => 2025-02-02 17:54:05 [RateCDR] => 1 ) [2025-02-02 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-02 14:54:05' and `end` < '2025-02-02 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-02 17:54:18] Production.INFO: count ==1245 [2025-02-02 17:54:18] Production.ERROR: pbx CDR StartTime 2025-02-02 14:54:05 - End Time 2025-02-02 17:54:05 [2025-02-02 17:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387340', 'tblTempUsageDetail_20' ) start [2025-02-02 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387340', 'tblTempUsageDetail_20' ) end [2025-02-02 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387340', 'tblTempVendorCDR_20' ) start [2025-02-02 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387340', 'tblTempVendorCDR_20' ) end [2025-02-02 17:54:18] Production.INFO: ProcessCDR(1,14387340,1,1,2) [2025-02-02 17:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387340', 'tblTempUsageDetail_20' ) start [2025-02-02 17:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387340', 'tblTempUsageDetail_20' ) end [2025-02-02 17:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:54:22] Production.INFO: ==26654== Releasing lock... [2025-02-02 17:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:54:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-02 17:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:55:06 [end_date_ymd] => 2025-02-02 17:55:06 [RateCDR] => 1 ) [2025-02-02 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-02 14:55:06' and `end` < '2025-02-02 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-02 17:55:19] Production.INFO: count ==1240 [2025-02-02 17:55:19] Production.ERROR: pbx CDR StartTime 2025-02-02 14:55:06 - End Time 2025-02-02 17:55:06 [2025-02-02 17:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387345', 'tblTempUsageDetail_20' ) start [2025-02-02 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387345', 'tblTempUsageDetail_20' ) end [2025-02-02 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387345', 'tblTempVendorCDR_20' ) start [2025-02-02 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387345', 'tblTempVendorCDR_20' ) end [2025-02-02 17:55:19] Production.INFO: ProcessCDR(1,14387345,1,1,2) [2025-02-02 17:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387345', 'tblTempUsageDetail_20' ) start [2025-02-02 17:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387345', 'tblTempUsageDetail_20' ) end [2025-02-02 17:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:55:22] Production.INFO: ==26729== Releasing lock... [2025-02-02 17:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:55:22] Production.INFO: 37 MB #Memory Used# [2025-02-02 17:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:56:04 [end_date_ymd] => 2025-02-02 17:56:04 [RateCDR] => 1 ) [2025-02-02 17:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 14:56:04' and `end` < '2025-02-02 17:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 17:56:17] Production.INFO: count ==1240 [2025-02-02 17:56:18] Production.ERROR: pbx CDR StartTime 2025-02-02 14:56:04 - End Time 2025-02-02 17:56:04 [2025-02-02 17:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387350', 'tblTempUsageDetail_20' ) start [2025-02-02 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387350', 'tblTempUsageDetail_20' ) end [2025-02-02 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387350', 'tblTempVendorCDR_20' ) start [2025-02-02 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387350', 'tblTempVendorCDR_20' ) end [2025-02-02 17:56:18] Production.INFO: ProcessCDR(1,14387350,1,1,2) [2025-02-02 17:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387350', 'tblTempUsageDetail_20' ) start [2025-02-02 17:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387350', 'tblTempUsageDetail_20' ) end [2025-02-02 17:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:56:21] Production.INFO: ==26799== Releasing lock... [2025-02-02 17:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:56:21] Production.INFO: 37 MB #Memory Used# [2025-02-02 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:57:05 [end_date_ymd] => 2025-02-02 17:57:05 [RateCDR] => 1 ) [2025-02-02 17:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 14:57:05' and `end` < '2025-02-02 17:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 17:57:18] Production.INFO: count ==1241 [2025-02-02 17:57:18] Production.ERROR: pbx CDR StartTime 2025-02-02 14:57:05 - End Time 2025-02-02 17:57:05 [2025-02-02 17:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387355', 'tblTempUsageDetail_20' ) start [2025-02-02 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387355', 'tblTempUsageDetail_20' ) end [2025-02-02 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387355', 'tblTempVendorCDR_20' ) start [2025-02-02 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387355', 'tblTempVendorCDR_20' ) end [2025-02-02 17:57:18] Production.INFO: ProcessCDR(1,14387355,1,1,2) [2025-02-02 17:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387355', 'tblTempUsageDetail_20' ) start [2025-02-02 17:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387355', 'tblTempUsageDetail_20' ) end [2025-02-02 17:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:57:22] Production.INFO: ==26872== Releasing lock... [2025-02-02 17:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:57:22] Production.INFO: 37 MB #Memory Used# [2025-02-02 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:58:05 [end_date_ymd] => 2025-02-02 17:58:05 [RateCDR] => 1 ) [2025-02-02 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-02 14:58:05' and `end` < '2025-02-02 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-02 17:58:18] Production.INFO: count ==1240 [2025-02-02 17:58:18] Production.ERROR: pbx CDR StartTime 2025-02-02 14:58:05 - End Time 2025-02-02 17:58:05 [2025-02-02 17:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387360', 'tblTempUsageDetail_20' ) start [2025-02-02 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387360', 'tblTempUsageDetail_20' ) end [2025-02-02 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387360', 'tblTempVendorCDR_20' ) start [2025-02-02 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387360', 'tblTempVendorCDR_20' ) end [2025-02-02 17:58:18] Production.INFO: ProcessCDR(1,14387360,1,1,2) [2025-02-02 17:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387360', 'tblTempUsageDetail_20' ) start [2025-02-02 17:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387360', 'tblTempUsageDetail_20' ) end [2025-02-02 17:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:58:21] Production.INFO: ==26943== Releasing lock... [2025-02-02 17:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:58:21] Production.INFO: 37 MB #Memory Used# [2025-02-02 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 14:59:05 [end_date_ymd] => 2025-02-02 17:59:05 [RateCDR] => 1 ) [2025-02-02 17:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 14:59:05' and `end` < '2025-02-02 17:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 17:59:18] Production.INFO: count ==1239 [2025-02-02 17:59:18] Production.ERROR: pbx CDR StartTime 2025-02-02 14:59:05 - End Time 2025-02-02 17:59:05 [2025-02-02 17:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387365', 'tblTempUsageDetail_20' ) start [2025-02-02 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387365', 'tblTempUsageDetail_20' ) end [2025-02-02 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387365', 'tblTempVendorCDR_20' ) start [2025-02-02 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387365', 'tblTempVendorCDR_20' ) end [2025-02-02 17:59:18] Production.INFO: ProcessCDR(1,14387365,1,1,2) [2025-02-02 17:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 17:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 17:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387365', 'tblTempUsageDetail_20' ) start [2025-02-02 17:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387365', 'tblTempUsageDetail_20' ) end [2025-02-02 17:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 17:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 17:59:21] Production.INFO: ==27013== Releasing lock... [2025-02-02 17:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 17:59:21] Production.INFO: 37 MB #Memory Used# [2025-02-02 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:00:06 [end_date_ymd] => 2025-02-02 18:00:06 [RateCDR] => 1 ) [2025-02-02 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-02 15:00:06' and `end` < '2025-02-02 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-02 18:00:19] Production.INFO: count ==1238 [2025-02-02 18:00:19] Production.ERROR: pbx CDR StartTime 2025-02-02 15:00:06 - End Time 2025-02-02 18:00:06 [2025-02-02 18:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387370', 'tblTempUsageDetail_20' ) start [2025-02-02 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387370', 'tblTempUsageDetail_20' ) end [2025-02-02 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387370', 'tblTempVendorCDR_20' ) start [2025-02-02 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387370', 'tblTempVendorCDR_20' ) end [2025-02-02 18:00:19] Production.INFO: ProcessCDR(1,14387370,1,1,2) [2025-02-02 18:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387370', 'tblTempUsageDetail_20' ) start [2025-02-02 18:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387370', 'tblTempUsageDetail_20' ) end [2025-02-02 18:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:00:22] Production.INFO: ==27087== Releasing lock... [2025-02-02 18:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:00:22] Production.INFO: 37 MB #Memory Used# [2025-02-02 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:01:05 [end_date_ymd] => 2025-02-02 18:01:05 [RateCDR] => 1 ) [2025-02-02 18:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 15:01:05' and `end` < '2025-02-02 18:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 18:01:18] Production.INFO: count ==1245 [2025-02-02 18:01:18] Production.ERROR: pbx CDR StartTime 2025-02-02 15:01:05 - End Time 2025-02-02 18:01:05 [2025-02-02 18:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387376', 'tblTempUsageDetail_20' ) start [2025-02-02 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387376', 'tblTempUsageDetail_20' ) end [2025-02-02 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387376', 'tblTempVendorCDR_20' ) start [2025-02-02 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387376', 'tblTempVendorCDR_20' ) end [2025-02-02 18:01:18] Production.INFO: ProcessCDR(1,14387376,1,1,2) [2025-02-02 18:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387376', 'tblTempUsageDetail_20' ) start [2025-02-02 18:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387376', 'tblTempUsageDetail_20' ) end [2025-02-02 18:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:01:21] Production.INFO: ==27170== Releasing lock... [2025-02-02 18:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:01:21] Production.INFO: 37.5 MB #Memory Used# [2025-02-02 18:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:02:06 [end_date_ymd] => 2025-02-02 18:02:06 [RateCDR] => 1 ) [2025-02-02 18:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 15:02:06' and `end` < '2025-02-02 18:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 18:02:19] Production.INFO: count ==1245 [2025-02-02 18:02:19] Production.ERROR: pbx CDR StartTime 2025-02-02 15:02:06 - End Time 2025-02-02 18:02:06 [2025-02-02 18:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387381', 'tblTempUsageDetail_20' ) start [2025-02-02 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387381', 'tblTempUsageDetail_20' ) end [2025-02-02 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387381', 'tblTempVendorCDR_20' ) start [2025-02-02 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387381', 'tblTempVendorCDR_20' ) end [2025-02-02 18:02:19] Production.INFO: ProcessCDR(1,14387381,1,1,2) [2025-02-02 18:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387381', 'tblTempUsageDetail_20' ) start [2025-02-02 18:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387381', 'tblTempUsageDetail_20' ) end [2025-02-02 18:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:02:22] Production.INFO: ==27241== Releasing lock... [2025-02-02 18:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:02:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-02 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:03:05 [end_date_ymd] => 2025-02-02 18:03:05 [RateCDR] => 1 ) [2025-02-02 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-02 15:03:05' and `end` < '2025-02-02 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-02 18:03:19] Production.INFO: count ==1242 [2025-02-02 18:03:19] Production.ERROR: pbx CDR StartTime 2025-02-02 15:03:05 - End Time 2025-02-02 18:03:05 [2025-02-02 18:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387386', 'tblTempUsageDetail_20' ) start [2025-02-02 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387386', 'tblTempUsageDetail_20' ) end [2025-02-02 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387386', 'tblTempVendorCDR_20' ) start [2025-02-02 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387386', 'tblTempVendorCDR_20' ) end [2025-02-02 18:03:19] Production.INFO: ProcessCDR(1,14387386,1,1,2) [2025-02-02 18:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387386', 'tblTempUsageDetail_20' ) start [2025-02-02 18:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387386', 'tblTempUsageDetail_20' ) end [2025-02-02 18:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:03:22] Production.INFO: ==27310== Releasing lock... [2025-02-02 18:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:03:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:04:05 [end_date_ymd] => 2025-02-02 18:04:05 [RateCDR] => 1 ) [2025-02-02 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-02 15:04:05' and `end` < '2025-02-02 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-02 18:04:18] Production.INFO: count ==1238 [2025-02-02 18:04:18] Production.ERROR: pbx CDR StartTime 2025-02-02 15:04:05 - End Time 2025-02-02 18:04:05 [2025-02-02 18:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387391', 'tblTempUsageDetail_20' ) start [2025-02-02 18:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387391', 'tblTempUsageDetail_20' ) end [2025-02-02 18:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387391', 'tblTempVendorCDR_20' ) start [2025-02-02 18:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387391', 'tblTempVendorCDR_20' ) end [2025-02-02 18:04:18] Production.INFO: ProcessCDR(1,14387391,1,1,2) [2025-02-02 18:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387391', 'tblTempUsageDetail_20' ) start [2025-02-02 18:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387391', 'tblTempUsageDetail_20' ) end [2025-02-02 18:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:04:21] Production.INFO: ==27383== Releasing lock... [2025-02-02 18:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:04:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:05:05 [end_date_ymd] => 2025-02-02 18:05:05 [RateCDR] => 1 ) [2025-02-02 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-02 15:05:05' and `end` < '2025-02-02 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-02 18:05:18] Production.INFO: count ==1230 [2025-02-02 18:05:18] Production.ERROR: pbx CDR StartTime 2025-02-02 15:05:05 - End Time 2025-02-02 18:05:05 [2025-02-02 18:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387396', 'tblTempUsageDetail_20' ) start [2025-02-02 18:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387396', 'tblTempUsageDetail_20' ) end [2025-02-02 18:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387396', 'tblTempVendorCDR_20' ) start [2025-02-02 18:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387396', 'tblTempVendorCDR_20' ) end [2025-02-02 18:05:18] Production.INFO: ProcessCDR(1,14387396,1,1,2) [2025-02-02 18:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387396', 'tblTempUsageDetail_20' ) start [2025-02-02 18:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387396', 'tblTempUsageDetail_20' ) end [2025-02-02 18:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:05:21] Production.INFO: ==27454== Releasing lock... [2025-02-02 18:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:05:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:06:05 [end_date_ymd] => 2025-02-02 18:06:05 [RateCDR] => 1 ) [2025-02-02 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-02 15:06:05' and `end` < '2025-02-02 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-02 18:06:18] Production.INFO: count ==1226 [2025-02-02 18:06:18] Production.ERROR: pbx CDR StartTime 2025-02-02 15:06:05 - End Time 2025-02-02 18:06:05 [2025-02-02 18:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387401', 'tblTempUsageDetail_20' ) start [2025-02-02 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387401', 'tblTempUsageDetail_20' ) end [2025-02-02 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387401', 'tblTempVendorCDR_20' ) start [2025-02-02 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387401', 'tblTempVendorCDR_20' ) end [2025-02-02 18:06:18] Production.INFO: ProcessCDR(1,14387401,1,1,2) [2025-02-02 18:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387401', 'tblTempUsageDetail_20' ) start [2025-02-02 18:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387401', 'tblTempUsageDetail_20' ) end [2025-02-02 18:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:06:21] Production.INFO: ==27526== Releasing lock... [2025-02-02 18:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:06:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 18:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:07:04 [end_date_ymd] => 2025-02-02 18:07:04 [RateCDR] => 1 ) [2025-02-02 18:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 15:07:04' and `end` < '2025-02-02 18:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 18:07:17] Production.INFO: count ==1222 [2025-02-02 18:07:17] Production.ERROR: pbx CDR StartTime 2025-02-02 15:07:04 - End Time 2025-02-02 18:07:04 [2025-02-02 18:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387406', 'tblTempUsageDetail_20' ) start [2025-02-02 18:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387406', 'tblTempUsageDetail_20' ) end [2025-02-02 18:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387406', 'tblTempVendorCDR_20' ) start [2025-02-02 18:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387406', 'tblTempVendorCDR_20' ) end [2025-02-02 18:07:17] Production.INFO: ProcessCDR(1,14387406,1,1,2) [2025-02-02 18:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387406', 'tblTempUsageDetail_20' ) start [2025-02-02 18:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387406', 'tblTempUsageDetail_20' ) end [2025-02-02 18:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:07:22] Production.INFO: ==27636== Releasing lock... [2025-02-02 18:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:07:22] Production.INFO: 37 MB #Memory Used# [2025-02-02 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:08:05 [end_date_ymd] => 2025-02-02 18:08:05 [RateCDR] => 1 ) [2025-02-02 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-02 15:08:05' and `end` < '2025-02-02 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-02 18:08:18] Production.INFO: count ==1219 [2025-02-02 18:08:18] Production.ERROR: pbx CDR StartTime 2025-02-02 15:08:05 - End Time 2025-02-02 18:08:05 [2025-02-02 18:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387411', 'tblTempUsageDetail_20' ) start [2025-02-02 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387411', 'tblTempUsageDetail_20' ) end [2025-02-02 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387411', 'tblTempVendorCDR_20' ) start [2025-02-02 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387411', 'tblTempVendorCDR_20' ) end [2025-02-02 18:08:18] Production.INFO: ProcessCDR(1,14387411,1,1,2) [2025-02-02 18:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387411', 'tblTempUsageDetail_20' ) start [2025-02-02 18:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387411', 'tblTempUsageDetail_20' ) end [2025-02-02 18:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:08:21] Production.INFO: ==27706== Releasing lock... [2025-02-02 18:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:08:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:09:05 [end_date_ymd] => 2025-02-02 18:09:05 [RateCDR] => 1 ) [2025-02-02 18:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 15:09:05' and `end` < '2025-02-02 18:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 18:09:18] Production.INFO: count ==1221 [2025-02-02 18:09:18] Production.ERROR: pbx CDR StartTime 2025-02-02 15:09:05 - End Time 2025-02-02 18:09:05 [2025-02-02 18:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387416', 'tblTempUsageDetail_20' ) start [2025-02-02 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387416', 'tblTempUsageDetail_20' ) end [2025-02-02 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387416', 'tblTempVendorCDR_20' ) start [2025-02-02 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387416', 'tblTempVendorCDR_20' ) end [2025-02-02 18:09:18] Production.INFO: ProcessCDR(1,14387416,1,1,2) [2025-02-02 18:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387416', 'tblTempUsageDetail_20' ) start [2025-02-02 18:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387416', 'tblTempUsageDetail_20' ) end [2025-02-02 18:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:09:21] Production.INFO: ==27778== Releasing lock... [2025-02-02 18:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:09:21] Production.INFO: 37 MB #Memory Used# [2025-02-02 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:10:06 [end_date_ymd] => 2025-02-02 18:10:06 [RateCDR] => 1 ) [2025-02-02 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-02 15:10:06' and `end` < '2025-02-02 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-02 18:10:19] Production.INFO: count ==1226 [2025-02-02 18:10:19] Production.ERROR: pbx CDR StartTime 2025-02-02 15:10:06 - End Time 2025-02-02 18:10:06 [2025-02-02 18:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387422', 'tblTempUsageDetail_20' ) start [2025-02-02 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387422', 'tblTempUsageDetail_20' ) end [2025-02-02 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387422', 'tblTempVendorCDR_20' ) start [2025-02-02 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387422', 'tblTempVendorCDR_20' ) end [2025-02-02 18:10:19] Production.INFO: ProcessCDR(1,14387422,1,1,2) [2025-02-02 18:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387422', 'tblTempUsageDetail_20' ) start [2025-02-02 18:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387422', 'tblTempUsageDetail_20' ) end [2025-02-02 18:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:10:24] Production.INFO: ==27851== Releasing lock... [2025-02-02 18:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:10:24] Production.INFO: 37 MB #Memory Used# [2025-02-02 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:11:05 [end_date_ymd] => 2025-02-02 18:11:05 [RateCDR] => 1 ) [2025-02-02 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-02 15:11:05' and `end` < '2025-02-02 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-02 18:11:18] Production.INFO: count ==1231 [2025-02-02 18:11:18] Production.ERROR: pbx CDR StartTime 2025-02-02 15:11:05 - End Time 2025-02-02 18:11:05 [2025-02-02 18:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387427', 'tblTempUsageDetail_20' ) start [2025-02-02 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387427', 'tblTempUsageDetail_20' ) end [2025-02-02 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387427', 'tblTempVendorCDR_20' ) start [2025-02-02 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387427', 'tblTempVendorCDR_20' ) end [2025-02-02 18:11:19] Production.INFO: ProcessCDR(1,14387427,1,1,2) [2025-02-02 18:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387427', 'tblTempUsageDetail_20' ) start [2025-02-02 18:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387427', 'tblTempUsageDetail_20' ) end [2025-02-02 18:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:11:22] Production.INFO: ==27925== Releasing lock... [2025-02-02 18:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:11:22] Production.INFO: 37 MB #Memory Used# [2025-02-02 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:12:05 [end_date_ymd] => 2025-02-02 18:12:05 [RateCDR] => 1 ) [2025-02-02 18:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 15:12:05' and `end` < '2025-02-02 18:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 18:12:19] Production.INFO: count ==1228 [2025-02-02 18:12:19] Production.ERROR: pbx CDR StartTime 2025-02-02 15:12:05 - End Time 2025-02-02 18:12:05 [2025-02-02 18:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387432', 'tblTempUsageDetail_20' ) start [2025-02-02 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387432', 'tblTempUsageDetail_20' ) end [2025-02-02 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387432', 'tblTempVendorCDR_20' ) start [2025-02-02 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387432', 'tblTempVendorCDR_20' ) end [2025-02-02 18:12:19] Production.INFO: ProcessCDR(1,14387432,1,1,2) [2025-02-02 18:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387432', 'tblTempUsageDetail_20' ) start [2025-02-02 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387432', 'tblTempUsageDetail_20' ) end [2025-02-02 18:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:12:23] Production.INFO: ==27996== Releasing lock... [2025-02-02 18:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:12:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:13:05 [end_date_ymd] => 2025-02-02 18:13:05 [RateCDR] => 1 ) [2025-02-02 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-02 15:13:05' and `end` < '2025-02-02 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-02 18:13:18] Production.INFO: count ==1232 [2025-02-02 18:13:18] Production.ERROR: pbx CDR StartTime 2025-02-02 15:13:05 - End Time 2025-02-02 18:13:05 [2025-02-02 18:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387437', 'tblTempUsageDetail_20' ) start [2025-02-02 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387437', 'tblTempUsageDetail_20' ) end [2025-02-02 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387437', 'tblTempVendorCDR_20' ) start [2025-02-02 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387437', 'tblTempVendorCDR_20' ) end [2025-02-02 18:13:18] Production.INFO: ProcessCDR(1,14387437,1,1,2) [2025-02-02 18:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387437', 'tblTempUsageDetail_20' ) start [2025-02-02 18:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387437', 'tblTempUsageDetail_20' ) end [2025-02-02 18:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:13:21] Production.INFO: ==28067== Releasing lock... [2025-02-02 18:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:13:21] Production.INFO: 37 MB #Memory Used# [2025-02-02 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:14:05 [end_date_ymd] => 2025-02-02 18:14:05 [RateCDR] => 1 ) [2025-02-02 18:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 15:14:05' and `end` < '2025-02-02 18:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 18:14:19] Production.INFO: count ==1233 [2025-02-02 18:14:19] Production.ERROR: pbx CDR StartTime 2025-02-02 15:14:05 - End Time 2025-02-02 18:14:05 [2025-02-02 18:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387442', 'tblTempUsageDetail_20' ) start [2025-02-02 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387442', 'tblTempUsageDetail_20' ) end [2025-02-02 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387442', 'tblTempVendorCDR_20' ) start [2025-02-02 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387442', 'tblTempVendorCDR_20' ) end [2025-02-02 18:14:19] Production.INFO: ProcessCDR(1,14387442,1,1,2) [2025-02-02 18:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387442', 'tblTempUsageDetail_20' ) start [2025-02-02 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387442', 'tblTempUsageDetail_20' ) end [2025-02-02 18:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:14:24] Production.INFO: ==28139== Releasing lock... [2025-02-02 18:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:14:24] Production.INFO: 37 MB #Memory Used# [2025-02-02 18:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:15:04 [end_date_ymd] => 2025-02-02 18:15:04 [RateCDR] => 1 ) [2025-02-02 18: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-02 15:15:04' and `end` < '2025-02-02 18: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-02 18:15:17] Production.INFO: count ==1242 [2025-02-02 18:15:18] Production.ERROR: pbx CDR StartTime 2025-02-02 15:15:04 - End Time 2025-02-02 18:15:04 [2025-02-02 18:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387447', 'tblTempUsageDetail_20' ) start [2025-02-02 18:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387447', 'tblTempUsageDetail_20' ) end [2025-02-02 18:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387447', 'tblTempVendorCDR_20' ) start [2025-02-02 18:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387447', 'tblTempVendorCDR_20' ) end [2025-02-02 18:15:18] Production.INFO: ProcessCDR(1,14387447,1,1,2) [2025-02-02 18:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387447', 'tblTempUsageDetail_20' ) start [2025-02-02 18:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387447', 'tblTempUsageDetail_20' ) end [2025-02-02 18:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:15:21] Production.INFO: ==28220== Releasing lock... [2025-02-02 18:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:15:21] Production.INFO: 37 MB #Memory Used# [2025-02-02 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:16:05 [end_date_ymd] => 2025-02-02 18:16:05 [RateCDR] => 1 ) [2025-02-02 18:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 15:16:05' and `end` < '2025-02-02 18:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 18:16:18] Production.INFO: count ==1247 [2025-02-02 18:16:18] Production.ERROR: pbx CDR StartTime 2025-02-02 15:16:05 - End Time 2025-02-02 18:16:05 [2025-02-02 18:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387452', 'tblTempUsageDetail_20' ) start [2025-02-02 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387452', 'tblTempUsageDetail_20' ) end [2025-02-02 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387452', 'tblTempVendorCDR_20' ) start [2025-02-02 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387452', 'tblTempVendorCDR_20' ) end [2025-02-02 18:16:18] Production.INFO: ProcessCDR(1,14387452,1,1,2) [2025-02-02 18:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387452', 'tblTempUsageDetail_20' ) start [2025-02-02 18:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387452', 'tblTempUsageDetail_20' ) end [2025-02-02 18:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:16:22] Production.INFO: ==28293== Releasing lock... [2025-02-02 18:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:16:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 18:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:17:06 [end_date_ymd] => 2025-02-02 18:17:06 [RateCDR] => 1 ) [2025-02-02 18: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-02 15:17:06' and `end` < '2025-02-02 18: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-02 18:17:20] Production.INFO: count ==1244 [2025-02-02 18:17:20] Production.ERROR: pbx CDR StartTime 2025-02-02 15:17:06 - End Time 2025-02-02 18:17:06 [2025-02-02 18:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387457', 'tblTempUsageDetail_20' ) start [2025-02-02 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387457', 'tblTempUsageDetail_20' ) end [2025-02-02 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387457', 'tblTempVendorCDR_20' ) start [2025-02-02 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387457', 'tblTempVendorCDR_20' ) end [2025-02-02 18:17:20] Production.INFO: ProcessCDR(1,14387457,1,1,2) [2025-02-02 18:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387457', 'tblTempUsageDetail_20' ) start [2025-02-02 18:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387457', 'tblTempUsageDetail_20' ) end [2025-02-02 18:17:25] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:17:25] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:17:25] Production.INFO: ==28363== Releasing lock... [2025-02-02 18:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:17:25] Production.INFO: 37 MB #Memory Used# [2025-02-02 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:18:05 [end_date_ymd] => 2025-02-02 18:18:05 [RateCDR] => 1 ) [2025-02-02 18:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 15:18:05' and `end` < '2025-02-02 18:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 18:18:17] Production.INFO: count ==1243 [2025-02-02 18:18:18] Production.ERROR: pbx CDR StartTime 2025-02-02 15:18:05 - End Time 2025-02-02 18:18:05 [2025-02-02 18:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387462', 'tblTempUsageDetail_20' ) start [2025-02-02 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387462', 'tblTempUsageDetail_20' ) end [2025-02-02 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387462', 'tblTempVendorCDR_20' ) start [2025-02-02 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387462', 'tblTempVendorCDR_20' ) end [2025-02-02 18:18:18] Production.INFO: ProcessCDR(1,14387462,1,1,2) [2025-02-02 18:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387462', 'tblTempUsageDetail_20' ) start [2025-02-02 18:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387462', 'tblTempUsageDetail_20' ) end [2025-02-02 18:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:18:22] Production.INFO: ==28432== Releasing lock... [2025-02-02 18:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:18:22] Production.INFO: 37 MB #Memory Used# [2025-02-02 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:19:05 [end_date_ymd] => 2025-02-02 18:19:05 [RateCDR] => 1 ) [2025-02-02 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-02 15:19:05' and `end` < '2025-02-02 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-02 18:19:19] Production.INFO: count ==1243 [2025-02-02 18:19:19] Production.ERROR: pbx CDR StartTime 2025-02-02 15:19:05 - End Time 2025-02-02 18:19:05 [2025-02-02 18:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387467', 'tblTempUsageDetail_20' ) start [2025-02-02 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387467', 'tblTempUsageDetail_20' ) end [2025-02-02 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387467', 'tblTempVendorCDR_20' ) start [2025-02-02 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387467', 'tblTempVendorCDR_20' ) end [2025-02-02 18:19:19] Production.INFO: ProcessCDR(1,14387467,1,1,2) [2025-02-02 18:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387467', 'tblTempUsageDetail_20' ) start [2025-02-02 18:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387467', 'tblTempUsageDetail_20' ) end [2025-02-02 18:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:19:22] Production.INFO: ==28504== Releasing lock... [2025-02-02 18:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:19:22] Production.INFO: 37 MB #Memory Used# [2025-02-02 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:20:06 [end_date_ymd] => 2025-02-02 18:20:06 [RateCDR] => 1 ) [2025-02-02 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-02 15:20:06' and `end` < '2025-02-02 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-02 18:20:19] Production.INFO: count ==1243 [2025-02-02 18:20:19] Production.ERROR: pbx CDR StartTime 2025-02-02 15:20:06 - End Time 2025-02-02 18:20:06 [2025-02-02 18:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387473', 'tblTempUsageDetail_20' ) start [2025-02-02 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387473', 'tblTempUsageDetail_20' ) end [2025-02-02 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387473', 'tblTempVendorCDR_20' ) start [2025-02-02 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387473', 'tblTempVendorCDR_20' ) end [2025-02-02 18:20:19] Production.INFO: ProcessCDR(1,14387473,1,1,2) [2025-02-02 18:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387473', 'tblTempUsageDetail_20' ) start [2025-02-02 18:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387473', 'tblTempUsageDetail_20' ) end [2025-02-02 18:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:20:23] Production.INFO: ==28579== Releasing lock... [2025-02-02 18:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:20:23] Production.INFO: 37 MB #Memory Used# [2025-02-02 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:21:05 [end_date_ymd] => 2025-02-02 18:21:05 [RateCDR] => 1 ) [2025-02-02 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-02 15:21:05' and `end` < '2025-02-02 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-02 18:21:18] Production.INFO: count ==1266 [2025-02-02 18:21:18] Production.ERROR: pbx CDR StartTime 2025-02-02 15:21:05 - End Time 2025-02-02 18:21:05 [2025-02-02 18:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387478', 'tblTempUsageDetail_20' ) start [2025-02-02 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387478', 'tblTempUsageDetail_20' ) end [2025-02-02 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387478', 'tblTempVendorCDR_20' ) start [2025-02-02 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387478', 'tblTempVendorCDR_20' ) end [2025-02-02 18:21:18] Production.INFO: ProcessCDR(1,14387478,1,1,2) [2025-02-02 18:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387478', 'tblTempUsageDetail_20' ) start [2025-02-02 18:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387478', 'tblTempUsageDetail_20' ) end [2025-02-02 18:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:21:21] Production.INFO: ==28652== Releasing lock... [2025-02-02 18:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:21:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:22:05 [end_date_ymd] => 2025-02-02 18:22:05 [RateCDR] => 1 ) [2025-02-02 18:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 15:22:05' and `end` < '2025-02-02 18:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 18:22:18] Production.INFO: count ==1266 [2025-02-02 18:22:19] Production.ERROR: pbx CDR StartTime 2025-02-02 15:22:05 - End Time 2025-02-02 18:22:05 [2025-02-02 18:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387483', 'tblTempUsageDetail_20' ) start [2025-02-02 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387483', 'tblTempUsageDetail_20' ) end [2025-02-02 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387483', 'tblTempVendorCDR_20' ) start [2025-02-02 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387483', 'tblTempVendorCDR_20' ) end [2025-02-02 18:22:19] Production.INFO: ProcessCDR(1,14387483,1,1,2) [2025-02-02 18:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387483', 'tblTempUsageDetail_20' ) start [2025-02-02 18:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387483', 'tblTempUsageDetail_20' ) end [2025-02-02 18:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:22:22] Production.INFO: ==28722== Releasing lock... [2025-02-02 18:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:22:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:23:05 [end_date_ymd] => 2025-02-02 18:23:05 [RateCDR] => 1 ) [2025-02-02 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-02 15:23:05' and `end` < '2025-02-02 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-02 18:23:18] Production.INFO: count ==1257 [2025-02-02 18:23:18] Production.ERROR: pbx CDR StartTime 2025-02-02 15:23:05 - End Time 2025-02-02 18:23:05 [2025-02-02 18:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387488', 'tblTempUsageDetail_20' ) start [2025-02-02 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387488', 'tblTempUsageDetail_20' ) end [2025-02-02 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387488', 'tblTempVendorCDR_20' ) start [2025-02-02 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387488', 'tblTempVendorCDR_20' ) end [2025-02-02 18:23:18] Production.INFO: ProcessCDR(1,14387488,1,1,2) [2025-02-02 18:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387488', 'tblTempUsageDetail_20' ) start [2025-02-02 18:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387488', 'tblTempUsageDetail_20' ) end [2025-02-02 18:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:23:22] Production.INFO: ==28833== Releasing lock... [2025-02-02 18:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:23:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 18:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:24:04 [end_date_ymd] => 2025-02-02 18:24:04 [RateCDR] => 1 ) [2025-02-02 18: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-02 15:24:04' and `end` < '2025-02-02 18: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-02 18:24:17] Production.INFO: count ==1259 [2025-02-02 18:24:17] Production.ERROR: pbx CDR StartTime 2025-02-02 15:24:04 - End Time 2025-02-02 18:24:04 [2025-02-02 18:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387493', 'tblTempUsageDetail_20' ) start [2025-02-02 18:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387493', 'tblTempUsageDetail_20' ) end [2025-02-02 18:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387493', 'tblTempVendorCDR_20' ) start [2025-02-02 18:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387493', 'tblTempVendorCDR_20' ) end [2025-02-02 18:24:17] Production.INFO: ProcessCDR(1,14387493,1,1,2) [2025-02-02 18:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387493', 'tblTempUsageDetail_20' ) start [2025-02-02 18:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387493', 'tblTempUsageDetail_20' ) end [2025-02-02 18:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:24:21] Production.INFO: ==28903== Releasing lock... [2025-02-02 18:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:24:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:25:05 [end_date_ymd] => 2025-02-02 18:25:05 [RateCDR] => 1 ) [2025-02-02 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-02 15:25:05' and `end` < '2025-02-02 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-02 18:25:18] Production.INFO: count ==1262 [2025-02-02 18:25:18] Production.ERROR: pbx CDR StartTime 2025-02-02 15:25:05 - End Time 2025-02-02 18:25:05 [2025-02-02 18:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387498', 'tblTempUsageDetail_20' ) start [2025-02-02 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387498', 'tblTempUsageDetail_20' ) end [2025-02-02 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387498', 'tblTempVendorCDR_20' ) start [2025-02-02 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387498', 'tblTempVendorCDR_20' ) end [2025-02-02 18:25:18] Production.INFO: ProcessCDR(1,14387498,1,1,2) [2025-02-02 18:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387498', 'tblTempUsageDetail_20' ) start [2025-02-02 18:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387498', 'tblTempUsageDetail_20' ) end [2025-02-02 18:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:25:23] Production.INFO: ==28974== Releasing lock... [2025-02-02 18:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:25:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:26:05 [end_date_ymd] => 2025-02-02 18:26:05 [RateCDR] => 1 ) [2025-02-02 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-02 15:26:05' and `end` < '2025-02-02 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-02 18:26:19] Production.INFO: count ==1265 [2025-02-02 18:26:19] Production.ERROR: pbx CDR StartTime 2025-02-02 15:26:05 - End Time 2025-02-02 18:26:05 [2025-02-02 18:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387503', 'tblTempUsageDetail_20' ) start [2025-02-02 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387503', 'tblTempUsageDetail_20' ) end [2025-02-02 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387503', 'tblTempVendorCDR_20' ) start [2025-02-02 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387503', 'tblTempVendorCDR_20' ) end [2025-02-02 18:26:19] Production.INFO: ProcessCDR(1,14387503,1,1,2) [2025-02-02 18:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387503', 'tblTempUsageDetail_20' ) start [2025-02-02 18:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387503', 'tblTempUsageDetail_20' ) end [2025-02-02 18:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:26:22] Production.INFO: ==29047== Releasing lock... [2025-02-02 18:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:26:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:27:05 [end_date_ymd] => 2025-02-02 18:27:05 [RateCDR] => 1 ) [2025-02-02 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-02 15:27:05' and `end` < '2025-02-02 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-02 18:27:18] Production.INFO: count ==1264 [2025-02-02 18:27:18] Production.ERROR: pbx CDR StartTime 2025-02-02 15:27:05 - End Time 2025-02-02 18:27:05 [2025-02-02 18:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387508', 'tblTempUsageDetail_20' ) start [2025-02-02 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387508', 'tblTempUsageDetail_20' ) end [2025-02-02 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387508', 'tblTempVendorCDR_20' ) start [2025-02-02 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387508', 'tblTempVendorCDR_20' ) end [2025-02-02 18:27:18] Production.INFO: ProcessCDR(1,14387508,1,1,2) [2025-02-02 18:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387508', 'tblTempUsageDetail_20' ) start [2025-02-02 18:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387508', 'tblTempUsageDetail_20' ) end [2025-02-02 18:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:27:23] Production.INFO: ==29120== Releasing lock... [2025-02-02 18:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:27:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:28:05 [end_date_ymd] => 2025-02-02 18:28:05 [RateCDR] => 1 ) [2025-02-02 18: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-02 15:28:05' and `end` < '2025-02-02 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-02 18:28:19] Production.INFO: count ==1261 [2025-02-02 18:28:19] Production.ERROR: pbx CDR StartTime 2025-02-02 15:28:05 - End Time 2025-02-02 18:28:05 [2025-02-02 18:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387513', 'tblTempUsageDetail_20' ) start [2025-02-02 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387513', 'tblTempUsageDetail_20' ) end [2025-02-02 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387513', 'tblTempVendorCDR_20' ) start [2025-02-02 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387513', 'tblTempVendorCDR_20' ) end [2025-02-02 18:28:19] Production.INFO: ProcessCDR(1,14387513,1,1,2) [2025-02-02 18:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387513', 'tblTempUsageDetail_20' ) start [2025-02-02 18:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387513', 'tblTempUsageDetail_20' ) end [2025-02-02 18:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:28:22] Production.INFO: ==29194== Releasing lock... [2025-02-02 18:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:28:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:29:05 [end_date_ymd] => 2025-02-02 18:29:05 [RateCDR] => 1 ) [2025-02-02 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-02 15:29:05' and `end` < '2025-02-02 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-02 18:29:19] Production.INFO: count ==1259 [2025-02-02 18:29:19] Production.ERROR: pbx CDR StartTime 2025-02-02 15:29:05 - End Time 2025-02-02 18:29:05 [2025-02-02 18:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387518', 'tblTempUsageDetail_20' ) start [2025-02-02 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387518', 'tblTempUsageDetail_20' ) end [2025-02-02 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387518', 'tblTempVendorCDR_20' ) start [2025-02-02 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387518', 'tblTempVendorCDR_20' ) end [2025-02-02 18:29:19] Production.INFO: ProcessCDR(1,14387518,1,1,2) [2025-02-02 18:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387518', 'tblTempUsageDetail_20' ) start [2025-02-02 18:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387518', 'tblTempUsageDetail_20' ) end [2025-02-02 18:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:29:23] Production.INFO: ==29264== Releasing lock... [2025-02-02 18:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:29:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:30:06 [end_date_ymd] => 2025-02-02 18:30:06 [RateCDR] => 1 ) [2025-02-02 18:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 15:30:06' and `end` < '2025-02-02 18:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 18:30:19] Production.INFO: count ==1259 [2025-02-02 18:30:19] Production.ERROR: pbx CDR StartTime 2025-02-02 15:30:06 - End Time 2025-02-02 18:30:06 [2025-02-02 18:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387524', 'tblTempUsageDetail_20' ) start [2025-02-02 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387524', 'tblTempUsageDetail_20' ) end [2025-02-02 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387524', 'tblTempVendorCDR_20' ) start [2025-02-02 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387524', 'tblTempVendorCDR_20' ) end [2025-02-02 18:30:19] Production.INFO: ProcessCDR(1,14387524,1,1,2) [2025-02-02 18:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387524', 'tblTempUsageDetail_20' ) start [2025-02-02 18:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387524', 'tblTempUsageDetail_20' ) end [2025-02-02 18:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:30:22] Production.INFO: ==29339== Releasing lock... [2025-02-02 18:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:30:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 18:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:31:04 [end_date_ymd] => 2025-02-02 18:31:04 [RateCDR] => 1 ) [2025-02-02 18:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 15:31:04' and `end` < '2025-02-02 18:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 18:31:17] Production.INFO: count ==1272 [2025-02-02 18:31:18] Production.ERROR: pbx CDR StartTime 2025-02-02 15:31:04 - End Time 2025-02-02 18:31:04 [2025-02-02 18:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387529', 'tblTempUsageDetail_20' ) start [2025-02-02 18:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387529', 'tblTempUsageDetail_20' ) end [2025-02-02 18:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387529', 'tblTempVendorCDR_20' ) start [2025-02-02 18:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387529', 'tblTempVendorCDR_20' ) end [2025-02-02 18:31:18] Production.INFO: ProcessCDR(1,14387529,1,1,2) [2025-02-02 18:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387529', 'tblTempUsageDetail_20' ) start [2025-02-02 18:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387529', 'tblTempUsageDetail_20' ) end [2025-02-02 18:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:31:21] Production.INFO: ==29410== Releasing lock... [2025-02-02 18:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:31:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 18:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:32:06 [end_date_ymd] => 2025-02-02 18:32:06 [RateCDR] => 1 ) [2025-02-02 18:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 15:32:06' and `end` < '2025-02-02 18:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 18:32:19] Production.INFO: count ==1262 [2025-02-02 18:32:19] Production.ERROR: pbx CDR StartTime 2025-02-02 15:32:06 - End Time 2025-02-02 18:32:06 [2025-02-02 18:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387534', 'tblTempUsageDetail_20' ) start [2025-02-02 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387534', 'tblTempUsageDetail_20' ) end [2025-02-02 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387534', 'tblTempVendorCDR_20' ) start [2025-02-02 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387534', 'tblTempVendorCDR_20' ) end [2025-02-02 18:32:19] Production.INFO: ProcessCDR(1,14387534,1,1,2) [2025-02-02 18:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387534', 'tblTempUsageDetail_20' ) start [2025-02-02 18:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387534', 'tblTempUsageDetail_20' ) end [2025-02-02 18:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:32:22] Production.INFO: ==29485== Releasing lock... [2025-02-02 18:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:32:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:33:05 [end_date_ymd] => 2025-02-02 18:33:05 [RateCDR] => 1 ) [2025-02-02 18:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 15:33:05' and `end` < '2025-02-02 18:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 18:33:18] Production.INFO: count ==1260 [2025-02-02 18:33:18] Production.ERROR: pbx CDR StartTime 2025-02-02 15:33:05 - End Time 2025-02-02 18:33:05 [2025-02-02 18:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387539', 'tblTempUsageDetail_20' ) start [2025-02-02 18:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387539', 'tblTempUsageDetail_20' ) end [2025-02-02 18:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387539', 'tblTempVendorCDR_20' ) start [2025-02-02 18:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387539', 'tblTempVendorCDR_20' ) end [2025-02-02 18:33:18] Production.INFO: ProcessCDR(1,14387539,1,1,2) [2025-02-02 18:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387539', 'tblTempUsageDetail_20' ) start [2025-02-02 18:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387539', 'tblTempUsageDetail_20' ) end [2025-02-02 18:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:33:21] Production.INFO: ==29557== Releasing lock... [2025-02-02 18:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:33:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:34:05 [end_date_ymd] => 2025-02-02 18:34:05 [RateCDR] => 1 ) [2025-02-02 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-02 15:34:05' and `end` < '2025-02-02 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-02 18:34:19] Production.INFO: count ==1256 [2025-02-02 18:34:19] Production.ERROR: pbx CDR StartTime 2025-02-02 15:34:05 - End Time 2025-02-02 18:34:05 [2025-02-02 18:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387544', 'tblTempUsageDetail_20' ) start [2025-02-02 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387544', 'tblTempUsageDetail_20' ) end [2025-02-02 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387544', 'tblTempVendorCDR_20' ) start [2025-02-02 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387544', 'tblTempVendorCDR_20' ) end [2025-02-02 18:34:19] Production.INFO: ProcessCDR(1,14387544,1,1,2) [2025-02-02 18:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387544', 'tblTempUsageDetail_20' ) start [2025-02-02 18:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387544', 'tblTempUsageDetail_20' ) end [2025-02-02 18:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:34:22] Production.INFO: ==29635== Releasing lock... [2025-02-02 18:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:34:22] Production.INFO: 37 MB #Memory Used# [2025-02-02 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:35:05 [end_date_ymd] => 2025-02-02 18:35:05 [RateCDR] => 1 ) [2025-02-02 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-02 15:35:05' and `end` < '2025-02-02 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-02 18:35:18] Production.INFO: count ==1256 [2025-02-02 18:35:18] Production.ERROR: pbx CDR StartTime 2025-02-02 15:35:05 - End Time 2025-02-02 18:35:05 [2025-02-02 18:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387549', 'tblTempUsageDetail_20' ) start [2025-02-02 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387549', 'tblTempUsageDetail_20' ) end [2025-02-02 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387549', 'tblTempVendorCDR_20' ) start [2025-02-02 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387549', 'tblTempVendorCDR_20' ) end [2025-02-02 18:35:18] Production.INFO: ProcessCDR(1,14387549,1,1,2) [2025-02-02 18:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387549', 'tblTempUsageDetail_20' ) start [2025-02-02 18:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387549', 'tblTempUsageDetail_20' ) end [2025-02-02 18:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:35:21] Production.INFO: ==29703== Releasing lock... [2025-02-02 18:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:35:21] Production.INFO: 37 MB #Memory Used# [2025-02-02 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:36:05 [end_date_ymd] => 2025-02-02 18:36:05 [RateCDR] => 1 ) [2025-02-02 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-02 15:36:05' and `end` < '2025-02-02 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-02 18:36:18] Production.INFO: count ==1254 [2025-02-02 18:36:18] Production.ERROR: pbx CDR StartTime 2025-02-02 15:36:05 - End Time 2025-02-02 18:36:05 [2025-02-02 18:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387554', 'tblTempUsageDetail_20' ) start [2025-02-02 18:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387554', 'tblTempUsageDetail_20' ) end [2025-02-02 18:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387554', 'tblTempVendorCDR_20' ) start [2025-02-02 18:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387554', 'tblTempVendorCDR_20' ) end [2025-02-02 18:36:18] Production.INFO: ProcessCDR(1,14387554,1,1,2) [2025-02-02 18:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387554', 'tblTempUsageDetail_20' ) start [2025-02-02 18:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387554', 'tblTempUsageDetail_20' ) end [2025-02-02 18:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:36:21] Production.INFO: ==29774== Releasing lock... [2025-02-02 18:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:36:21] Production.INFO: 37 MB #Memory Used# [2025-02-02 18:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:37:06 [end_date_ymd] => 2025-02-02 18:37:06 [RateCDR] => 1 ) [2025-02-02 18: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-02 15:37:06' and `end` < '2025-02-02 18: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-02 18:37:19] Production.INFO: count ==1239 [2025-02-02 18:37:19] Production.ERROR: pbx CDR StartTime 2025-02-02 15:37:06 - End Time 2025-02-02 18:37:06 [2025-02-02 18:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387559', 'tblTempUsageDetail_20' ) start [2025-02-02 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387559', 'tblTempUsageDetail_20' ) end [2025-02-02 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387559', 'tblTempVendorCDR_20' ) start [2025-02-02 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387559', 'tblTempVendorCDR_20' ) end [2025-02-02 18:37:19] Production.INFO: ProcessCDR(1,14387559,1,1,2) [2025-02-02 18:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387559', 'tblTempUsageDetail_20' ) start [2025-02-02 18:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387559', 'tblTempUsageDetail_20' ) end [2025-02-02 18:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:37:22] Production.INFO: ==29844== Releasing lock... [2025-02-02 18:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:37:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:38:05 [end_date_ymd] => 2025-02-02 18:38:05 [RateCDR] => 1 ) [2025-02-02 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-02 15:38:05' and `end` < '2025-02-02 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-02 18:38:18] Production.INFO: count ==1230 [2025-02-02 18:38:18] Production.ERROR: pbx CDR StartTime 2025-02-02 15:38:05 - End Time 2025-02-02 18:38:05 [2025-02-02 18:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387564', 'tblTempUsageDetail_20' ) start [2025-02-02 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387564', 'tblTempUsageDetail_20' ) end [2025-02-02 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387564', 'tblTempVendorCDR_20' ) start [2025-02-02 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387564', 'tblTempVendorCDR_20' ) end [2025-02-02 18:38:18] Production.INFO: ProcessCDR(1,14387564,1,1,2) [2025-02-02 18:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387564', 'tblTempUsageDetail_20' ) start [2025-02-02 18:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387564', 'tblTempUsageDetail_20' ) end [2025-02-02 18:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:38:22] Production.INFO: ==29954== Releasing lock... [2025-02-02 18:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:38:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:39:05 [end_date_ymd] => 2025-02-02 18:39:05 [RateCDR] => 1 ) [2025-02-02 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-02 15:39:05' and `end` < '2025-02-02 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-02 18:39:19] Production.INFO: count ==1229 [2025-02-02 18:39:19] Production.ERROR: pbx CDR StartTime 2025-02-02 15:39:05 - End Time 2025-02-02 18:39:05 [2025-02-02 18:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387569', 'tblTempUsageDetail_20' ) start [2025-02-02 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387569', 'tblTempUsageDetail_20' ) end [2025-02-02 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387569', 'tblTempVendorCDR_20' ) start [2025-02-02 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387569', 'tblTempVendorCDR_20' ) end [2025-02-02 18:39:19] Production.INFO: ProcessCDR(1,14387569,1,1,2) [2025-02-02 18:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387569', 'tblTempUsageDetail_20' ) start [2025-02-02 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387569', 'tblTempUsageDetail_20' ) end [2025-02-02 18:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:39:22] Production.INFO: ==30030== Releasing lock... [2025-02-02 18:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:39:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:40:06 [end_date_ymd] => 2025-02-02 18:40:06 [RateCDR] => 1 ) [2025-02-02 18:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 15:40:06' and `end` < '2025-02-02 18:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 18:40:19] Production.INFO: count ==1228 [2025-02-02 18:40:19] Production.ERROR: pbx CDR StartTime 2025-02-02 15:40:06 - End Time 2025-02-02 18:40:06 [2025-02-02 18:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387575', 'tblTempUsageDetail_20' ) start [2025-02-02 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387575', 'tblTempUsageDetail_20' ) end [2025-02-02 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387575', 'tblTempVendorCDR_20' ) start [2025-02-02 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387575', 'tblTempVendorCDR_20' ) end [2025-02-02 18:40:19] Production.INFO: ProcessCDR(1,14387575,1,1,2) [2025-02-02 18:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387575', 'tblTempUsageDetail_20' ) start [2025-02-02 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387575', 'tblTempUsageDetail_20' ) end [2025-02-02 18:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:40:24] Production.INFO: ==30110== Releasing lock... [2025-02-02 18:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:40:24] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:41:05 [end_date_ymd] => 2025-02-02 18:41:05 [RateCDR] => 1 ) [2025-02-02 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-02 15:41:05' and `end` < '2025-02-02 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-02 18:41:18] Production.INFO: count ==1270 [2025-02-02 18:41:19] Production.ERROR: pbx CDR StartTime 2025-02-02 15:41:05 - End Time 2025-02-02 18:41:05 [2025-02-02 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387580', 'tblTempUsageDetail_20' ) start [2025-02-02 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387580', 'tblTempUsageDetail_20' ) end [2025-02-02 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387580', 'tblTempVendorCDR_20' ) start [2025-02-02 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387580', 'tblTempVendorCDR_20' ) end [2025-02-02 18:41:19] Production.INFO: ProcessCDR(1,14387580,1,1,2) [2025-02-02 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387580', 'tblTempUsageDetail_20' ) start [2025-02-02 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387580', 'tblTempUsageDetail_20' ) end [2025-02-02 18:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:41:23] Production.INFO: ==30192== Releasing lock... [2025-02-02 18:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:41:23] Production.INFO: 37 MB #Memory Used# [2025-02-02 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:42:05 [end_date_ymd] => 2025-02-02 18:42:05 [RateCDR] => 1 ) [2025-02-02 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-02 15:42:05' and `end` < '2025-02-02 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-02 18:42:18] Production.INFO: count ==1277 [2025-02-02 18:42:18] Production.ERROR: pbx CDR StartTime 2025-02-02 15:42:05 - End Time 2025-02-02 18:42:05 [2025-02-02 18:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387585', 'tblTempUsageDetail_20' ) start [2025-02-02 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387585', 'tblTempUsageDetail_20' ) end [2025-02-02 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387585', 'tblTempVendorCDR_20' ) start [2025-02-02 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387585', 'tblTempVendorCDR_20' ) end [2025-02-02 18:42:18] Production.INFO: ProcessCDR(1,14387585,1,1,2) [2025-02-02 18:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387585', 'tblTempUsageDetail_20' ) start [2025-02-02 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387585', 'tblTempUsageDetail_20' ) end [2025-02-02 18:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:42:23] Production.INFO: ==30274== Releasing lock... [2025-02-02 18:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:42:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 18:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:43:06 [end_date_ymd] => 2025-02-02 18:43:06 [RateCDR] => 1 ) [2025-02-02 18: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-02 15:43:06' and `end` < '2025-02-02 18: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-02 18:43:18] Production.INFO: count ==1284 [2025-02-02 18:43:19] Production.ERROR: pbx CDR StartTime 2025-02-02 15:43:06 - End Time 2025-02-02 18:43:06 [2025-02-02 18:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387590', 'tblTempUsageDetail_20' ) start [2025-02-02 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387590', 'tblTempUsageDetail_20' ) end [2025-02-02 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387590', 'tblTempVendorCDR_20' ) start [2025-02-02 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387590', 'tblTempVendorCDR_20' ) end [2025-02-02 18:43:19] Production.INFO: ProcessCDR(1,14387590,1,1,2) [2025-02-02 18:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387590', 'tblTempUsageDetail_20' ) start [2025-02-02 18:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387590', 'tblTempUsageDetail_20' ) end [2025-02-02 18:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:43:22] Production.INFO: ==30358== Releasing lock... [2025-02-02 18:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:43:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:44:05 [end_date_ymd] => 2025-02-02 18:44:05 [RateCDR] => 1 ) [2025-02-02 18:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 15:44:05' and `end` < '2025-02-02 18:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 18:44:19] Production.INFO: count ==1274 [2025-02-02 18:44:19] Production.ERROR: pbx CDR StartTime 2025-02-02 15:44:05 - End Time 2025-02-02 18:44:05 [2025-02-02 18:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387595', 'tblTempUsageDetail_20' ) start [2025-02-02 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387595', 'tblTempUsageDetail_20' ) end [2025-02-02 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387595', 'tblTempVendorCDR_20' ) start [2025-02-02 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387595', 'tblTempVendorCDR_20' ) end [2025-02-02 18:44:19] Production.INFO: ProcessCDR(1,14387595,1,1,2) [2025-02-02 18:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387595', 'tblTempUsageDetail_20' ) start [2025-02-02 18:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387595', 'tblTempUsageDetail_20' ) end [2025-02-02 18:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:44:22] Production.INFO: ==30440== Releasing lock... [2025-02-02 18:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:44:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 18:45:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:45:07 [end_date_ymd] => 2025-02-02 18:45:07 [RateCDR] => 1 ) [2025-02-02 18:45: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-02 15:45:07' and `end` < '2025-02-02 18:45: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-02 18:45:20] Production.INFO: count ==1279 [2025-02-02 18:45:20] Production.ERROR: pbx CDR StartTime 2025-02-02 15:45:07 - End Time 2025-02-02 18:45:07 [2025-02-02 18:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387600', 'tblTempUsageDetail_20' ) start [2025-02-02 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387600', 'tblTempUsageDetail_20' ) end [2025-02-02 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387600', 'tblTempVendorCDR_20' ) start [2025-02-02 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387600', 'tblTempVendorCDR_20' ) end [2025-02-02 18:45:20] Production.INFO: ProcessCDR(1,14387600,1,1,2) [2025-02-02 18:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387600', 'tblTempUsageDetail_20' ) start [2025-02-02 18:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387600', 'tblTempUsageDetail_20' ) end [2025-02-02 18:45:25] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:45:25] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:45:25] Production.INFO: ==30523== Releasing lock... [2025-02-02 18:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:45:25] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:46:05 [end_date_ymd] => 2025-02-02 18:46:05 [RateCDR] => 1 ) [2025-02-02 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 15:46:05' and `end` < '2025-02-02 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 18:46:19] Production.INFO: count ==1282 [2025-02-02 18:46:19] Production.ERROR: pbx CDR StartTime 2025-02-02 15:46:05 - End Time 2025-02-02 18:46:05 [2025-02-02 18:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387605', 'tblTempUsageDetail_20' ) start [2025-02-02 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387605', 'tblTempUsageDetail_20' ) end [2025-02-02 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387605', 'tblTempVendorCDR_20' ) start [2025-02-02 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387605', 'tblTempVendorCDR_20' ) end [2025-02-02 18:46:19] Production.INFO: ProcessCDR(1,14387605,1,1,2) [2025-02-02 18:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387605', 'tblTempUsageDetail_20' ) start [2025-02-02 18:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387605', 'tblTempUsageDetail_20' ) end [2025-02-02 18:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:46:22] Production.INFO: ==30605== Releasing lock... [2025-02-02 18:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:46:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-02 18:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:47:06 [end_date_ymd] => 2025-02-02 18:47:06 [RateCDR] => 1 ) [2025-02-02 18: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-02 15:47:06' and `end` < '2025-02-02 18: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-02 18:47:19] Production.INFO: count ==1284 [2025-02-02 18:47:20] Production.ERROR: pbx CDR StartTime 2025-02-02 15:47:06 - End Time 2025-02-02 18:47:06 [2025-02-02 18:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387610', 'tblTempUsageDetail_20' ) start [2025-02-02 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387610', 'tblTempUsageDetail_20' ) end [2025-02-02 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387610', 'tblTempVendorCDR_20' ) start [2025-02-02 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387610', 'tblTempVendorCDR_20' ) end [2025-02-02 18:47:20] Production.INFO: ProcessCDR(1,14387610,1,1,2) [2025-02-02 18:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387610', 'tblTempUsageDetail_20' ) start [2025-02-02 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387610', 'tblTempUsageDetail_20' ) end [2025-02-02 18:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:47:23] Production.INFO: ==30683== Releasing lock... [2025-02-02 18:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:47:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:48:05 [end_date_ymd] => 2025-02-02 18:48:05 [RateCDR] => 1 ) [2025-02-02 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-02 15:48:05' and `end` < '2025-02-02 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-02 18:48:18] Production.INFO: count ==1283 [2025-02-02 18:48:18] Production.ERROR: pbx CDR StartTime 2025-02-02 15:48:05 - End Time 2025-02-02 18:48:05 [2025-02-02 18:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387615', 'tblTempUsageDetail_20' ) start [2025-02-02 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387615', 'tblTempUsageDetail_20' ) end [2025-02-02 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387615', 'tblTempVendorCDR_20' ) start [2025-02-02 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387615', 'tblTempVendorCDR_20' ) end [2025-02-02 18:48:18] Production.INFO: ProcessCDR(1,14387615,1,1,2) [2025-02-02 18:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387615', 'tblTempUsageDetail_20' ) start [2025-02-02 18:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387615', 'tblTempUsageDetail_20' ) end [2025-02-02 18:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:48:22] Production.INFO: ==30763== Releasing lock... [2025-02-02 18:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:48:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:49:05 [end_date_ymd] => 2025-02-02 18:49:05 [RateCDR] => 1 ) [2025-02-02 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-02 15:49:05' and `end` < '2025-02-02 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-02 18:49:18] Production.INFO: count ==1282 [2025-02-02 18:49:18] Production.ERROR: pbx CDR StartTime 2025-02-02 15:49:05 - End Time 2025-02-02 18:49:05 [2025-02-02 18:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387620', 'tblTempUsageDetail_20' ) start [2025-02-02 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387620', 'tblTempUsageDetail_20' ) end [2025-02-02 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387620', 'tblTempVendorCDR_20' ) start [2025-02-02 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387620', 'tblTempVendorCDR_20' ) end [2025-02-02 18:49:18] Production.INFO: ProcessCDR(1,14387620,1,1,2) [2025-02-02 18:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387620', 'tblTempUsageDetail_20' ) start [2025-02-02 18:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387620', 'tblTempUsageDetail_20' ) end [2025-02-02 18:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:49:22] Production.INFO: ==30848== Releasing lock... [2025-02-02 18:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:49:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:50:06 [end_date_ymd] => 2025-02-02 18:50:06 [RateCDR] => 1 ) [2025-02-02 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-02 15:50:06' and `end` < '2025-02-02 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-02 18:50:19] Production.INFO: count ==1282 [2025-02-02 18:50:19] Production.ERROR: pbx CDR StartTime 2025-02-02 15:50:06 - End Time 2025-02-02 18:50:06 [2025-02-02 18:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387626', 'tblTempUsageDetail_20' ) start [2025-02-02 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387626', 'tblTempUsageDetail_20' ) end [2025-02-02 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387626', 'tblTempVendorCDR_20' ) start [2025-02-02 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387626', 'tblTempVendorCDR_20' ) end [2025-02-02 18:50:19] Production.INFO: ProcessCDR(1,14387626,1,1,2) [2025-02-02 18:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387626', 'tblTempUsageDetail_20' ) start [2025-02-02 18:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387626', 'tblTempUsageDetail_20' ) end [2025-02-02 18:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:50:22] Production.INFO: ==30932== Releasing lock... [2025-02-02 18:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:50:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:51:05 [end_date_ymd] => 2025-02-02 18:51:05 [RateCDR] => 1 ) [2025-02-02 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-02 15:51:05' and `end` < '2025-02-02 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-02 18:51:19] Production.INFO: count ==1293 [2025-02-02 18:51:19] Production.ERROR: pbx CDR StartTime 2025-02-02 15:51:05 - End Time 2025-02-02 18:51:05 [2025-02-02 18:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387631', 'tblTempUsageDetail_20' ) start [2025-02-02 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387631', 'tblTempUsageDetail_20' ) end [2025-02-02 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387631', 'tblTempVendorCDR_20' ) start [2025-02-02 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387631', 'tblTempVendorCDR_20' ) end [2025-02-02 18:51:19] Production.INFO: ProcessCDR(1,14387631,1,1,2) [2025-02-02 18:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387631', 'tblTempUsageDetail_20' ) start [2025-02-02 18:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387631', 'tblTempUsageDetail_20' ) end [2025-02-02 18:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:51:22] Production.INFO: ==31015== Releasing lock... [2025-02-02 18:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:51:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:52:05 [end_date_ymd] => 2025-02-02 18:52:05 [RateCDR] => 1 ) [2025-02-02 18:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 15:52:05' and `end` < '2025-02-02 18:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 18:52:19] Production.INFO: count ==1292 [2025-02-02 18:52:19] Production.ERROR: pbx CDR StartTime 2025-02-02 15:52:05 - End Time 2025-02-02 18:52:05 [2025-02-02 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387636', 'tblTempUsageDetail_20' ) start [2025-02-02 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387636', 'tblTempUsageDetail_20' ) end [2025-02-02 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387636', 'tblTempVendorCDR_20' ) start [2025-02-02 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387636', 'tblTempVendorCDR_20' ) end [2025-02-02 18:52:19] Production.INFO: ProcessCDR(1,14387636,1,1,2) [2025-02-02 18:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387636', 'tblTempUsageDetail_20' ) start [2025-02-02 18:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387636', 'tblTempUsageDetail_20' ) end [2025-02-02 18:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:52:22] Production.INFO: ==31094== Releasing lock... [2025-02-02 18:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:52:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:53:05 [end_date_ymd] => 2025-02-02 18:53:05 [RateCDR] => 1 ) [2025-02-02 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-02 15:53:05' and `end` < '2025-02-02 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-02 18:53:18] Production.INFO: count ==1292 [2025-02-02 18:53:18] Production.ERROR: pbx CDR StartTime 2025-02-02 15:53:05 - End Time 2025-02-02 18:53:05 [2025-02-02 18:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387641', 'tblTempUsageDetail_20' ) start [2025-02-02 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387641', 'tblTempUsageDetail_20' ) end [2025-02-02 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387641', 'tblTempVendorCDR_20' ) start [2025-02-02 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387641', 'tblTempVendorCDR_20' ) end [2025-02-02 18:53:18] Production.INFO: ProcessCDR(1,14387641,1,1,2) [2025-02-02 18:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387641', 'tblTempUsageDetail_20' ) start [2025-02-02 18:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387641', 'tblTempUsageDetail_20' ) end [2025-02-02 18:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:53:21] Production.INFO: ==31219== Releasing lock... [2025-02-02 18:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:53:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:54:05 [end_date_ymd] => 2025-02-02 18:54:05 [RateCDR] => 1 ) [2025-02-02 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-02 15:54:05' and `end` < '2025-02-02 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-02 18:54:18] Production.INFO: count ==1276 [2025-02-02 18:54:18] Production.ERROR: pbx CDR StartTime 2025-02-02 15:54:05 - End Time 2025-02-02 18:54:05 [2025-02-02 18:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387646', 'tblTempUsageDetail_20' ) start [2025-02-02 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387646', 'tblTempUsageDetail_20' ) end [2025-02-02 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387646', 'tblTempVendorCDR_20' ) start [2025-02-02 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387646', 'tblTempVendorCDR_20' ) end [2025-02-02 18:54:18] Production.INFO: ProcessCDR(1,14387646,1,1,2) [2025-02-02 18:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387646', 'tblTempUsageDetail_20' ) start [2025-02-02 18:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387646', 'tblTempUsageDetail_20' ) end [2025-02-02 18:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:54:22] Production.INFO: ==31294== Releasing lock... [2025-02-02 18:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:54:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:55:05 [end_date_ymd] => 2025-02-02 18:55:05 [RateCDR] => 1 ) [2025-02-02 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-02 15:55:05' and `end` < '2025-02-02 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-02 18:55:18] Production.INFO: count ==1275 [2025-02-02 18:55:18] Production.ERROR: pbx CDR StartTime 2025-02-02 15:55:05 - End Time 2025-02-02 18:55:05 [2025-02-02 18:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387651', 'tblTempUsageDetail_20' ) start [2025-02-02 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387651', 'tblTempUsageDetail_20' ) end [2025-02-02 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387651', 'tblTempVendorCDR_20' ) start [2025-02-02 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387651', 'tblTempVendorCDR_20' ) end [2025-02-02 18:55:18] Production.INFO: ProcessCDR(1,14387651,1,1,2) [2025-02-02 18:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387651', 'tblTempUsageDetail_20' ) start [2025-02-02 18:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387651', 'tblTempUsageDetail_20' ) end [2025-02-02 18:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:55:21] Production.INFO: ==31367== Releasing lock... [2025-02-02 18:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:55:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 18:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:56:06 [end_date_ymd] => 2025-02-02 18:56:06 [RateCDR] => 1 ) [2025-02-02 18:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 15:56:06' and `end` < '2025-02-02 18:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 18:56:18] Production.INFO: count ==1276 [2025-02-02 18:56:19] Production.ERROR: pbx CDR StartTime 2025-02-02 15:56:06 - End Time 2025-02-02 18:56:06 [2025-02-02 18:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387656', 'tblTempUsageDetail_20' ) start [2025-02-02 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387656', 'tblTempUsageDetail_20' ) end [2025-02-02 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387656', 'tblTempVendorCDR_20' ) start [2025-02-02 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387656', 'tblTempVendorCDR_20' ) end [2025-02-02 18:56:19] Production.INFO: ProcessCDR(1,14387656,1,1,2) [2025-02-02 18:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387656', 'tblTempUsageDetail_20' ) start [2025-02-02 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387656', 'tblTempUsageDetail_20' ) end [2025-02-02 18:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:56:23] Production.INFO: ==31451== Releasing lock... [2025-02-02 18:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:56:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:57:05 [end_date_ymd] => 2025-02-02 18:57:05 [RateCDR] => 1 ) [2025-02-02 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-02 15:57:05' and `end` < '2025-02-02 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-02 18:57:18] Production.INFO: count ==1274 [2025-02-02 18:57:18] Production.ERROR: pbx CDR StartTime 2025-02-02 15:57:05 - End Time 2025-02-02 18:57:05 [2025-02-02 18:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387661', 'tblTempUsageDetail_20' ) start [2025-02-02 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387661', 'tblTempUsageDetail_20' ) end [2025-02-02 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387661', 'tblTempVendorCDR_20' ) start [2025-02-02 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387661', 'tblTempVendorCDR_20' ) end [2025-02-02 18:57:18] Production.INFO: ProcessCDR(1,14387661,1,1,2) [2025-02-02 18:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387661', 'tblTempUsageDetail_20' ) start [2025-02-02 18:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387661', 'tblTempUsageDetail_20' ) end [2025-02-02 18:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:57:23] Production.INFO: ==31538== Releasing lock... [2025-02-02 18:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:57:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:58:05 [end_date_ymd] => 2025-02-02 18:58:05 [RateCDR] => 1 ) [2025-02-02 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-02 15:58:05' and `end` < '2025-02-02 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-02 18:58:19] Production.INFO: count ==1270 [2025-02-02 18:58:19] Production.ERROR: pbx CDR StartTime 2025-02-02 15:58:05 - End Time 2025-02-02 18:58:05 [2025-02-02 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387666', 'tblTempUsageDetail_20' ) start [2025-02-02 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387666', 'tblTempUsageDetail_20' ) end [2025-02-02 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387666', 'tblTempVendorCDR_20' ) start [2025-02-02 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387666', 'tblTempVendorCDR_20' ) end [2025-02-02 18:58:19] Production.INFO: ProcessCDR(1,14387666,1,1,2) [2025-02-02 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387666', 'tblTempUsageDetail_20' ) start [2025-02-02 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387666', 'tblTempUsageDetail_20' ) end [2025-02-02 18:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:58:22] Production.INFO: ==31616== Releasing lock... [2025-02-02 18:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:58:22] Production.INFO: 37 MB #Memory Used# [2025-02-02 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 15:59:05 [end_date_ymd] => 2025-02-02 18:59:05 [RateCDR] => 1 ) [2025-02-02 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-02 15:59:05' and `end` < '2025-02-02 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-02 18:59:18] Production.INFO: count ==1262 [2025-02-02 18:59:18] Production.ERROR: pbx CDR StartTime 2025-02-02 15:59:05 - End Time 2025-02-02 18:59:05 [2025-02-02 18:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387671', 'tblTempUsageDetail_20' ) start [2025-02-02 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387671', 'tblTempUsageDetail_20' ) end [2025-02-02 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387671', 'tblTempVendorCDR_20' ) start [2025-02-02 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387671', 'tblTempVendorCDR_20' ) end [2025-02-02 18:59:18] Production.INFO: ProcessCDR(1,14387671,1,1,2) [2025-02-02 18:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 18:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 18:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387671', 'tblTempUsageDetail_20' ) start [2025-02-02 18:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387671', 'tblTempUsageDetail_20' ) end [2025-02-02 18:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 18:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 18:59:21] Production.INFO: ==31698== Releasing lock... [2025-02-02 18:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 18:59:21] Production.INFO: 37 MB #Memory Used# [2025-02-02 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:00:06 [end_date_ymd] => 2025-02-02 19:00:06 [RateCDR] => 1 ) [2025-02-02 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-02 16:00:06' and `end` < '2025-02-02 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-02 19:00:19] Production.INFO: count ==1262 [2025-02-02 19:00:19] Production.ERROR: pbx CDR StartTime 2025-02-02 16:00:06 - End Time 2025-02-02 19:00:06 [2025-02-02 19:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387677', 'tblTempUsageDetail_20' ) start [2025-02-02 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387677', 'tblTempUsageDetail_20' ) end [2025-02-02 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387677', 'tblTempVendorCDR_20' ) start [2025-02-02 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387677', 'tblTempVendorCDR_20' ) end [2025-02-02 19:00:19] Production.INFO: ProcessCDR(1,14387677,1,1,2) [2025-02-02 19:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387677', 'tblTempUsageDetail_20' ) start [2025-02-02 19:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387677', 'tblTempUsageDetail_20' ) end [2025-02-02 19:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:00:22] Production.INFO: ==31781== Releasing lock... [2025-02-02 19:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:00:22] Production.INFO: 37 MB #Memory Used# [2025-02-02 19:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:01:06 [end_date_ymd] => 2025-02-02 19:01:06 [RateCDR] => 1 ) [2025-02-02 19:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 16:01:06' and `end` < '2025-02-02 19:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 19:01:19] Production.INFO: count ==1257 [2025-02-02 19:01:19] Production.ERROR: pbx CDR StartTime 2025-02-02 16:01:06 - End Time 2025-02-02 19:01:06 [2025-02-02 19:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387682', 'tblTempUsageDetail_20' ) start [2025-02-02 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387682', 'tblTempUsageDetail_20' ) end [2025-02-02 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387682', 'tblTempVendorCDR_20' ) start [2025-02-02 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387682', 'tblTempVendorCDR_20' ) end [2025-02-02 19:01:19] Production.INFO: ProcessCDR(1,14387682,1,1,2) [2025-02-02 19:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387682', 'tblTempUsageDetail_20' ) start [2025-02-02 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387682', 'tblTempUsageDetail_20' ) end [2025-02-02 19:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:01:24] Production.INFO: ==31872== Releasing lock... [2025-02-02 19:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:01:24] Production.INFO: 37 MB #Memory Used# [2025-02-02 19:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:02:06 [end_date_ymd] => 2025-02-02 19:02:06 [RateCDR] => 1 ) [2025-02-02 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-02 16:02:06' and `end` < '2025-02-02 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-02 19:02:20] Production.INFO: count ==1257 [2025-02-02 19:02:20] Production.ERROR: pbx CDR StartTime 2025-02-02 16:02:06 - End Time 2025-02-02 19:02:06 [2025-02-02 19:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387687', 'tblTempUsageDetail_20' ) start [2025-02-02 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387687', 'tblTempUsageDetail_20' ) end [2025-02-02 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387687', 'tblTempVendorCDR_20' ) start [2025-02-02 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387687', 'tblTempVendorCDR_20' ) end [2025-02-02 19:02:20] Production.INFO: ProcessCDR(1,14387687,1,1,2) [2025-02-02 19:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387687', 'tblTempUsageDetail_20' ) start [2025-02-02 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387687', 'tblTempUsageDetail_20' ) end [2025-02-02 19:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:02:23] Production.INFO: ==32035== Releasing lock... [2025-02-02 19:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:02:23] Production.INFO: 37 MB #Memory Used# [2025-02-02 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:03:05 [end_date_ymd] => 2025-02-02 19:03:05 [RateCDR] => 1 ) [2025-02-02 19:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 16:03:05' and `end` < '2025-02-02 19:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 19:03:18] Production.INFO: count ==1256 [2025-02-02 19:03:18] Production.ERROR: pbx CDR StartTime 2025-02-02 16:03:05 - End Time 2025-02-02 19:03:05 [2025-02-02 19:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387692', 'tblTempUsageDetail_20' ) start [2025-02-02 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387692', 'tblTempUsageDetail_20' ) end [2025-02-02 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387692', 'tblTempVendorCDR_20' ) start [2025-02-02 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387692', 'tblTempVendorCDR_20' ) end [2025-02-02 19:03:18] Production.INFO: ProcessCDR(1,14387692,1,1,2) [2025-02-02 19:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387692', 'tblTempUsageDetail_20' ) start [2025-02-02 19:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387692', 'tblTempUsageDetail_20' ) end [2025-02-02 19:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:03:22] Production.INFO: ==32135== Releasing lock... [2025-02-02 19:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:03:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 19:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:04:06 [end_date_ymd] => 2025-02-02 19:04:06 [RateCDR] => 1 ) [2025-02-02 19: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-02 16:04:06' and `end` < '2025-02-02 19: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-02 19:04:19] Production.INFO: count ==1259 [2025-02-02 19:04:19] Production.ERROR: pbx CDR StartTime 2025-02-02 16:04:06 - End Time 2025-02-02 19:04:06 [2025-02-02 19:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387697', 'tblTempUsageDetail_20' ) start [2025-02-02 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387697', 'tblTempUsageDetail_20' ) end [2025-02-02 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387697', 'tblTempVendorCDR_20' ) start [2025-02-02 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387697', 'tblTempVendorCDR_20' ) end [2025-02-02 19:04:19] Production.INFO: ProcessCDR(1,14387697,1,1,2) [2025-02-02 19:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387697', 'tblTempUsageDetail_20' ) start [2025-02-02 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387697', 'tblTempUsageDetail_20' ) end [2025-02-02 19:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:04:24] Production.INFO: ==32222== Releasing lock... [2025-02-02 19:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:04:24] Production.INFO: 37 MB #Memory Used# [2025-02-02 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:05:05 [end_date_ymd] => 2025-02-02 19:05:05 [RateCDR] => 1 ) [2025-02-02 19:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 16:05:05' and `end` < '2025-02-02 19:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 19:05:18] Production.INFO: count ==1261 [2025-02-02 19:05:18] Production.ERROR: pbx CDR StartTime 2025-02-02 16:05:05 - End Time 2025-02-02 19:05:05 [2025-02-02 19:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387702', 'tblTempUsageDetail_20' ) start [2025-02-02 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387702', 'tblTempUsageDetail_20' ) end [2025-02-02 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387702', 'tblTempVendorCDR_20' ) start [2025-02-02 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387702', 'tblTempVendorCDR_20' ) end [2025-02-02 19:05:18] Production.INFO: ProcessCDR(1,14387702,1,1,2) [2025-02-02 19:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387702', 'tblTempUsageDetail_20' ) start [2025-02-02 19:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387702', 'tblTempUsageDetail_20' ) end [2025-02-02 19:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:05:22] Production.INFO: ==32382== Releasing lock... [2025-02-02 19:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:05:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 19:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:06:06 [end_date_ymd] => 2025-02-02 19:06:06 [RateCDR] => 1 ) [2025-02-02 19:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 16:06:06' and `end` < '2025-02-02 19:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 19:06:19] Production.INFO: count ==1267 [2025-02-02 19:06:19] Production.ERROR: pbx CDR StartTime 2025-02-02 16:06:06 - End Time 2025-02-02 19:06:06 [2025-02-02 19:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387707', 'tblTempUsageDetail_20' ) start [2025-02-02 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387707', 'tblTempUsageDetail_20' ) end [2025-02-02 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387707', 'tblTempVendorCDR_20' ) start [2025-02-02 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387707', 'tblTempVendorCDR_20' ) end [2025-02-02 19:06:19] Production.INFO: ProcessCDR(1,14387707,1,1,2) [2025-02-02 19:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387707', 'tblTempUsageDetail_20' ) start [2025-02-02 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387707', 'tblTempUsageDetail_20' ) end [2025-02-02 19:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:06:23] Production.INFO: ==32462== Releasing lock... [2025-02-02 19:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:06:23] Production.INFO: 37 MB #Memory Used# [2025-02-02 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:07:05 [end_date_ymd] => 2025-02-02 19:07:05 [RateCDR] => 1 ) [2025-02-02 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-02 16:07:05' and `end` < '2025-02-02 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-02 19:07:18] Production.INFO: count ==1266 [2025-02-02 19:07:18] Production.ERROR: pbx CDR StartTime 2025-02-02 16:07:05 - End Time 2025-02-02 19:07:05 [2025-02-02 19:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387712', 'tblTempUsageDetail_20' ) start [2025-02-02 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387712', 'tblTempUsageDetail_20' ) end [2025-02-02 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387712', 'tblTempVendorCDR_20' ) start [2025-02-02 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387712', 'tblTempVendorCDR_20' ) end [2025-02-02 19:07:18] Production.INFO: ProcessCDR(1,14387712,1,1,2) [2025-02-02 19:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387712', 'tblTempUsageDetail_20' ) start [2025-02-02 19:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387712', 'tblTempUsageDetail_20' ) end [2025-02-02 19:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:07:21] Production.INFO: ==32544== Releasing lock... [2025-02-02 19:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:07:21] Production.INFO: 37 MB #Memory Used# [2025-02-02 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:08:05 [end_date_ymd] => 2025-02-02 19:08:05 [RateCDR] => 1 ) [2025-02-02 19:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 16:08:05' and `end` < '2025-02-02 19:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 19:08:18] Production.INFO: count ==1267 [2025-02-02 19:08:18] Production.ERROR: pbx CDR StartTime 2025-02-02 16:08:05 - End Time 2025-02-02 19:08:05 [2025-02-02 19:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387717', 'tblTempUsageDetail_20' ) start [2025-02-02 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387717', 'tblTempUsageDetail_20' ) end [2025-02-02 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387717', 'tblTempVendorCDR_20' ) start [2025-02-02 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387717', 'tblTempVendorCDR_20' ) end [2025-02-02 19:08:18] Production.INFO: ProcessCDR(1,14387717,1,1,2) [2025-02-02 19:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387717', 'tblTempUsageDetail_20' ) start [2025-02-02 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387717', 'tblTempUsageDetail_20' ) end [2025-02-02 19:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:08:23] Production.INFO: ==32667== Releasing lock... [2025-02-02 19:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:08:23] Production.INFO: 37 MB #Memory Used# [2025-02-02 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:09:05 [end_date_ymd] => 2025-02-02 19:09:05 [RateCDR] => 1 ) [2025-02-02 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-02 16:09:05' and `end` < '2025-02-02 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-02 19:09:19] Production.INFO: count ==1267 [2025-02-02 19:09:19] Production.ERROR: pbx CDR StartTime 2025-02-02 16:09:05 - End Time 2025-02-02 19:09:05 [2025-02-02 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387722', 'tblTempUsageDetail_20' ) start [2025-02-02 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387722', 'tblTempUsageDetail_20' ) end [2025-02-02 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387722', 'tblTempVendorCDR_20' ) start [2025-02-02 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387722', 'tblTempVendorCDR_20' ) end [2025-02-02 19:09:19] Production.INFO: ProcessCDR(1,14387722,1,1,2) [2025-02-02 19:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387722', 'tblTempUsageDetail_20' ) start [2025-02-02 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387722', 'tblTempUsageDetail_20' ) end [2025-02-02 19:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:09:22] Production.INFO: ==379== Releasing lock... [2025-02-02 19:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:09:22] Production.INFO: 37 MB #Memory Used# [2025-02-02 19:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:10:07 [end_date_ymd] => 2025-02-02 19:10:07 [RateCDR] => 1 ) [2025-02-02 19: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-02 16:10:07' and `end` < '2025-02-02 19: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-02 19:10:19] Production.INFO: count ==1267 [2025-02-02 19:10:20] Production.ERROR: pbx CDR StartTime 2025-02-02 16:10:07 - End Time 2025-02-02 19:10:07 [2025-02-02 19:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387728', 'tblTempUsageDetail_20' ) start [2025-02-02 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387728', 'tblTempUsageDetail_20' ) end [2025-02-02 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387728', 'tblTempVendorCDR_20' ) start [2025-02-02 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387728', 'tblTempVendorCDR_20' ) end [2025-02-02 19:10:20] Production.INFO: ProcessCDR(1,14387728,1,1,2) [2025-02-02 19:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387728', 'tblTempUsageDetail_20' ) start [2025-02-02 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387728', 'tblTempUsageDetail_20' ) end [2025-02-02 19:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:10:23] Production.INFO: ==467== Releasing lock... [2025-02-02 19:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:10:23] Production.INFO: 37 MB #Memory Used# [2025-02-02 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:11:05 [end_date_ymd] => 2025-02-02 19:11:05 [RateCDR] => 1 ) [2025-02-02 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-02 16:11:05' and `end` < '2025-02-02 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-02 19:11:18] Production.INFO: count ==1279 [2025-02-02 19:11:18] Production.ERROR: pbx CDR StartTime 2025-02-02 16:11:05 - End Time 2025-02-02 19:11:05 [2025-02-02 19:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387733', 'tblTempUsageDetail_20' ) start [2025-02-02 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387733', 'tblTempUsageDetail_20' ) end [2025-02-02 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387733', 'tblTempVendorCDR_20' ) start [2025-02-02 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387733', 'tblTempVendorCDR_20' ) end [2025-02-02 19:11:18] Production.INFO: ProcessCDR(1,14387733,1,1,2) [2025-02-02 19:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387733', 'tblTempUsageDetail_20' ) start [2025-02-02 19:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387733', 'tblTempUsageDetail_20' ) end [2025-02-02 19:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:11:21] Production.INFO: ==555== Releasing lock... [2025-02-02 19:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:11:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 19:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:12:06 [end_date_ymd] => 2025-02-02 19:12:06 [RateCDR] => 1 ) [2025-02-02 19:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 16:12:06' and `end` < '2025-02-02 19:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 19:12:19] Production.INFO: count ==1282 [2025-02-02 19:12:19] Production.ERROR: pbx CDR StartTime 2025-02-02 16:12:06 - End Time 2025-02-02 19:12:06 [2025-02-02 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387738', 'tblTempUsageDetail_20' ) start [2025-02-02 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387738', 'tblTempUsageDetail_20' ) end [2025-02-02 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387738', 'tblTempVendorCDR_20' ) start [2025-02-02 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387738', 'tblTempVendorCDR_20' ) end [2025-02-02 19:12:19] Production.INFO: ProcessCDR(1,14387738,1,1,2) [2025-02-02 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387738', 'tblTempUsageDetail_20' ) start [2025-02-02 19:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387738', 'tblTempUsageDetail_20' ) end [2025-02-02 19:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:12:22] Production.INFO: ==754== Releasing lock... [2025-02-02 19:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:12:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:13:05 [end_date_ymd] => 2025-02-02 19:13:05 [RateCDR] => 1 ) [2025-02-02 19:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 16:13:05' and `end` < '2025-02-02 19:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 19:13:19] Production.INFO: count ==1282 [2025-02-02 19:13:20] Production.ERROR: pbx CDR StartTime 2025-02-02 16:13:05 - End Time 2025-02-02 19:13:05 [2025-02-02 19:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387743', 'tblTempUsageDetail_20' ) start [2025-02-02 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387743', 'tblTempUsageDetail_20' ) end [2025-02-02 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387743', 'tblTempVendorCDR_20' ) start [2025-02-02 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387743', 'tblTempVendorCDR_20' ) end [2025-02-02 19:13:20] Production.INFO: ProcessCDR(1,14387743,1,1,2) [2025-02-02 19:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387743', 'tblTempUsageDetail_20' ) start [2025-02-02 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387743', 'tblTempUsageDetail_20' ) end [2025-02-02 19:13:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:13:24] Production.INFO: ==841== Releasing lock... [2025-02-02 19:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:13:24] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 19:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:14:06 [end_date_ymd] => 2025-02-02 19:14:06 [RateCDR] => 1 ) [2025-02-02 19: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-02 16:14:06' and `end` < '2025-02-02 19: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-02 19:14:19] Production.INFO: count ==1285 [2025-02-02 19:14:19] Production.ERROR: pbx CDR StartTime 2025-02-02 16:14:06 - End Time 2025-02-02 19:14:06 [2025-02-02 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387748', 'tblTempUsageDetail_20' ) start [2025-02-02 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387748', 'tblTempUsageDetail_20' ) end [2025-02-02 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387748', 'tblTempVendorCDR_20' ) start [2025-02-02 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387748', 'tblTempVendorCDR_20' ) end [2025-02-02 19:14:19] Production.INFO: ProcessCDR(1,14387748,1,1,2) [2025-02-02 19:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387748', 'tblTempUsageDetail_20' ) start [2025-02-02 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387748', 'tblTempUsageDetail_20' ) end [2025-02-02 19:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:14:22] Production.INFO: ==922== Releasing lock... [2025-02-02 19:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:14:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:15:05 [end_date_ymd] => 2025-02-02 19:15:05 [RateCDR] => 1 ) [2025-02-02 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-02 16:15:05' and `end` < '2025-02-02 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-02 19:15:18] Production.INFO: count ==1284 [2025-02-02 19:15:18] Production.ERROR: pbx CDR StartTime 2025-02-02 16:15:05 - End Time 2025-02-02 19:15:05 [2025-02-02 19:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387753', 'tblTempUsageDetail_20' ) start [2025-02-02 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387753', 'tblTempUsageDetail_20' ) end [2025-02-02 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387753', 'tblTempVendorCDR_20' ) start [2025-02-02 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387753', 'tblTempVendorCDR_20' ) end [2025-02-02 19:15:18] Production.INFO: ProcessCDR(1,14387753,1,1,2) [2025-02-02 19:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387753', 'tblTempUsageDetail_20' ) start [2025-02-02 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387753', 'tblTempUsageDetail_20' ) end [2025-02-02 19:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:15:23] Production.INFO: ==1073== Releasing lock... [2025-02-02 19:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:15:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:16:05 [end_date_ymd] => 2025-02-02 19:16:05 [RateCDR] => 1 ) [2025-02-02 19:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 16:16:05' and `end` < '2025-02-02 19:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 19:16:18] Production.INFO: count ==1284 [2025-02-02 19:16:19] Production.ERROR: pbx CDR StartTime 2025-02-02 16:16:05 - End Time 2025-02-02 19:16:05 [2025-02-02 19:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387758', 'tblTempUsageDetail_20' ) start [2025-02-02 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387758', 'tblTempUsageDetail_20' ) end [2025-02-02 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387758', 'tblTempVendorCDR_20' ) start [2025-02-02 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387758', 'tblTempVendorCDR_20' ) end [2025-02-02 19:16:19] Production.INFO: ProcessCDR(1,14387758,1,1,2) [2025-02-02 19:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387758', 'tblTempUsageDetail_20' ) start [2025-02-02 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387758', 'tblTempUsageDetail_20' ) end [2025-02-02 19:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:16:22] Production.INFO: ==1147== Releasing lock... [2025-02-02 19:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:16:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:17:05 [end_date_ymd] => 2025-02-02 19:17:05 [RateCDR] => 1 ) [2025-02-02 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-02 16:17:05' and `end` < '2025-02-02 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-02 19:17:18] Production.INFO: count ==1282 [2025-02-02 19:17:19] Production.ERROR: pbx CDR StartTime 2025-02-02 16:17:05 - End Time 2025-02-02 19:17:05 [2025-02-02 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387763', 'tblTempUsageDetail_20' ) start [2025-02-02 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387763', 'tblTempUsageDetail_20' ) end [2025-02-02 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387763', 'tblTempVendorCDR_20' ) start [2025-02-02 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387763', 'tblTempVendorCDR_20' ) end [2025-02-02 19:17:19] Production.INFO: ProcessCDR(1,14387763,1,1,2) [2025-02-02 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387763', 'tblTempUsageDetail_20' ) start [2025-02-02 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387763', 'tblTempUsageDetail_20' ) end [2025-02-02 19:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:17:22] Production.INFO: ==1221== Releasing lock... [2025-02-02 19:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:17:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:18:05 [end_date_ymd] => 2025-02-02 19:18:05 [RateCDR] => 1 ) [2025-02-02 19:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 16:18:05' and `end` < '2025-02-02 19:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 19:18:18] Production.INFO: count ==1271 [2025-02-02 19:18:18] Production.ERROR: pbx CDR StartTime 2025-02-02 16:18:05 - End Time 2025-02-02 19:18:05 [2025-02-02 19:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387768', 'tblTempUsageDetail_20' ) start [2025-02-02 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387768', 'tblTempUsageDetail_20' ) end [2025-02-02 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387768', 'tblTempVendorCDR_20' ) start [2025-02-02 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387768', 'tblTempVendorCDR_20' ) end [2025-02-02 19:18:18] Production.INFO: ProcessCDR(1,14387768,1,1,2) [2025-02-02 19:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387768', 'tblTempUsageDetail_20' ) start [2025-02-02 19:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387768', 'tblTempUsageDetail_20' ) end [2025-02-02 19:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:18:21] Production.INFO: ==1303== Releasing lock... [2025-02-02 19:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:18:21] Production.INFO: 37 MB #Memory Used# [2025-02-02 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:19:05 [end_date_ymd] => 2025-02-02 19:19:05 [RateCDR] => 1 ) [2025-02-02 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-02 16:19:05' and `end` < '2025-02-02 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-02 19:19:18] Production.INFO: count ==1269 [2025-02-02 19:19:19] Production.ERROR: pbx CDR StartTime 2025-02-02 16:19:05 - End Time 2025-02-02 19:19:05 [2025-02-02 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387773', 'tblTempUsageDetail_20' ) start [2025-02-02 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387773', 'tblTempUsageDetail_20' ) end [2025-02-02 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387773', 'tblTempVendorCDR_20' ) start [2025-02-02 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387773', 'tblTempVendorCDR_20' ) end [2025-02-02 19:19:19] Production.INFO: ProcessCDR(1,14387773,1,1,2) [2025-02-02 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387773', 'tblTempUsageDetail_20' ) start [2025-02-02 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387773', 'tblTempUsageDetail_20' ) end [2025-02-02 19:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:19:23] Production.INFO: ==1374== Releasing lock... [2025-02-02 19:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:19:23] Production.INFO: 37 MB #Memory Used# [2025-02-02 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:20:06 [end_date_ymd] => 2025-02-02 19:20:06 [RateCDR] => 1 ) [2025-02-02 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-02 16:20:06' and `end` < '2025-02-02 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-02 19:20:19] Production.INFO: count ==1265 [2025-02-02 19:20:19] Production.ERROR: pbx CDR StartTime 2025-02-02 16:20:06 - End Time 2025-02-02 19:20:06 [2025-02-02 19:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387779', 'tblTempUsageDetail_20' ) start [2025-02-02 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387779', 'tblTempUsageDetail_20' ) end [2025-02-02 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387779', 'tblTempVendorCDR_20' ) start [2025-02-02 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387779', 'tblTempVendorCDR_20' ) end [2025-02-02 19:20:19] Production.INFO: ProcessCDR(1,14387779,1,1,2) [2025-02-02 19:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387779', 'tblTempUsageDetail_20' ) start [2025-02-02 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387779', 'tblTempUsageDetail_20' ) end [2025-02-02 19:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:20:23] Production.INFO: ==1448== Releasing lock... [2025-02-02 19:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:20:23] Production.INFO: 37 MB #Memory Used# [2025-02-02 19:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:21:04 [end_date_ymd] => 2025-02-02 19:21:04 [RateCDR] => 1 ) [2025-02-02 19:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 16:21:04' and `end` < '2025-02-02 19:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 19:21:17] Production.INFO: count ==1264 [2025-02-02 19:21:17] Production.ERROR: pbx CDR StartTime 2025-02-02 16:21:04 - End Time 2025-02-02 19:21:04 [2025-02-02 19:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387784', 'tblTempUsageDetail_20' ) start [2025-02-02 19:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387784', 'tblTempUsageDetail_20' ) end [2025-02-02 19:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387784', 'tblTempVendorCDR_20' ) start [2025-02-02 19:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387784', 'tblTempVendorCDR_20' ) end [2025-02-02 19:21:17] Production.INFO: ProcessCDR(1,14387784,1,1,2) [2025-02-02 19:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387784', 'tblTempUsageDetail_20' ) start [2025-02-02 19:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387784', 'tblTempUsageDetail_20' ) end [2025-02-02 19:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:21:21] Production.INFO: ==1550== Releasing lock... [2025-02-02 19:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:21:21] Production.INFO: 37 MB #Memory Used# [2025-02-02 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:22:05 [end_date_ymd] => 2025-02-02 19:22:05 [RateCDR] => 1 ) [2025-02-02 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-02 16:22:05' and `end` < '2025-02-02 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-02 19:22:18] Production.INFO: count ==1261 [2025-02-02 19:22:18] Production.ERROR: pbx CDR StartTime 2025-02-02 16:22:05 - End Time 2025-02-02 19:22:05 [2025-02-02 19:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387789', 'tblTempUsageDetail_20' ) start [2025-02-02 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387789', 'tblTempUsageDetail_20' ) end [2025-02-02 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387789', 'tblTempVendorCDR_20' ) start [2025-02-02 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387789', 'tblTempVendorCDR_20' ) end [2025-02-02 19:22:18] Production.INFO: ProcessCDR(1,14387789,1,1,2) [2025-02-02 19:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387789', 'tblTempUsageDetail_20' ) start [2025-02-02 19:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387789', 'tblTempUsageDetail_20' ) end [2025-02-02 19:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:22:21] Production.INFO: ==1628== Releasing lock... [2025-02-02 19:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:22:21] Production.INFO: 37 MB #Memory Used# [2025-02-02 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:23:05 [end_date_ymd] => 2025-02-02 19:23:05 [RateCDR] => 1 ) [2025-02-02 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-02 16:23:05' and `end` < '2025-02-02 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-02 19:23:18] Production.INFO: count ==1261 [2025-02-02 19:23:18] Production.ERROR: pbx CDR StartTime 2025-02-02 16:23:05 - End Time 2025-02-02 19:23:05 [2025-02-02 19:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387794', 'tblTempUsageDetail_20' ) start [2025-02-02 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387794', 'tblTempUsageDetail_20' ) end [2025-02-02 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387794', 'tblTempVendorCDR_20' ) start [2025-02-02 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387794', 'tblTempVendorCDR_20' ) end [2025-02-02 19:23:18] Production.INFO: ProcessCDR(1,14387794,1,1,2) [2025-02-02 19:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387794', 'tblTempUsageDetail_20' ) start [2025-02-02 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387794', 'tblTempUsageDetail_20' ) end [2025-02-02 19:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:23:23] Production.INFO: ==1700== Releasing lock... [2025-02-02 19:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:23:23] Production.INFO: 37 MB #Memory Used# [2025-02-02 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:24:05 [end_date_ymd] => 2025-02-02 19:24:05 [RateCDR] => 1 ) [2025-02-02 19:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 16:24:05' and `end` < '2025-02-02 19:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 19:24:19] Production.INFO: count ==1263 [2025-02-02 19:24:19] Production.ERROR: pbx CDR StartTime 2025-02-02 16:24:05 - End Time 2025-02-02 19:24:05 [2025-02-02 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387796', 'tblTempUsageDetail_20' ) start [2025-02-02 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387796', 'tblTempUsageDetail_20' ) end [2025-02-02 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387796', 'tblTempVendorCDR_20' ) start [2025-02-02 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387796', 'tblTempVendorCDR_20' ) end [2025-02-02 19:24:19] Production.INFO: ProcessCDR(1,14387796,1,1,2) [2025-02-02 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387796', 'tblTempUsageDetail_20' ) start [2025-02-02 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387796', 'tblTempUsageDetail_20' ) end [2025-02-02 19:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:24:23] Production.INFO: ==1810== Releasing lock... [2025-02-02 19:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:24:23] Production.INFO: 37 MB #Memory Used# [2025-02-02 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:25:05 [end_date_ymd] => 2025-02-02 19:25:05 [RateCDR] => 1 ) [2025-02-02 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-02 16:25:05' and `end` < '2025-02-02 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-02 19:25:18] Production.INFO: count ==1259 [2025-02-02 19:25:18] Production.ERROR: pbx CDR StartTime 2025-02-02 16:25:05 - End Time 2025-02-02 19:25:05 [2025-02-02 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387804', 'tblTempUsageDetail_20' ) start [2025-02-02 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387804', 'tblTempUsageDetail_20' ) end [2025-02-02 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387804', 'tblTempVendorCDR_20' ) start [2025-02-02 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387804', 'tblTempVendorCDR_20' ) end [2025-02-02 19:25:18] Production.INFO: ProcessCDR(1,14387804,1,1,2) [2025-02-02 19:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387804', 'tblTempUsageDetail_20' ) start [2025-02-02 19:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387804', 'tblTempUsageDetail_20' ) end [2025-02-02 19:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:25:21] Production.INFO: ==1885== Releasing lock... [2025-02-02 19:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:25:21] Production.INFO: 37 MB #Memory Used# [2025-02-02 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:26:05 [end_date_ymd] => 2025-02-02 19:26:05 [RateCDR] => 1 ) [2025-02-02 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-02 16:26:05' and `end` < '2025-02-02 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-02 19:26:18] Production.INFO: count ==1261 [2025-02-02 19:26:19] Production.ERROR: pbx CDR StartTime 2025-02-02 16:26:05 - End Time 2025-02-02 19:26:05 [2025-02-02 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387809', 'tblTempUsageDetail_20' ) start [2025-02-02 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387809', 'tblTempUsageDetail_20' ) end [2025-02-02 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387809', 'tblTempVendorCDR_20' ) start [2025-02-02 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387809', 'tblTempVendorCDR_20' ) end [2025-02-02 19:26:19] Production.INFO: ProcessCDR(1,14387809,1,1,2) [2025-02-02 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387809', 'tblTempUsageDetail_20' ) start [2025-02-02 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387809', 'tblTempUsageDetail_20' ) end [2025-02-02 19:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:26:22] Production.INFO: ==1961== Releasing lock... [2025-02-02 19:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:26:22] Production.INFO: 37 MB #Memory Used# [2025-02-02 19:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:27:06 [end_date_ymd] => 2025-02-02 19:27:06 [RateCDR] => 1 ) [2025-02-02 19: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-02 16:27:06' and `end` < '2025-02-02 19: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-02 19:27:19] Production.INFO: count ==1261 [2025-02-02 19:27:19] Production.ERROR: pbx CDR StartTime 2025-02-02 16:27:06 - End Time 2025-02-02 19:27:06 [2025-02-02 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387814', 'tblTempUsageDetail_20' ) start [2025-02-02 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387814', 'tblTempUsageDetail_20' ) end [2025-02-02 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387814', 'tblTempVendorCDR_20' ) start [2025-02-02 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387814', 'tblTempVendorCDR_20' ) end [2025-02-02 19:27:19] Production.INFO: ProcessCDR(1,14387814,1,1,2) [2025-02-02 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387814', 'tblTempUsageDetail_20' ) start [2025-02-02 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387814', 'tblTempUsageDetail_20' ) end [2025-02-02 19:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:27:24] Production.INFO: ==2036== Releasing lock... [2025-02-02 19:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:27:24] Production.INFO: 37 MB #Memory Used# [2025-02-02 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:28:05 [end_date_ymd] => 2025-02-02 19:28:05 [RateCDR] => 1 ) [2025-02-02 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-02 16:28:05' and `end` < '2025-02-02 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-02 19:28:18] Production.INFO: count ==1261 [2025-02-02 19:28:18] Production.ERROR: pbx CDR StartTime 2025-02-02 16:28:05 - End Time 2025-02-02 19:28:05 [2025-02-02 19:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387819', 'tblTempUsageDetail_20' ) start [2025-02-02 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387819', 'tblTempUsageDetail_20' ) end [2025-02-02 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387819', 'tblTempVendorCDR_20' ) start [2025-02-02 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387819', 'tblTempVendorCDR_20' ) end [2025-02-02 19:28:18] Production.INFO: ProcessCDR(1,14387819,1,1,2) [2025-02-02 19:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387819', 'tblTempUsageDetail_20' ) start [2025-02-02 19:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387819', 'tblTempUsageDetail_20' ) end [2025-02-02 19:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:28:21] Production.INFO: ==2116== Releasing lock... [2025-02-02 19:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:28:21] Production.INFO: 37 MB #Memory Used# [2025-02-02 19:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:29:06 [end_date_ymd] => 2025-02-02 19:29:06 [RateCDR] => 1 ) [2025-02-02 19:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 16:29:06' and `end` < '2025-02-02 19:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 19:29:19] Production.INFO: count ==1257 [2025-02-02 19:29:19] Production.ERROR: pbx CDR StartTime 2025-02-02 16:29:06 - End Time 2025-02-02 19:29:06 [2025-02-02 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387824', 'tblTempUsageDetail_20' ) start [2025-02-02 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387824', 'tblTempUsageDetail_20' ) end [2025-02-02 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387824', 'tblTempVendorCDR_20' ) start [2025-02-02 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387824', 'tblTempVendorCDR_20' ) end [2025-02-02 19:29:19] Production.INFO: ProcessCDR(1,14387824,1,1,2) [2025-02-02 19:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387824', 'tblTempUsageDetail_20' ) start [2025-02-02 19:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387824', 'tblTempUsageDetail_20' ) end [2025-02-02 19:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:29:22] Production.INFO: ==2196== Releasing lock... [2025-02-02 19:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:29:22] Production.INFO: 37 MB #Memory Used# [2025-02-02 19:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:30:05 [end_date_ymd] => 2025-02-02 19:30:05 [RateCDR] => 1 ) [2025-02-02 19:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 16:30:05' and `end` < '2025-02-02 19:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 19:30:18] Production.INFO: count ==1256 [2025-02-02 19:30:18] Production.ERROR: pbx CDR StartTime 2025-02-02 16:30:05 - End Time 2025-02-02 19:30:05 [2025-02-02 19:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387829', 'tblTempUsageDetail_20' ) start [2025-02-02 19:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387829', 'tblTempUsageDetail_20' ) end [2025-02-02 19:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387829', 'tblTempVendorCDR_20' ) start [2025-02-02 19:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387829', 'tblTempVendorCDR_20' ) end [2025-02-02 19:30:18] Production.INFO: ProcessCDR(1,14387829,1,1,2) [2025-02-02 19:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387829', 'tblTempUsageDetail_20' ) start [2025-02-02 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387829', 'tblTempUsageDetail_20' ) end [2025-02-02 19:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:30:22] Production.INFO: ==2285== Releasing lock... [2025-02-02 19:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:30:22] Production.INFO: 37 MB #Memory Used# [2025-02-02 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:31:05 [end_date_ymd] => 2025-02-02 19:31:05 [RateCDR] => 1 ) [2025-02-02 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-02 16:31:05' and `end` < '2025-02-02 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-02 19:31:18] Production.INFO: count ==1236 [2025-02-02 19:31:18] Production.ERROR: pbx CDR StartTime 2025-02-02 16:31:05 - End Time 2025-02-02 19:31:05 [2025-02-02 19:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387835', 'tblTempUsageDetail_20' ) start [2025-02-02 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387835', 'tblTempUsageDetail_20' ) end [2025-02-02 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387835', 'tblTempVendorCDR_20' ) start [2025-02-02 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387835', 'tblTempVendorCDR_20' ) end [2025-02-02 19:31:18] Production.INFO: ProcessCDR(1,14387835,1,1,2) [2025-02-02 19:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387835', 'tblTempUsageDetail_20' ) start [2025-02-02 19:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387835', 'tblTempUsageDetail_20' ) end [2025-02-02 19:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:31:21] Production.INFO: ==2367== Releasing lock... [2025-02-02 19:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:31:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:32:05 [end_date_ymd] => 2025-02-02 19:32:05 [RateCDR] => 1 ) [2025-02-02 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-02 16:32:05' and `end` < '2025-02-02 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-02 19:32:18] Production.INFO: count ==1236 [2025-02-02 19:32:18] Production.ERROR: pbx CDR StartTime 2025-02-02 16:32:05 - End Time 2025-02-02 19:32:05 [2025-02-02 19:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387840', 'tblTempUsageDetail_20' ) start [2025-02-02 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387840', 'tblTempUsageDetail_20' ) end [2025-02-02 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387840', 'tblTempVendorCDR_20' ) start [2025-02-02 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387840', 'tblTempVendorCDR_20' ) end [2025-02-02 19:32:19] Production.INFO: ProcessCDR(1,14387840,1,1,2) [2025-02-02 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387840', 'tblTempUsageDetail_20' ) start [2025-02-02 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387840', 'tblTempUsageDetail_20' ) end [2025-02-02 19:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:32:22] Production.INFO: ==2450== Releasing lock... [2025-02-02 19:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:32:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:33:05 [end_date_ymd] => 2025-02-02 19:33:05 [RateCDR] => 1 ) [2025-02-02 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-02 16:33:05' and `end` < '2025-02-02 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-02 19:33:18] Production.INFO: count ==1240 [2025-02-02 19:33:18] Production.ERROR: pbx CDR StartTime 2025-02-02 16:33:05 - End Time 2025-02-02 19:33:05 [2025-02-02 19:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387845', 'tblTempUsageDetail_20' ) start [2025-02-02 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387845', 'tblTempUsageDetail_20' ) end [2025-02-02 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387845', 'tblTempVendorCDR_20' ) start [2025-02-02 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387845', 'tblTempVendorCDR_20' ) end [2025-02-02 19:33:18] Production.INFO: ProcessCDR(1,14387845,1,1,2) [2025-02-02 19:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387845', 'tblTempUsageDetail_20' ) start [2025-02-02 19:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387845', 'tblTempUsageDetail_20' ) end [2025-02-02 19:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:33:21] Production.INFO: ==2527== Releasing lock... [2025-02-02 19:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:33:21] Production.INFO: 37 MB #Memory Used# [2025-02-02 19:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:34:06 [end_date_ymd] => 2025-02-02 19:34:06 [RateCDR] => 1 ) [2025-02-02 19: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-02 16:34:06' and `end` < '2025-02-02 19: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-02 19:34:19] Production.INFO: count ==1239 [2025-02-02 19:34:19] Production.ERROR: pbx CDR StartTime 2025-02-02 16:34:06 - End Time 2025-02-02 19:34:06 [2025-02-02 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387850', 'tblTempUsageDetail_20' ) start [2025-02-02 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387850', 'tblTempUsageDetail_20' ) end [2025-02-02 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387850', 'tblTempVendorCDR_20' ) start [2025-02-02 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387850', 'tblTempVendorCDR_20' ) end [2025-02-02 19:34:19] Production.INFO: ProcessCDR(1,14387850,1,1,2) [2025-02-02 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387850', 'tblTempUsageDetail_20' ) start [2025-02-02 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387850', 'tblTempUsageDetail_20' ) end [2025-02-02 19:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:34:23] Production.INFO: ==2607== Releasing lock... [2025-02-02 19:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:34:23] Production.INFO: 37 MB #Memory Used# [2025-02-02 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:35:05 [end_date_ymd] => 2025-02-02 19:35:05 [RateCDR] => 1 ) [2025-02-02 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-02 16:35:05' and `end` < '2025-02-02 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-02 19:35:18] Production.INFO: count ==1240 [2025-02-02 19:35:18] Production.ERROR: pbx CDR StartTime 2025-02-02 16:35:05 - End Time 2025-02-02 19:35:05 [2025-02-02 19:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387855', 'tblTempUsageDetail_20' ) start [2025-02-02 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387855', 'tblTempUsageDetail_20' ) end [2025-02-02 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387855', 'tblTempVendorCDR_20' ) start [2025-02-02 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387855', 'tblTempVendorCDR_20' ) end [2025-02-02 19:35:18] Production.INFO: ProcessCDR(1,14387855,1,1,2) [2025-02-02 19:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387855', 'tblTempUsageDetail_20' ) start [2025-02-02 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387855', 'tblTempUsageDetail_20' ) end [2025-02-02 19:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:35:22] Production.INFO: ==2682== Releasing lock... [2025-02-02 19:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:35:22] Production.INFO: 37 MB #Memory Used# [2025-02-02 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:36:05 [end_date_ymd] => 2025-02-02 19:36:05 [RateCDR] => 1 ) [2025-02-02 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-02 16:36:05' and `end` < '2025-02-02 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-02 19:36:18] Production.INFO: count ==1237 [2025-02-02 19:36:18] Production.ERROR: pbx CDR StartTime 2025-02-02 16:36:05 - End Time 2025-02-02 19:36:05 [2025-02-02 19:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387860', 'tblTempUsageDetail_20' ) start [2025-02-02 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387860', 'tblTempUsageDetail_20' ) end [2025-02-02 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387860', 'tblTempVendorCDR_20' ) start [2025-02-02 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387860', 'tblTempVendorCDR_20' ) end [2025-02-02 19:36:18] Production.INFO: ProcessCDR(1,14387860,1,1,2) [2025-02-02 19:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387860', 'tblTempUsageDetail_20' ) start [2025-02-02 19:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387860', 'tblTempUsageDetail_20' ) end [2025-02-02 19:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:36:21] Production.INFO: ==2759== Releasing lock... [2025-02-02 19:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:36:21] Production.INFO: 37 MB #Memory Used# [2025-02-02 19:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:37:04 [end_date_ymd] => 2025-02-02 19:37:04 [RateCDR] => 1 ) [2025-02-02 19: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-02 16:37:04' and `end` < '2025-02-02 19: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-02 19:37:17] Production.INFO: count ==1237 [2025-02-02 19:37:17] Production.ERROR: pbx CDR StartTime 2025-02-02 16:37:04 - End Time 2025-02-02 19:37:04 [2025-02-02 19:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387865', 'tblTempUsageDetail_20' ) start [2025-02-02 19:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387865', 'tblTempUsageDetail_20' ) end [2025-02-02 19:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387865', 'tblTempVendorCDR_20' ) start [2025-02-02 19:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387865', 'tblTempVendorCDR_20' ) end [2025-02-02 19:37:17] Production.INFO: ProcessCDR(1,14387865,1,1,2) [2025-02-02 19:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387865', 'tblTempUsageDetail_20' ) start [2025-02-02 19:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387865', 'tblTempUsageDetail_20' ) end [2025-02-02 19:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:37:21] Production.INFO: ==2838== Releasing lock... [2025-02-02 19:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:37:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:38:05 [end_date_ymd] => 2025-02-02 19:38:05 [RateCDR] => 1 ) [2025-02-02 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-02 16:38:05' and `end` < '2025-02-02 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-02 19:38:18] Production.INFO: count ==1231 [2025-02-02 19:38:18] Production.ERROR: pbx CDR StartTime 2025-02-02 16:38:05 - End Time 2025-02-02 19:38:05 [2025-02-02 19:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387870', 'tblTempUsageDetail_20' ) start [2025-02-02 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387870', 'tblTempUsageDetail_20' ) end [2025-02-02 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387870', 'tblTempVendorCDR_20' ) start [2025-02-02 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387870', 'tblTempVendorCDR_20' ) end [2025-02-02 19:38:18] Production.INFO: ProcessCDR(1,14387870,1,1,2) [2025-02-02 19:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387870', 'tblTempUsageDetail_20' ) start [2025-02-02 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387870', 'tblTempUsageDetail_20' ) end [2025-02-02 19:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:38:22] Production.INFO: ==2917== Releasing lock... [2025-02-02 19:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:38:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:39:05 [end_date_ymd] => 2025-02-02 19:39:05 [RateCDR] => 1 ) [2025-02-02 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-02 16:39:05' and `end` < '2025-02-02 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-02 19:39:17] Production.INFO: count ==1215 [2025-02-02 19:39:18] Production.ERROR: pbx CDR StartTime 2025-02-02 16:39:05 - End Time 2025-02-02 19:39:05 [2025-02-02 19:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387875', 'tblTempUsageDetail_20' ) start [2025-02-02 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387875', 'tblTempUsageDetail_20' ) end [2025-02-02 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387875', 'tblTempVendorCDR_20' ) start [2025-02-02 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387875', 'tblTempVendorCDR_20' ) end [2025-02-02 19:39:18] Production.INFO: ProcessCDR(1,14387875,1,1,2) [2025-02-02 19:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387875', 'tblTempUsageDetail_20' ) start [2025-02-02 19:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387875', 'tblTempUsageDetail_20' ) end [2025-02-02 19:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:39:21] Production.INFO: ==2993== Releasing lock... [2025-02-02 19:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:39:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:40:06 [end_date_ymd] => 2025-02-02 19:40:06 [RateCDR] => 1 ) [2025-02-02 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-02 16:40:06' and `end` < '2025-02-02 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-02 19:40:19] Production.INFO: count ==1213 [2025-02-02 19:40:19] Production.ERROR: pbx CDR StartTime 2025-02-02 16:40:06 - End Time 2025-02-02 19:40:06 [2025-02-02 19:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387881', 'tblTempUsageDetail_20' ) start [2025-02-02 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387881', 'tblTempUsageDetail_20' ) end [2025-02-02 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387881', 'tblTempVendorCDR_20' ) start [2025-02-02 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387881', 'tblTempVendorCDR_20' ) end [2025-02-02 19:40:19] Production.INFO: ProcessCDR(1,14387881,1,1,2) [2025-02-02 19:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387881', 'tblTempUsageDetail_20' ) start [2025-02-02 19:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387881', 'tblTempUsageDetail_20' ) end [2025-02-02 19:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:40:22] Production.INFO: ==3122== Releasing lock... [2025-02-02 19:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:40:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 19:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:41:04 [end_date_ymd] => 2025-02-02 19:41:04 [RateCDR] => 1 ) [2025-02-02 19: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-02 16:41:04' and `end` < '2025-02-02 19: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-02 19:41:19] Production.INFO: count ==1229 [2025-02-02 19:41:19] Production.ERROR: pbx CDR StartTime 2025-02-02 16:41:04 - End Time 2025-02-02 19:41:04 [2025-02-02 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387886', 'tblTempUsageDetail_20' ) start [2025-02-02 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387886', 'tblTempUsageDetail_20' ) end [2025-02-02 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387886', 'tblTempVendorCDR_20' ) start [2025-02-02 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387886', 'tblTempVendorCDR_20' ) end [2025-02-02 19:41:19] Production.INFO: ProcessCDR(1,14387886,1,1,2) [2025-02-02 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387886', 'tblTempUsageDetail_20' ) start [2025-02-02 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387886', 'tblTempUsageDetail_20' ) end [2025-02-02 19:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:41:22] Production.INFO: ==3221== Releasing lock... [2025-02-02 19:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:41:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 19:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:42:06 [end_date_ymd] => 2025-02-02 19:42:06 [RateCDR] => 1 ) [2025-02-02 19: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-02 16:42:06' and `end` < '2025-02-02 19: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-02 19:42:19] Production.INFO: count ==1219 [2025-02-02 19:42:19] Production.ERROR: pbx CDR StartTime 2025-02-02 16:42:06 - End Time 2025-02-02 19:42:06 [2025-02-02 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387891', 'tblTempUsageDetail_20' ) start [2025-02-02 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387891', 'tblTempUsageDetail_20' ) end [2025-02-02 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387891', 'tblTempVendorCDR_20' ) start [2025-02-02 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387891', 'tblTempVendorCDR_20' ) end [2025-02-02 19:42:19] Production.INFO: ProcessCDR(1,14387891,1,1,2) [2025-02-02 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387891', 'tblTempUsageDetail_20' ) start [2025-02-02 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387891', 'tblTempUsageDetail_20' ) end [2025-02-02 19:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:42:23] Production.INFO: ==3315== Releasing lock... [2025-02-02 19:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:42:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 19:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:43:06 [end_date_ymd] => 2025-02-02 19:43:06 [RateCDR] => 1 ) [2025-02-02 19:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 16:43:06' and `end` < '2025-02-02 19:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 19:43:19] Production.INFO: count ==1218 [2025-02-02 19:43:19] Production.ERROR: pbx CDR StartTime 2025-02-02 16:43:06 - End Time 2025-02-02 19:43:06 [2025-02-02 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387896', 'tblTempUsageDetail_20' ) start [2025-02-02 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387896', 'tblTempUsageDetail_20' ) end [2025-02-02 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387896', 'tblTempVendorCDR_20' ) start [2025-02-02 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387896', 'tblTempVendorCDR_20' ) end [2025-02-02 19:43:19] Production.INFO: ProcessCDR(1,14387896,1,1,2) [2025-02-02 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387896', 'tblTempUsageDetail_20' ) start [2025-02-02 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387896', 'tblTempUsageDetail_20' ) end [2025-02-02 19:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:43:22] Production.INFO: ==3411== Releasing lock... [2025-02-02 19:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:43:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:44:05 [end_date_ymd] => 2025-02-02 19:44:05 [RateCDR] => 1 ) [2025-02-02 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-02 16:44:05' and `end` < '2025-02-02 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-02 19:44:19] Production.INFO: count ==1218 [2025-02-02 19:44:19] Production.ERROR: pbx CDR StartTime 2025-02-02 16:44:05 - End Time 2025-02-02 19:44:05 [2025-02-02 19:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387901', 'tblTempUsageDetail_20' ) start [2025-02-02 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387901', 'tblTempUsageDetail_20' ) end [2025-02-02 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387901', 'tblTempVendorCDR_20' ) start [2025-02-02 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387901', 'tblTempVendorCDR_20' ) end [2025-02-02 19:44:19] Production.INFO: ProcessCDR(1,14387901,1,1,2) [2025-02-02 19:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387901', 'tblTempUsageDetail_20' ) start [2025-02-02 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387901', 'tblTempUsageDetail_20' ) end [2025-02-02 19:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:44:22] Production.INFO: ==3512== Releasing lock... [2025-02-02 19:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:44:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:45:05 [end_date_ymd] => 2025-02-02 19:45:05 [RateCDR] => 1 ) [2025-02-02 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-02 16:45:05' and `end` < '2025-02-02 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-02 19:45:19] Production.INFO: count ==1224 [2025-02-02 19:45:19] Production.ERROR: pbx CDR StartTime 2025-02-02 16:45:05 - End Time 2025-02-02 19:45:05 [2025-02-02 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387906', 'tblTempUsageDetail_20' ) start [2025-02-02 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387906', 'tblTempUsageDetail_20' ) end [2025-02-02 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387906', 'tblTempVendorCDR_20' ) start [2025-02-02 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387906', 'tblTempVendorCDR_20' ) end [2025-02-02 19:45:19] Production.INFO: ProcessCDR(1,14387906,1,1,2) [2025-02-02 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387906', 'tblTempUsageDetail_20' ) start [2025-02-02 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387906', 'tblTempUsageDetail_20' ) end [2025-02-02 19:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:45:22] Production.INFO: ==3613== Releasing lock... [2025-02-02 19:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:45:22] Production.INFO: 37 MB #Memory Used# [2025-02-02 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:46:05 [end_date_ymd] => 2025-02-02 19:46:05 [RateCDR] => 1 ) [2025-02-02 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-02 16:46:05' and `end` < '2025-02-02 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-02 19:46:18] Production.INFO: count ==1225 [2025-02-02 19:46:18] Production.ERROR: pbx CDR StartTime 2025-02-02 16:46:05 - End Time 2025-02-02 19:46:05 [2025-02-02 19:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387911', 'tblTempUsageDetail_20' ) start [2025-02-02 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387911', 'tblTempUsageDetail_20' ) end [2025-02-02 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387911', 'tblTempVendorCDR_20' ) start [2025-02-02 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387911', 'tblTempVendorCDR_20' ) end [2025-02-02 19:46:18] Production.INFO: ProcessCDR(1,14387911,1,1,2) [2025-02-02 19:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387911', 'tblTempUsageDetail_20' ) start [2025-02-02 19:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387911', 'tblTempUsageDetail_20' ) end [2025-02-02 19:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:46:21] Production.INFO: ==3707== Releasing lock... [2025-02-02 19:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:46:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 19:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:47:06 [end_date_ymd] => 2025-02-02 19:47:06 [RateCDR] => 1 ) [2025-02-02 19:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 16:47:06' and `end` < '2025-02-02 19:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 19:47:18] Production.INFO: count ==1224 [2025-02-02 19:47:19] Production.ERROR: pbx CDR StartTime 2025-02-02 16:47:06 - End Time 2025-02-02 19:47:06 [2025-02-02 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387916', 'tblTempUsageDetail_20' ) start [2025-02-02 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387916', 'tblTempUsageDetail_20' ) end [2025-02-02 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387916', 'tblTempVendorCDR_20' ) start [2025-02-02 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387916', 'tblTempVendorCDR_20' ) end [2025-02-02 19:47:19] Production.INFO: ProcessCDR(1,14387916,1,1,2) [2025-02-02 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387916', 'tblTempUsageDetail_20' ) start [2025-02-02 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387916', 'tblTempUsageDetail_20' ) end [2025-02-02 19:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:47:22] Production.INFO: ==3810== Releasing lock... [2025-02-02 19:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:47:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:48:05 [end_date_ymd] => 2025-02-02 19:48:05 [RateCDR] => 1 ) [2025-02-02 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-02 16:48:05' and `end` < '2025-02-02 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-02 19:48:18] Production.INFO: count ==1225 [2025-02-02 19:48:18] Production.ERROR: pbx CDR StartTime 2025-02-02 16:48:05 - End Time 2025-02-02 19:48:05 [2025-02-02 19:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387921', 'tblTempUsageDetail_20' ) start [2025-02-02 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387921', 'tblTempUsageDetail_20' ) end [2025-02-02 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387921', 'tblTempVendorCDR_20' ) start [2025-02-02 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387921', 'tblTempVendorCDR_20' ) end [2025-02-02 19:48:18] Production.INFO: ProcessCDR(1,14387921,1,1,2) [2025-02-02 19:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387921', 'tblTempUsageDetail_20' ) start [2025-02-02 19:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387921', 'tblTempUsageDetail_20' ) end [2025-02-02 19:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:48:21] Production.INFO: ==3904== Releasing lock... [2025-02-02 19:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:48:21] Production.INFO: 37 MB #Memory Used# [2025-02-02 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:49:05 [end_date_ymd] => 2025-02-02 19:49:05 [RateCDR] => 1 ) [2025-02-02 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-02 16:49:05' and `end` < '2025-02-02 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-02 19:49:18] Production.INFO: count ==1227 [2025-02-02 19:49:18] Production.ERROR: pbx CDR StartTime 2025-02-02 16:49:05 - End Time 2025-02-02 19:49:05 [2025-02-02 19:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387926', 'tblTempUsageDetail_20' ) start [2025-02-02 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387926', 'tblTempUsageDetail_20' ) end [2025-02-02 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387926', 'tblTempVendorCDR_20' ) start [2025-02-02 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387926', 'tblTempVendorCDR_20' ) end [2025-02-02 19:49:18] Production.INFO: ProcessCDR(1,14387926,1,1,2) [2025-02-02 19:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387926', 'tblTempUsageDetail_20' ) start [2025-02-02 19:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387926', 'tblTempUsageDetail_20' ) end [2025-02-02 19:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:49:21] Production.INFO: ==4007== Releasing lock... [2025-02-02 19:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:49:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:50:06 [end_date_ymd] => 2025-02-02 19:50:06 [RateCDR] => 1 ) [2025-02-02 19:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 16:50:06' and `end` < '2025-02-02 19:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 19:50:19] Production.INFO: count ==1235 [2025-02-02 19:50:19] Production.ERROR: pbx CDR StartTime 2025-02-02 16:50:06 - End Time 2025-02-02 19:50:06 [2025-02-02 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387932', 'tblTempUsageDetail_20' ) start [2025-02-02 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387932', 'tblTempUsageDetail_20' ) end [2025-02-02 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387932', 'tblTempVendorCDR_20' ) start [2025-02-02 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387932', 'tblTempVendorCDR_20' ) end [2025-02-02 19:50:19] Production.INFO: ProcessCDR(1,14387932,1,1,2) [2025-02-02 19:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387932', 'tblTempUsageDetail_20' ) start [2025-02-02 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387932', 'tblTempUsageDetail_20' ) end [2025-02-02 19:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:50:22] Production.INFO: ==4112== Releasing lock... [2025-02-02 19:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:50:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:51:05 [end_date_ymd] => 2025-02-02 19:51:05 [RateCDR] => 1 ) [2025-02-02 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-02 16:51:05' and `end` < '2025-02-02 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-02 19:51:18] Production.INFO: count ==1233 [2025-02-02 19:51:18] Production.ERROR: pbx CDR StartTime 2025-02-02 16:51:05 - End Time 2025-02-02 19:51:05 [2025-02-02 19:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387937', 'tblTempUsageDetail_20' ) start [2025-02-02 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387937', 'tblTempUsageDetail_20' ) end [2025-02-02 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387937', 'tblTempVendorCDR_20' ) start [2025-02-02 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387937', 'tblTempVendorCDR_20' ) end [2025-02-02 19:51:18] Production.INFO: ProcessCDR(1,14387937,1,1,2) [2025-02-02 19:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387937', 'tblTempUsageDetail_20' ) start [2025-02-02 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387937', 'tblTempUsageDetail_20' ) end [2025-02-02 19:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:51:22] Production.INFO: ==4220== Releasing lock... [2025-02-02 19:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:51:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:52:05 [end_date_ymd] => 2025-02-02 19:52:05 [RateCDR] => 1 ) [2025-02-02 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-02 16:52:05' and `end` < '2025-02-02 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-02 19:52:18] Production.INFO: count ==1239 [2025-02-02 19:52:18] Production.ERROR: pbx CDR StartTime 2025-02-02 16:52:05 - End Time 2025-02-02 19:52:05 [2025-02-02 19:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387942', 'tblTempUsageDetail_20' ) start [2025-02-02 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387942', 'tblTempUsageDetail_20' ) end [2025-02-02 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387942', 'tblTempVendorCDR_20' ) start [2025-02-02 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387942', 'tblTempVendorCDR_20' ) end [2025-02-02 19:52:18] Production.INFO: ProcessCDR(1,14387942,1,1,2) [2025-02-02 19:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387942', 'tblTempUsageDetail_20' ) start [2025-02-02 19:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387942', 'tblTempUsageDetail_20' ) end [2025-02-02 19:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:52:21] Production.INFO: ==4333== Releasing lock... [2025-02-02 19:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:52:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:53:05 [end_date_ymd] => 2025-02-02 19:53:05 [RateCDR] => 1 ) [2025-02-02 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-02 16:53:05' and `end` < '2025-02-02 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-02 19:53:18] Production.INFO: count ==1240 [2025-02-02 19:53:18] Production.ERROR: pbx CDR StartTime 2025-02-02 16:53:05 - End Time 2025-02-02 19:53:05 [2025-02-02 19:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387947', 'tblTempUsageDetail_20' ) start [2025-02-02 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387947', 'tblTempUsageDetail_20' ) end [2025-02-02 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387947', 'tblTempVendorCDR_20' ) start [2025-02-02 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387947', 'tblTempVendorCDR_20' ) end [2025-02-02 19:53:18] Production.INFO: ProcessCDR(1,14387947,1,1,2) [2025-02-02 19:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387947', 'tblTempUsageDetail_20' ) start [2025-02-02 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387947', 'tblTempUsageDetail_20' ) end [2025-02-02 19:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:53:21] Production.INFO: ==4432== Releasing lock... [2025-02-02 19:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:53:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 19:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:54:06 [end_date_ymd] => 2025-02-02 19:54:06 [RateCDR] => 1 ) [2025-02-02 19:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 16:54:06' and `end` < '2025-02-02 19:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 19:54:19] Production.INFO: count ==1246 [2025-02-02 19:54:19] Production.ERROR: pbx CDR StartTime 2025-02-02 16:54:06 - End Time 2025-02-02 19:54:06 [2025-02-02 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387952', 'tblTempUsageDetail_20' ) start [2025-02-02 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387952', 'tblTempUsageDetail_20' ) end [2025-02-02 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387952', 'tblTempVendorCDR_20' ) start [2025-02-02 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387952', 'tblTempVendorCDR_20' ) end [2025-02-02 19:54:19] Production.INFO: ProcessCDR(1,14387952,1,1,2) [2025-02-02 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387952', 'tblTempUsageDetail_20' ) start [2025-02-02 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387952', 'tblTempUsageDetail_20' ) end [2025-02-02 19:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:54:22] Production.INFO: ==4532== Releasing lock... [2025-02-02 19:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:54:22] Production.INFO: 37 MB #Memory Used# [2025-02-02 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:55:05 [end_date_ymd] => 2025-02-02 19:55:05 [RateCDR] => 1 ) [2025-02-02 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-02 16:55:05' and `end` < '2025-02-02 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-02 19:55:18] Production.INFO: count ==1245 [2025-02-02 19:55:18] Production.ERROR: pbx CDR StartTime 2025-02-02 16:55:05 - End Time 2025-02-02 19:55:05 [2025-02-02 19:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387957', 'tblTempUsageDetail_20' ) start [2025-02-02 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387957', 'tblTempUsageDetail_20' ) end [2025-02-02 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387957', 'tblTempVendorCDR_20' ) start [2025-02-02 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387957', 'tblTempVendorCDR_20' ) end [2025-02-02 19:55:18] Production.INFO: ProcessCDR(1,14387957,1,1,2) [2025-02-02 19:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387957', 'tblTempUsageDetail_20' ) start [2025-02-02 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387957', 'tblTempUsageDetail_20' ) end [2025-02-02 19:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:55:22] Production.INFO: ==4674== Releasing lock... [2025-02-02 19:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:55:22] Production.INFO: 37 MB #Memory Used# [2025-02-02 19:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:56:06 [end_date_ymd] => 2025-02-02 19:56:06 [RateCDR] => 1 ) [2025-02-02 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-02 16:56:06' and `end` < '2025-02-02 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-02 19:56:19] Production.INFO: count ==1251 [2025-02-02 19:56:20] Production.ERROR: pbx CDR StartTime 2025-02-02 16:56:06 - End Time 2025-02-02 19:56:06 [2025-02-02 19:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387962', 'tblTempUsageDetail_20' ) start [2025-02-02 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387962', 'tblTempUsageDetail_20' ) end [2025-02-02 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387962', 'tblTempVendorCDR_20' ) start [2025-02-02 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387962', 'tblTempVendorCDR_20' ) end [2025-02-02 19:56:20] Production.INFO: ProcessCDR(1,14387962,1,1,2) [2025-02-02 19:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387962', 'tblTempUsageDetail_20' ) start [2025-02-02 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387962', 'tblTempUsageDetail_20' ) end [2025-02-02 19:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:56:23] Production.INFO: ==4776== Releasing lock... [2025-02-02 19:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:56:23] Production.INFO: 37 MB #Memory Used# [2025-02-02 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:57:05 [end_date_ymd] => 2025-02-02 19:57:05 [RateCDR] => 1 ) [2025-02-02 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-02 16:57:05' and `end` < '2025-02-02 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-02 19:57:18] Production.INFO: count ==1256 [2025-02-02 19:57:18] Production.ERROR: pbx CDR StartTime 2025-02-02 16:57:05 - End Time 2025-02-02 19:57:05 [2025-02-02 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387967', 'tblTempUsageDetail_20' ) start [2025-02-02 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387967', 'tblTempUsageDetail_20' ) end [2025-02-02 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387967', 'tblTempVendorCDR_20' ) start [2025-02-02 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387967', 'tblTempVendorCDR_20' ) end [2025-02-02 19:57:18] Production.INFO: ProcessCDR(1,14387967,1,1,2) [2025-02-02 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387967', 'tblTempUsageDetail_20' ) start [2025-02-02 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387967', 'tblTempUsageDetail_20' ) end [2025-02-02 19:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:57:21] Production.INFO: ==4877== Releasing lock... [2025-02-02 19:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:57:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:58:05 [end_date_ymd] => 2025-02-02 19:58:05 [RateCDR] => 1 ) [2025-02-02 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-02 16:58:05' and `end` < '2025-02-02 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-02 19:58:18] Production.INFO: count ==1282 [2025-02-02 19:58:19] Production.ERROR: pbx CDR StartTime 2025-02-02 16:58:05 - End Time 2025-02-02 19:58:05 [2025-02-02 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387972', 'tblTempUsageDetail_20' ) start [2025-02-02 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387972', 'tblTempUsageDetail_20' ) end [2025-02-02 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387972', 'tblTempVendorCDR_20' ) start [2025-02-02 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387972', 'tblTempVendorCDR_20' ) end [2025-02-02 19:58:19] Production.INFO: ProcessCDR(1,14387972,1,1,2) [2025-02-02 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387972', 'tblTempUsageDetail_20' ) start [2025-02-02 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387972', 'tblTempUsageDetail_20' ) end [2025-02-02 19:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:58:22] Production.INFO: ==4955== Releasing lock... [2025-02-02 19:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:58:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 16:59:05 [end_date_ymd] => 2025-02-02 19:59:05 [RateCDR] => 1 ) [2025-02-02 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-02 16:59:05' and `end` < '2025-02-02 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-02 19:59:18] Production.INFO: count ==1285 [2025-02-02 19:59:18] Production.ERROR: pbx CDR StartTime 2025-02-02 16:59:05 - End Time 2025-02-02 19:59:05 [2025-02-02 19:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387977', 'tblTempUsageDetail_20' ) start [2025-02-02 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387977', 'tblTempUsageDetail_20' ) end [2025-02-02 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387977', 'tblTempVendorCDR_20' ) start [2025-02-02 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387977', 'tblTempVendorCDR_20' ) end [2025-02-02 19:59:18] Production.INFO: ProcessCDR(1,14387977,1,1,2) [2025-02-02 19:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 19:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 19:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387977', 'tblTempUsageDetail_20' ) start [2025-02-02 19:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387977', 'tblTempUsageDetail_20' ) end [2025-02-02 19:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 19:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 19:59:21] Production.INFO: ==5034== Releasing lock... [2025-02-02 19:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 19:59:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:00:06 [end_date_ymd] => 2025-02-02 20:00:06 [RateCDR] => 1 ) [2025-02-02 20:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 17:00:06' and `end` < '2025-02-02 20:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 20:00:19] Production.INFO: count ==1290 [2025-02-02 20:00:19] Production.ERROR: pbx CDR StartTime 2025-02-02 17:00:06 - End Time 2025-02-02 20:00:06 [2025-02-02 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387983', 'tblTempUsageDetail_20' ) start [2025-02-02 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387983', 'tblTempUsageDetail_20' ) end [2025-02-02 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387983', 'tblTempVendorCDR_20' ) start [2025-02-02 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387983', 'tblTempVendorCDR_20' ) end [2025-02-02 20:00:19] Production.INFO: ProcessCDR(1,14387983,1,1,2) [2025-02-02 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387983', 'tblTempUsageDetail_20' ) start [2025-02-02 20:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387983', 'tblTempUsageDetail_20' ) end [2025-02-02 20:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:00:22] Production.INFO: ==5114== Releasing lock... [2025-02-02 20:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:00:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:01:05 [end_date_ymd] => 2025-02-02 20:01:05 [RateCDR] => 1 ) [2025-02-02 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-02 17:01:05' and `end` < '2025-02-02 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-02 20:01:18] Production.INFO: count ==1295 [2025-02-02 20:01:18] Production.ERROR: pbx CDR StartTime 2025-02-02 17:01:05 - End Time 2025-02-02 20:01:05 [2025-02-02 20:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387988', 'tblTempUsageDetail_20' ) start [2025-02-02 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387988', 'tblTempUsageDetail_20' ) end [2025-02-02 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387988', 'tblTempVendorCDR_20' ) start [2025-02-02 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387988', 'tblTempVendorCDR_20' ) end [2025-02-02 20:01:18] Production.INFO: ProcessCDR(1,14387988,1,1,2) [2025-02-02 20:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387988', 'tblTempUsageDetail_20' ) start [2025-02-02 20:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387988', 'tblTempUsageDetail_20' ) end [2025-02-02 20:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:01:21] Production.INFO: ==5243== Releasing lock... [2025-02-02 20:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:01:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:02:05 [end_date_ymd] => 2025-02-02 20:02:05 [RateCDR] => 1 ) [2025-02-02 20:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 17:02:05' and `end` < '2025-02-02 20:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 20:02:20] Production.INFO: count ==1294 [2025-02-02 20:02:20] Production.ERROR: pbx CDR StartTime 2025-02-02 17:02:05 - End Time 2025-02-02 20:02:05 [2025-02-02 20:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387993', 'tblTempUsageDetail_20' ) start [2025-02-02 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387993', 'tblTempUsageDetail_20' ) end [2025-02-02 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387993', 'tblTempVendorCDR_20' ) start [2025-02-02 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387993', 'tblTempVendorCDR_20' ) end [2025-02-02 20:02:20] Production.INFO: ProcessCDR(1,14387993,1,1,2) [2025-02-02 20:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387993', 'tblTempUsageDetail_20' ) start [2025-02-02 20:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387993', 'tblTempUsageDetail_20' ) end [2025-02-02 20:02:25] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:02:25] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:02:25] Production.INFO: ==5320== Releasing lock... [2025-02-02 20:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:02:25] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:03:05 [end_date_ymd] => 2025-02-02 20:03:05 [RateCDR] => 1 ) [2025-02-02 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-02 17:03:05' and `end` < '2025-02-02 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-02 20:03:18] Production.INFO: count ==1307 [2025-02-02 20:03:18] Production.ERROR: pbx CDR StartTime 2025-02-02 17:03:05 - End Time 2025-02-02 20:03:05 [2025-02-02 20:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387998', 'tblTempUsageDetail_20' ) start [2025-02-02 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14387998', 'tblTempUsageDetail_20' ) end [2025-02-02 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387998', 'tblTempVendorCDR_20' ) start [2025-02-02 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14387998', 'tblTempVendorCDR_20' ) end [2025-02-02 20:03:18] Production.INFO: ProcessCDR(1,14387998,1,1,2) [2025-02-02 20:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14387998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14387998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14387998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14387998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387998', 'tblTempUsageDetail_20' ) start [2025-02-02 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14387998', 'tblTempUsageDetail_20' ) end [2025-02-02 20:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:03:21] Production.INFO: ==5397== Releasing lock... [2025-02-02 20:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:03:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:04:05 [end_date_ymd] => 2025-02-02 20:04:05 [RateCDR] => 1 ) [2025-02-02 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-02 17:04:05' and `end` < '2025-02-02 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-02 20:04:18] Production.INFO: count ==1316 [2025-02-02 20:04:19] Production.ERROR: pbx CDR StartTime 2025-02-02 17:04:05 - End Time 2025-02-02 20:04:05 [2025-02-02 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388003', 'tblTempUsageDetail_20' ) start [2025-02-02 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388003', 'tblTempUsageDetail_20' ) end [2025-02-02 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388003', 'tblTempVendorCDR_20' ) start [2025-02-02 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388003', 'tblTempVendorCDR_20' ) end [2025-02-02 20:04:19] Production.INFO: ProcessCDR(1,14388003,1,1,2) [2025-02-02 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388003', 'tblTempUsageDetail_20' ) start [2025-02-02 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388003', 'tblTempUsageDetail_20' ) end [2025-02-02 20:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:04:22] Production.INFO: ==5474== Releasing lock... [2025-02-02 20:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:04:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-02 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:05:05 [end_date_ymd] => 2025-02-02 20:05:05 [RateCDR] => 1 ) [2025-02-02 20:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 17:05:05' and `end` < '2025-02-02 20:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 20:05:18] Production.INFO: count ==1325 [2025-02-02 20:05:18] Production.ERROR: pbx CDR StartTime 2025-02-02 17:05:05 - End Time 2025-02-02 20:05:05 [2025-02-02 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388008', 'tblTempUsageDetail_20' ) start [2025-02-02 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388008', 'tblTempUsageDetail_20' ) end [2025-02-02 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388008', 'tblTempVendorCDR_20' ) start [2025-02-02 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388008', 'tblTempVendorCDR_20' ) end [2025-02-02 20:05:18] Production.INFO: ProcessCDR(1,14388008,1,1,2) [2025-02-02 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388008', 'tblTempUsageDetail_20' ) start [2025-02-02 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388008', 'tblTempUsageDetail_20' ) end [2025-02-02 20:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:05:22] Production.INFO: ==5551== Releasing lock... [2025-02-02 20:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:05:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-02 20:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:06:06 [end_date_ymd] => 2025-02-02 20:06:06 [RateCDR] => 1 ) [2025-02-02 20:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 17:06:06' and `end` < '2025-02-02 20:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 20:06:18] Production.INFO: count ==1325 [2025-02-02 20:06:19] Production.ERROR: pbx CDR StartTime 2025-02-02 17:06:06 - End Time 2025-02-02 20:06:06 [2025-02-02 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388013', 'tblTempUsageDetail_20' ) start [2025-02-02 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388013', 'tblTempUsageDetail_20' ) end [2025-02-02 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388013', 'tblTempVendorCDR_20' ) start [2025-02-02 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388013', 'tblTempVendorCDR_20' ) end [2025-02-02 20:06:19] Production.INFO: ProcessCDR(1,14388013,1,1,2) [2025-02-02 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388013', 'tblTempUsageDetail_20' ) start [2025-02-02 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388013', 'tblTempUsageDetail_20' ) end [2025-02-02 20:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:06:22] Production.INFO: ==5630== Releasing lock... [2025-02-02 20:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:06:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-02 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:07:05 [end_date_ymd] => 2025-02-02 20:07:05 [RateCDR] => 1 ) [2025-02-02 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-02 17:07:05' and `end` < '2025-02-02 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-02 20:07:18] Production.INFO: count ==1323 [2025-02-02 20:07:18] Production.ERROR: pbx CDR StartTime 2025-02-02 17:07:05 - End Time 2025-02-02 20:07:05 [2025-02-02 20:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388018', 'tblTempUsageDetail_20' ) start [2025-02-02 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388018', 'tblTempUsageDetail_20' ) end [2025-02-02 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388018', 'tblTempVendorCDR_20' ) start [2025-02-02 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388018', 'tblTempVendorCDR_20' ) end [2025-02-02 20:07:18] Production.INFO: ProcessCDR(1,14388018,1,1,2) [2025-02-02 20:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388018', 'tblTempUsageDetail_20' ) start [2025-02-02 20:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388018', 'tblTempUsageDetail_20' ) end [2025-02-02 20:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:07:21] Production.INFO: ==5707== Releasing lock... [2025-02-02 20:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:07:21] Production.INFO: 37.5 MB #Memory Used# [2025-02-02 20:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:08:06 [end_date_ymd] => 2025-02-02 20:08:06 [RateCDR] => 1 ) [2025-02-02 20:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 17:08:06' and `end` < '2025-02-02 20:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 20:08:19] Production.INFO: count ==1340 [2025-02-02 20:08:19] Production.ERROR: pbx CDR StartTime 2025-02-02 17:08:06 - End Time 2025-02-02 20:08:06 [2025-02-02 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388023', 'tblTempUsageDetail_20' ) start [2025-02-02 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388023', 'tblTempUsageDetail_20' ) end [2025-02-02 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388023', 'tblTempVendorCDR_20' ) start [2025-02-02 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388023', 'tblTempVendorCDR_20' ) end [2025-02-02 20:08:19] Production.INFO: ProcessCDR(1,14388023,1,1,2) [2025-02-02 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388023', 'tblTempUsageDetail_20' ) start [2025-02-02 20:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388023', 'tblTempUsageDetail_20' ) end [2025-02-02 20:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:08:24] Production.INFO: ==5785== Releasing lock... [2025-02-02 20:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:08:24] Production.INFO: 37.5 MB #Memory Used# [2025-02-02 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:09:05 [end_date_ymd] => 2025-02-02 20:09:05 [RateCDR] => 1 ) [2025-02-02 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-02 17:09:05' and `end` < '2025-02-02 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-02 20:09:17] Production.INFO: count ==1341 [2025-02-02 20:09:18] Production.ERROR: pbx CDR StartTime 2025-02-02 17:09:05 - End Time 2025-02-02 20:09:05 [2025-02-02 20:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388028', 'tblTempUsageDetail_20' ) start [2025-02-02 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388028', 'tblTempUsageDetail_20' ) end [2025-02-02 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388028', 'tblTempVendorCDR_20' ) start [2025-02-02 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388028', 'tblTempVendorCDR_20' ) end [2025-02-02 20:09:18] Production.INFO: ProcessCDR(1,14388028,1,1,2) [2025-02-02 20:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388028', 'tblTempUsageDetail_20' ) start [2025-02-02 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388028', 'tblTempUsageDetail_20' ) end [2025-02-02 20:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:09:22] Production.INFO: ==5867== Releasing lock... [2025-02-02 20:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:09:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-02 20:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:10:05 [end_date_ymd] => 2025-02-02 20:10:05 [RateCDR] => 1 ) [2025-02-02 20: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-02 17:10:05' and `end` < '2025-02-02 20: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-02 20:10:18] Production.INFO: count ==1343 [2025-02-02 20:10:19] Production.ERROR: pbx CDR StartTime 2025-02-02 17:10:05 - End Time 2025-02-02 20:10:05 [2025-02-02 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388034', 'tblTempUsageDetail_20' ) start [2025-02-02 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388034', 'tblTempUsageDetail_20' ) end [2025-02-02 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388034', 'tblTempVendorCDR_20' ) start [2025-02-02 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388034', 'tblTempVendorCDR_20' ) end [2025-02-02 20:10:19] Production.INFO: ProcessCDR(1,14388034,1,1,2) [2025-02-02 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388034', 'tblTempUsageDetail_20' ) start [2025-02-02 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388034', 'tblTempUsageDetail_20' ) end [2025-02-02 20:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:10:22] Production.INFO: ==5949== Releasing lock... [2025-02-02 20:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:10:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-02 20:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:11:06 [end_date_ymd] => 2025-02-02 20:11:06 [RateCDR] => 1 ) [2025-02-02 20:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 17:11:06' and `end` < '2025-02-02 20:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 20:11:20] Production.INFO: count ==1363 [2025-02-02 20:11:20] Production.ERROR: pbx CDR StartTime 2025-02-02 17:11:06 - End Time 2025-02-02 20:11:06 [2025-02-02 20:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388039', 'tblTempUsageDetail_20' ) start [2025-02-02 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388039', 'tblTempUsageDetail_20' ) end [2025-02-02 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388039', 'tblTempVendorCDR_20' ) start [2025-02-02 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388039', 'tblTempVendorCDR_20' ) end [2025-02-02 20:11:20] Production.INFO: ProcessCDR(1,14388039,1,1,2) [2025-02-02 20:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388039', 'tblTempUsageDetail_20' ) start [2025-02-02 20:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388039', 'tblTempUsageDetail_20' ) end [2025-02-02 20:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:11:25] Production.INFO: ==6078== Releasing lock... [2025-02-02 20:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:11:25] Production.INFO: 37.75 MB #Memory Used# [2025-02-02 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:12:05 [end_date_ymd] => 2025-02-02 20:12:05 [RateCDR] => 1 ) [2025-02-02 20:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 17:12:05' and `end` < '2025-02-02 20:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 20:12:18] Production.INFO: count ==1360 [2025-02-02 20:12:18] Production.ERROR: pbx CDR StartTime 2025-02-02 17:12:05 - End Time 2025-02-02 20:12:05 [2025-02-02 20:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388044', 'tblTempUsageDetail_20' ) start [2025-02-02 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388044', 'tblTempUsageDetail_20' ) end [2025-02-02 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388044', 'tblTempVendorCDR_20' ) start [2025-02-02 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388044', 'tblTempVendorCDR_20' ) end [2025-02-02 20:12:18] Production.INFO: ProcessCDR(1,14388044,1,1,2) [2025-02-02 20:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388044', 'tblTempUsageDetail_20' ) start [2025-02-02 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388044', 'tblTempUsageDetail_20' ) end [2025-02-02 20:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:12:22] Production.INFO: ==6156== Releasing lock... [2025-02-02 20:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:12:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-02 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:13:05 [end_date_ymd] => 2025-02-02 20:13:05 [RateCDR] => 1 ) [2025-02-02 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-02 17:13:05' and `end` < '2025-02-02 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-02 20:13:19] Production.INFO: count ==1351 [2025-02-02 20:13:19] Production.ERROR: pbx CDR StartTime 2025-02-02 17:13:05 - End Time 2025-02-02 20:13:05 [2025-02-02 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388049', 'tblTempUsageDetail_20' ) start [2025-02-02 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388049', 'tblTempUsageDetail_20' ) end [2025-02-02 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388049', 'tblTempVendorCDR_20' ) start [2025-02-02 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388049', 'tblTempVendorCDR_20' ) end [2025-02-02 20:13:19] Production.INFO: ProcessCDR(1,14388049,1,1,2) [2025-02-02 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388049', 'tblTempUsageDetail_20' ) start [2025-02-02 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388049', 'tblTempUsageDetail_20' ) end [2025-02-02 20:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:13:22] Production.INFO: ==6236== Releasing lock... [2025-02-02 20:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:13:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-02 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:14:05 [end_date_ymd] => 2025-02-02 20:14:05 [RateCDR] => 1 ) [2025-02-02 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-02 17:14:05' and `end` < '2025-02-02 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-02 20:14:19] Production.INFO: count ==1348 [2025-02-02 20:14:19] Production.ERROR: pbx CDR StartTime 2025-02-02 17:14:05 - End Time 2025-02-02 20:14:05 [2025-02-02 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388054', 'tblTempUsageDetail_20' ) start [2025-02-02 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388054', 'tblTempUsageDetail_20' ) end [2025-02-02 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388054', 'tblTempVendorCDR_20' ) start [2025-02-02 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388054', 'tblTempVendorCDR_20' ) end [2025-02-02 20:14:19] Production.INFO: ProcessCDR(1,14388054,1,1,2) [2025-02-02 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388054', 'tblTempUsageDetail_20' ) start [2025-02-02 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388054', 'tblTempUsageDetail_20' ) end [2025-02-02 20:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:14:22] Production.INFO: ==6315== Releasing lock... [2025-02-02 20:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:14:22] Production.INFO: 38 MB #Memory Used# [2025-02-02 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:15:05 [end_date_ymd] => 2025-02-02 20:15:05 [RateCDR] => 1 ) [2025-02-02 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-02 17:15:05' and `end` < '2025-02-02 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-02 20:15:18] Production.INFO: count ==1341 [2025-02-02 20:15:18] Production.ERROR: pbx CDR StartTime 2025-02-02 17:15:05 - End Time 2025-02-02 20:15:05 [2025-02-02 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388059', 'tblTempUsageDetail_20' ) start [2025-02-02 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388059', 'tblTempUsageDetail_20' ) end [2025-02-02 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388059', 'tblTempVendorCDR_20' ) start [2025-02-02 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388059', 'tblTempVendorCDR_20' ) end [2025-02-02 20:15:18] Production.INFO: ProcessCDR(1,14388059,1,1,2) [2025-02-02 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388059', 'tblTempUsageDetail_20' ) start [2025-02-02 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388059', 'tblTempUsageDetail_20' ) end [2025-02-02 20:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:15:21] Production.INFO: ==6394== Releasing lock... [2025-02-02 20:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:15:21] Production.INFO: 37.5 MB #Memory Used# [2025-02-02 20:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:16:04 [end_date_ymd] => 2025-02-02 20:16:04 [RateCDR] => 1 ) [2025-02-02 20: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-02 17:16:04' and `end` < '2025-02-02 20: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-02 20:16:17] Production.INFO: count ==1342 [2025-02-02 20:16:17] Production.ERROR: pbx CDR StartTime 2025-02-02 17:16:04 - End Time 2025-02-02 20:16:04 [2025-02-02 20:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388064', 'tblTempUsageDetail_20' ) start [2025-02-02 20:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388064', 'tblTempUsageDetail_20' ) end [2025-02-02 20:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388064', 'tblTempVendorCDR_20' ) start [2025-02-02 20:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388064', 'tblTempVendorCDR_20' ) end [2025-02-02 20:16:17] Production.INFO: ProcessCDR(1,14388064,1,1,2) [2025-02-02 20:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388064', 'tblTempUsageDetail_20' ) start [2025-02-02 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388064', 'tblTempUsageDetail_20' ) end [2025-02-02 20:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:16:22] Production.INFO: ==6473== Releasing lock... [2025-02-02 20:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:16:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-02 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:17:05 [end_date_ymd] => 2025-02-02 20:17:05 [RateCDR] => 1 ) [2025-02-02 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-02 17:17:05' and `end` < '2025-02-02 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-02 20:17:18] Production.INFO: count ==1341 [2025-02-02 20:17:18] Production.ERROR: pbx CDR StartTime 2025-02-02 17:17:05 - End Time 2025-02-02 20:17:05 [2025-02-02 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388069', 'tblTempUsageDetail_20' ) start [2025-02-02 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388069', 'tblTempUsageDetail_20' ) end [2025-02-02 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388069', 'tblTempVendorCDR_20' ) start [2025-02-02 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388069', 'tblTempVendorCDR_20' ) end [2025-02-02 20:17:18] Production.INFO: ProcessCDR(1,14388069,1,1,2) [2025-02-02 20:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388069', 'tblTempUsageDetail_20' ) start [2025-02-02 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388069', 'tblTempUsageDetail_20' ) end [2025-02-02 20:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:17:22] Production.INFO: ==6555== Releasing lock... [2025-02-02 20:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:17:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-02 20:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:18:06 [end_date_ymd] => 2025-02-02 20:18:06 [RateCDR] => 1 ) [2025-02-02 20:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 17:18:06' and `end` < '2025-02-02 20:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 20:18:20] Production.INFO: count ==1333 [2025-02-02 20:18:20] Production.ERROR: pbx CDR StartTime 2025-02-02 17:18:06 - End Time 2025-02-02 20:18:06 [2025-02-02 20:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388074', 'tblTempUsageDetail_20' ) start [2025-02-02 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388074', 'tblTempUsageDetail_20' ) end [2025-02-02 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388074', 'tblTempVendorCDR_20' ) start [2025-02-02 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388074', 'tblTempVendorCDR_20' ) end [2025-02-02 20:18:20] Production.INFO: ProcessCDR(1,14388074,1,1,2) [2025-02-02 20:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388074', 'tblTempUsageDetail_20' ) start [2025-02-02 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388074', 'tblTempUsageDetail_20' ) end [2025-02-02 20:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:18:25] Production.INFO: ==6646== Releasing lock... [2025-02-02 20:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:18:25] Production.INFO: 37.5 MB #Memory Used# [2025-02-02 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:19:05 [end_date_ymd] => 2025-02-02 20:19:05 [RateCDR] => 1 ) [2025-02-02 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-02 17:19:05' and `end` < '2025-02-02 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-02 20:19:17] Production.INFO: count ==1329 [2025-02-02 20:19:18] Production.ERROR: pbx CDR StartTime 2025-02-02 17:19:05 - End Time 2025-02-02 20:19:05 [2025-02-02 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388079', 'tblTempUsageDetail_20' ) start [2025-02-02 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388079', 'tblTempUsageDetail_20' ) end [2025-02-02 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388079', 'tblTempVendorCDR_20' ) start [2025-02-02 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388079', 'tblTempVendorCDR_20' ) end [2025-02-02 20:19:18] Production.INFO: ProcessCDR(1,14388079,1,1,2) [2025-02-02 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388079', 'tblTempUsageDetail_20' ) start [2025-02-02 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388079', 'tblTempUsageDetail_20' ) end [2025-02-02 20:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:19:21] Production.INFO: ==6727== Releasing lock... [2025-02-02 20:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:19:21] Production.INFO: 37.5 MB #Memory Used# [2025-02-02 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:20:06 [end_date_ymd] => 2025-02-02 20:20:06 [RateCDR] => 1 ) [2025-02-02 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-02 17:20:06' and `end` < '2025-02-02 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-02 20:20:19] Production.INFO: count ==1328 [2025-02-02 20:20:19] Production.ERROR: pbx CDR StartTime 2025-02-02 17:20:06 - End Time 2025-02-02 20:20:06 [2025-02-02 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388085', 'tblTempUsageDetail_20' ) start [2025-02-02 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388085', 'tblTempUsageDetail_20' ) end [2025-02-02 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388085', 'tblTempVendorCDR_20' ) start [2025-02-02 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388085', 'tblTempVendorCDR_20' ) end [2025-02-02 20:20:19] Production.INFO: ProcessCDR(1,14388085,1,1,2) [2025-02-02 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388085', 'tblTempUsageDetail_20' ) start [2025-02-02 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388085', 'tblTempUsageDetail_20' ) end [2025-02-02 20:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:20:24] Production.INFO: ==6811== Releasing lock... [2025-02-02 20:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:20:24] Production.INFO: 37.5 MB #Memory Used# [2025-02-02 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:21:05 [end_date_ymd] => 2025-02-02 20:21:05 [RateCDR] => 1 ) [2025-02-02 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-02 17:21:05' and `end` < '2025-02-02 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-02 20:21:18] Production.INFO: count ==1314 [2025-02-02 20:21:18] Production.ERROR: pbx CDR StartTime 2025-02-02 17:21:05 - End Time 2025-02-02 20:21:05 [2025-02-02 20:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388090', 'tblTempUsageDetail_20' ) start [2025-02-02 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388090', 'tblTempUsageDetail_20' ) end [2025-02-02 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388090', 'tblTempVendorCDR_20' ) start [2025-02-02 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388090', 'tblTempVendorCDR_20' ) end [2025-02-02 20:21:18] Production.INFO: ProcessCDR(1,14388090,1,1,2) [2025-02-02 20:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388090', 'tblTempUsageDetail_20' ) start [2025-02-02 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388090', 'tblTempUsageDetail_20' ) end [2025-02-02 20:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:21:22] Production.INFO: ==6891== Releasing lock... [2025-02-02 20:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:21:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-02 20:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:22:06 [end_date_ymd] => 2025-02-02 20:22:06 [RateCDR] => 1 ) [2025-02-02 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-02 17:22:06' and `end` < '2025-02-02 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-02 20:22:19] Production.INFO: count ==1309 [2025-02-02 20:22:19] Production.ERROR: pbx CDR StartTime 2025-02-02 17:22:06 - End Time 2025-02-02 20:22:06 [2025-02-02 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388095', 'tblTempUsageDetail_20' ) start [2025-02-02 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388095', 'tblTempUsageDetail_20' ) end [2025-02-02 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388095', 'tblTempVendorCDR_20' ) start [2025-02-02 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388095', 'tblTempVendorCDR_20' ) end [2025-02-02 20:22:19] Production.INFO: ProcessCDR(1,14388095,1,1,2) [2025-02-02 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388095', 'tblTempUsageDetail_20' ) start [2025-02-02 20:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388095', 'tblTempUsageDetail_20' ) end [2025-02-02 20:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:22:24] Production.INFO: ==6971== Releasing lock... [2025-02-02 20:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:22:24] Production.INFO: 37.5 MB #Memory Used# [2025-02-02 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:23:05 [end_date_ymd] => 2025-02-02 20:23:05 [RateCDR] => 1 ) [2025-02-02 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-02 17:23:05' and `end` < '2025-02-02 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-02 20:23:19] Production.INFO: count ==1308 [2025-02-02 20:23:19] Production.ERROR: pbx CDR StartTime 2025-02-02 17:23:05 - End Time 2025-02-02 20:23:05 [2025-02-02 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388100', 'tblTempUsageDetail_20' ) start [2025-02-02 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388100', 'tblTempUsageDetail_20' ) end [2025-02-02 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388100', 'tblTempVendorCDR_20' ) start [2025-02-02 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388100', 'tblTempVendorCDR_20' ) end [2025-02-02 20:23:19] Production.INFO: ProcessCDR(1,14388100,1,1,2) [2025-02-02 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388100', 'tblTempUsageDetail_20' ) start [2025-02-02 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388100', 'tblTempUsageDetail_20' ) end [2025-02-02 20:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:23:22] Production.INFO: ==7050== Releasing lock... [2025-02-02 20:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:23:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-02 20:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:24:06 [end_date_ymd] => 2025-02-02 20:24:06 [RateCDR] => 1 ) [2025-02-02 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-02 17:24:06' and `end` < '2025-02-02 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-02 20:24:19] Production.INFO: count ==1307 [2025-02-02 20:24:19] Production.ERROR: pbx CDR StartTime 2025-02-02 17:24:06 - End Time 2025-02-02 20:24:06 [2025-02-02 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388105', 'tblTempUsageDetail_20' ) start [2025-02-02 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388105', 'tblTempUsageDetail_20' ) end [2025-02-02 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388105', 'tblTempVendorCDR_20' ) start [2025-02-02 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388105', 'tblTempVendorCDR_20' ) end [2025-02-02 20:24:19] Production.INFO: ProcessCDR(1,14388105,1,1,2) [2025-02-02 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388105', 'tblTempUsageDetail_20' ) start [2025-02-02 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388105', 'tblTempUsageDetail_20' ) end [2025-02-02 20:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:24:22] Production.INFO: ==7128== Releasing lock... [2025-02-02 20:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:24:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-02 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:25:05 [end_date_ymd] => 2025-02-02 20:25:05 [RateCDR] => 1 ) [2025-02-02 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-02 17:25:05' and `end` < '2025-02-02 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-02 20:25:18] Production.INFO: count ==1306 [2025-02-02 20:25:18] Production.ERROR: pbx CDR StartTime 2025-02-02 17:25:05 - End Time 2025-02-02 20:25:05 [2025-02-02 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388110', 'tblTempUsageDetail_20' ) start [2025-02-02 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388110', 'tblTempUsageDetail_20' ) end [2025-02-02 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388110', 'tblTempVendorCDR_20' ) start [2025-02-02 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388110', 'tblTempVendorCDR_20' ) end [2025-02-02 20:25:18] Production.INFO: ProcessCDR(1,14388110,1,1,2) [2025-02-02 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388110', 'tblTempUsageDetail_20' ) start [2025-02-02 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388110', 'tblTempUsageDetail_20' ) end [2025-02-02 20:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:25:22] Production.INFO: ==7211== Releasing lock... [2025-02-02 20:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:25:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:26:05 [end_date_ymd] => 2025-02-02 20:26:05 [RateCDR] => 1 ) [2025-02-02 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-02 17:26:05' and `end` < '2025-02-02 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-02 20:26:18] Production.INFO: count ==1305 [2025-02-02 20:26:19] Production.ERROR: pbx CDR StartTime 2025-02-02 17:26:05 - End Time 2025-02-02 20:26:05 [2025-02-02 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388115', 'tblTempUsageDetail_20' ) start [2025-02-02 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388115', 'tblTempUsageDetail_20' ) end [2025-02-02 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388115', 'tblTempVendorCDR_20' ) start [2025-02-02 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388115', 'tblTempVendorCDR_20' ) end [2025-02-02 20:26:19] Production.INFO: ProcessCDR(1,14388115,1,1,2) [2025-02-02 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388115', 'tblTempUsageDetail_20' ) start [2025-02-02 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388115', 'tblTempUsageDetail_20' ) end [2025-02-02 20:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:26:22] Production.INFO: ==7329== Releasing lock... [2025-02-02 20:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:26:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:27:05 [end_date_ymd] => 2025-02-02 20:27:05 [RateCDR] => 1 ) [2025-02-02 20:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 17:27:05' and `end` < '2025-02-02 20:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 20:27:18] Production.INFO: count ==1301 [2025-02-02 20:27:18] Production.ERROR: pbx CDR StartTime 2025-02-02 17:27:05 - End Time 2025-02-02 20:27:05 [2025-02-02 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388120', 'tblTempUsageDetail_20' ) start [2025-02-02 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388120', 'tblTempUsageDetail_20' ) end [2025-02-02 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388120', 'tblTempVendorCDR_20' ) start [2025-02-02 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388120', 'tblTempVendorCDR_20' ) end [2025-02-02 20:27:18] Production.INFO: ProcessCDR(1,14388120,1,1,2) [2025-02-02 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388120', 'tblTempUsageDetail_20' ) start [2025-02-02 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388120', 'tblTempUsageDetail_20' ) end [2025-02-02 20:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:27:21] Production.INFO: ==7405== Releasing lock... [2025-02-02 20:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:27:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:28:05 [end_date_ymd] => 2025-02-02 20:28:05 [RateCDR] => 1 ) [2025-02-02 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-02 17:28:05' and `end` < '2025-02-02 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-02 20:28:18] Production.INFO: count ==1306 [2025-02-02 20:28:18] Production.ERROR: pbx CDR StartTime 2025-02-02 17:28:05 - End Time 2025-02-02 20:28:05 [2025-02-02 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388125', 'tblTempUsageDetail_20' ) start [2025-02-02 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388125', 'tblTempUsageDetail_20' ) end [2025-02-02 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388125', 'tblTempVendorCDR_20' ) start [2025-02-02 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388125', 'tblTempVendorCDR_20' ) end [2025-02-02 20:28:18] Production.INFO: ProcessCDR(1,14388125,1,1,2) [2025-02-02 20:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388125', 'tblTempUsageDetail_20' ) start [2025-02-02 20:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388125', 'tblTempUsageDetail_20' ) end [2025-02-02 20:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:28:24] Production.INFO: ==7482== Releasing lock... [2025-02-02 20:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:28:24] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 20:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:29:06 [end_date_ymd] => 2025-02-02 20:29:06 [RateCDR] => 1 ) [2025-02-02 20:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 17:29:06' and `end` < '2025-02-02 20:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 20:29:19] Production.INFO: count ==1306 [2025-02-02 20:29:19] Production.ERROR: pbx CDR StartTime 2025-02-02 17:29:06 - End Time 2025-02-02 20:29:06 [2025-02-02 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388130', 'tblTempUsageDetail_20' ) start [2025-02-02 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388130', 'tblTempUsageDetail_20' ) end [2025-02-02 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388130', 'tblTempVendorCDR_20' ) start [2025-02-02 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388130', 'tblTempVendorCDR_20' ) end [2025-02-02 20:29:19] Production.INFO: ProcessCDR(1,14388130,1,1,2) [2025-02-02 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388130', 'tblTempUsageDetail_20' ) start [2025-02-02 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388130', 'tblTempUsageDetail_20' ) end [2025-02-02 20:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:29:22] Production.INFO: ==7560== Releasing lock... [2025-02-02 20:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:29:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:30:06 [end_date_ymd] => 2025-02-02 20:30:06 [RateCDR] => 1 ) [2025-02-02 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-02 17:30:06' and `end` < '2025-02-02 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-02 20:30:19] Production.INFO: count ==1306 [2025-02-02 20:30:19] Production.ERROR: pbx CDR StartTime 2025-02-02 17:30:06 - End Time 2025-02-02 20:30:06 [2025-02-02 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388136', 'tblTempUsageDetail_20' ) start [2025-02-02 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388136', 'tblTempUsageDetail_20' ) end [2025-02-02 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388136', 'tblTempVendorCDR_20' ) start [2025-02-02 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388136', 'tblTempVendorCDR_20' ) end [2025-02-02 20:30:19] Production.INFO: ProcessCDR(1,14388136,1,1,2) [2025-02-02 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388136', 'tblTempUsageDetail_20' ) start [2025-02-02 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388136', 'tblTempUsageDetail_20' ) end [2025-02-02 20:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:30:22] Production.INFO: ==7650== Releasing lock... [2025-02-02 20:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:30:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 20:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:31:06 [end_date_ymd] => 2025-02-02 20:31:06 [RateCDR] => 1 ) [2025-02-02 20:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 17:31:06' and `end` < '2025-02-02 20:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 20:31:19] Production.INFO: count ==1293 [2025-02-02 20:31:19] Production.ERROR: pbx CDR StartTime 2025-02-02 17:31:06 - End Time 2025-02-02 20:31:06 [2025-02-02 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388141', 'tblTempUsageDetail_20' ) start [2025-02-02 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388141', 'tblTempUsageDetail_20' ) end [2025-02-02 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388141', 'tblTempVendorCDR_20' ) start [2025-02-02 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388141', 'tblTempVendorCDR_20' ) end [2025-02-02 20:31:19] Production.INFO: ProcessCDR(1,14388141,1,1,2) [2025-02-02 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388141', 'tblTempUsageDetail_20' ) start [2025-02-02 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388141', 'tblTempUsageDetail_20' ) end [2025-02-02 20:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:31:22] Production.INFO: ==7732== Releasing lock... [2025-02-02 20:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:31:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:32:05 [end_date_ymd] => 2025-02-02 20:32:05 [RateCDR] => 1 ) [2025-02-02 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-02 17:32:05' and `end` < '2025-02-02 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-02 20:32:19] Production.INFO: count ==1291 [2025-02-02 20:32:19] Production.ERROR: pbx CDR StartTime 2025-02-02 17:32:05 - End Time 2025-02-02 20:32:05 [2025-02-02 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388146', 'tblTempUsageDetail_20' ) start [2025-02-02 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388146', 'tblTempUsageDetail_20' ) end [2025-02-02 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388146', 'tblTempVendorCDR_20' ) start [2025-02-02 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388146', 'tblTempVendorCDR_20' ) end [2025-02-02 20:32:19] Production.INFO: ProcessCDR(1,14388146,1,1,2) [2025-02-02 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388146', 'tblTempUsageDetail_20' ) start [2025-02-02 20:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388146', 'tblTempUsageDetail_20' ) end [2025-02-02 20:32:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:32:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:32:24] Production.INFO: ==7808== Releasing lock... [2025-02-02 20:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:32:24] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 20:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:33:06 [end_date_ymd] => 2025-02-02 20:33:06 [RateCDR] => 1 ) [2025-02-02 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-02 17:33:06' and `end` < '2025-02-02 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-02 20:33:19] Production.INFO: count ==1294 [2025-02-02 20:33:19] Production.ERROR: pbx CDR StartTime 2025-02-02 17:33:06 - End Time 2025-02-02 20:33:06 [2025-02-02 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388151', 'tblTempUsageDetail_20' ) start [2025-02-02 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388151', 'tblTempUsageDetail_20' ) end [2025-02-02 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388151', 'tblTempVendorCDR_20' ) start [2025-02-02 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388151', 'tblTempVendorCDR_20' ) end [2025-02-02 20:33:19] Production.INFO: ProcessCDR(1,14388151,1,1,2) [2025-02-02 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388151', 'tblTempUsageDetail_20' ) start [2025-02-02 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388151', 'tblTempUsageDetail_20' ) end [2025-02-02 20:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:33:22] Production.INFO: ==7887== Releasing lock... [2025-02-02 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:33:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:34:05 [end_date_ymd] => 2025-02-02 20:34:05 [RateCDR] => 1 ) [2025-02-02 20:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 17:34:05' and `end` < '2025-02-02 20:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 20:34:18] Production.INFO: count ==1295 [2025-02-02 20:34:18] Production.ERROR: pbx CDR StartTime 2025-02-02 17:34:05 - End Time 2025-02-02 20:34:05 [2025-02-02 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388156', 'tblTempUsageDetail_20' ) start [2025-02-02 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388156', 'tblTempUsageDetail_20' ) end [2025-02-02 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388156', 'tblTempVendorCDR_20' ) start [2025-02-02 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388156', 'tblTempVendorCDR_20' ) end [2025-02-02 20:34:18] Production.INFO: ProcessCDR(1,14388156,1,1,2) [2025-02-02 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388156', 'tblTempUsageDetail_20' ) start [2025-02-02 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388156', 'tblTempUsageDetail_20' ) end [2025-02-02 20:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:34:23] Production.INFO: ==7966== Releasing lock... [2025-02-02 20:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:34:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 20:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:35:06 [end_date_ymd] => 2025-02-02 20:35:06 [RateCDR] => 1 ) [2025-02-02 20:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 17:35:06' and `end` < '2025-02-02 20:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 20:35:19] Production.INFO: count ==1292 [2025-02-02 20:35:19] Production.ERROR: pbx CDR StartTime 2025-02-02 17:35:06 - End Time 2025-02-02 20:35:06 [2025-02-02 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388161', 'tblTempUsageDetail_20' ) start [2025-02-02 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388161', 'tblTempUsageDetail_20' ) end [2025-02-02 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388161', 'tblTempVendorCDR_20' ) start [2025-02-02 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388161', 'tblTempVendorCDR_20' ) end [2025-02-02 20:35:19] Production.INFO: ProcessCDR(1,14388161,1,1,2) [2025-02-02 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388161', 'tblTempUsageDetail_20' ) start [2025-02-02 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388161', 'tblTempUsageDetail_20' ) end [2025-02-02 20:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:35:22] Production.INFO: ==8046== Releasing lock... [2025-02-02 20:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:35:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:36:05 [end_date_ymd] => 2025-02-02 20:36:05 [RateCDR] => 1 ) [2025-02-02 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-02 17:36:05' and `end` < '2025-02-02 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-02 20:36:18] Production.INFO: count ==1293 [2025-02-02 20:36:18] Production.ERROR: pbx CDR StartTime 2025-02-02 17:36:05 - End Time 2025-02-02 20:36:05 [2025-02-02 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388166', 'tblTempUsageDetail_20' ) start [2025-02-02 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388166', 'tblTempUsageDetail_20' ) end [2025-02-02 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388166', 'tblTempVendorCDR_20' ) start [2025-02-02 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388166', 'tblTempVendorCDR_20' ) end [2025-02-02 20:36:18] Production.INFO: ProcessCDR(1,14388166,1,1,2) [2025-02-02 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388166', 'tblTempUsageDetail_20' ) start [2025-02-02 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388166', 'tblTempUsageDetail_20' ) end [2025-02-02 20:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:36:22] Production.INFO: ==8125== Releasing lock... [2025-02-02 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:36:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:37:05 [end_date_ymd] => 2025-02-02 20:37:05 [RateCDR] => 1 ) [2025-02-02 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-02 17:37:05' and `end` < '2025-02-02 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-02 20:37:18] Production.INFO: count ==1292 [2025-02-02 20:37:18] Production.ERROR: pbx CDR StartTime 2025-02-02 17:37:05 - End Time 2025-02-02 20:37:05 [2025-02-02 20:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388171', 'tblTempUsageDetail_20' ) start [2025-02-02 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388171', 'tblTempUsageDetail_20' ) end [2025-02-02 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388171', 'tblTempVendorCDR_20' ) start [2025-02-02 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388171', 'tblTempVendorCDR_20' ) end [2025-02-02 20:37:18] Production.INFO: ProcessCDR(1,14388171,1,1,2) [2025-02-02 20:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388171', 'tblTempUsageDetail_20' ) start [2025-02-02 20:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388171', 'tblTempUsageDetail_20' ) end [2025-02-02 20:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:37:21] Production.INFO: ==8204== Releasing lock... [2025-02-02 20:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:37:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:38:05 [end_date_ymd] => 2025-02-02 20:38:05 [RateCDR] => 1 ) [2025-02-02 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-02 17:38:05' and `end` < '2025-02-02 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-02 20:38:19] Production.INFO: count ==1292 [2025-02-02 20:38:19] Production.ERROR: pbx CDR StartTime 2025-02-02 17:38:05 - End Time 2025-02-02 20:38:05 [2025-02-02 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388176', 'tblTempUsageDetail_20' ) start [2025-02-02 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388176', 'tblTempUsageDetail_20' ) end [2025-02-02 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388176', 'tblTempVendorCDR_20' ) start [2025-02-02 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388176', 'tblTempVendorCDR_20' ) end [2025-02-02 20:38:19] Production.INFO: ProcessCDR(1,14388176,1,1,2) [2025-02-02 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388176', 'tblTempUsageDetail_20' ) start [2025-02-02 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388176', 'tblTempUsageDetail_20' ) end [2025-02-02 20:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:38:22] Production.INFO: ==8286== Releasing lock... [2025-02-02 20:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:38:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:39:05 [end_date_ymd] => 2025-02-02 20:39:05 [RateCDR] => 1 ) [2025-02-02 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-02 17:39:05' and `end` < '2025-02-02 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-02 20:39:18] Production.INFO: count ==1288 [2025-02-02 20:39:18] Production.ERROR: pbx CDR StartTime 2025-02-02 17:39:05 - End Time 2025-02-02 20:39:05 [2025-02-02 20:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388181', 'tblTempUsageDetail_20' ) start [2025-02-02 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388181', 'tblTempUsageDetail_20' ) end [2025-02-02 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388181', 'tblTempVendorCDR_20' ) start [2025-02-02 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388181', 'tblTempVendorCDR_20' ) end [2025-02-02 20:39:19] Production.INFO: ProcessCDR(1,14388181,1,1,2) [2025-02-02 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388181', 'tblTempUsageDetail_20' ) start [2025-02-02 20:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388181', 'tblTempUsageDetail_20' ) end [2025-02-02 20:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:39:21] Production.INFO: ==8368== Releasing lock... [2025-02-02 20:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:39:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:40:06 [end_date_ymd] => 2025-02-02 20:40:06 [RateCDR] => 1 ) [2025-02-02 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-02 17:40:06' and `end` < '2025-02-02 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-02 20:40:19] Production.INFO: count ==1287 [2025-02-02 20:40:19] Production.ERROR: pbx CDR StartTime 2025-02-02 17:40:06 - End Time 2025-02-02 20:40:06 [2025-02-02 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388187', 'tblTempUsageDetail_20' ) start [2025-02-02 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388187', 'tblTempUsageDetail_20' ) end [2025-02-02 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388187', 'tblTempVendorCDR_20' ) start [2025-02-02 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388187', 'tblTempVendorCDR_20' ) end [2025-02-02 20:40:19] Production.INFO: ProcessCDR(1,14388187,1,1,2) [2025-02-02 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388187', 'tblTempUsageDetail_20' ) start [2025-02-02 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388187', 'tblTempUsageDetail_20' ) end [2025-02-02 20:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:40:22] Production.INFO: ==8447== Releasing lock... [2025-02-02 20:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:40:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-02 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:41:05 [end_date_ymd] => 2025-02-02 20:41:05 [RateCDR] => 1 ) [2025-02-02 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-02 17:41:05' and `end` < '2025-02-02 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-02 20:41:18] Production.INFO: count ==1269 [2025-02-02 20:41:18] Production.ERROR: pbx CDR StartTime 2025-02-02 17:41:05 - End Time 2025-02-02 20:41:05 [2025-02-02 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388192', 'tblTempUsageDetail_20' ) start [2025-02-02 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388192', 'tblTempUsageDetail_20' ) end [2025-02-02 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388192', 'tblTempVendorCDR_20' ) start [2025-02-02 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388192', 'tblTempVendorCDR_20' ) end [2025-02-02 20:41:18] Production.INFO: ProcessCDR(1,14388192,1,1,2) [2025-02-02 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388192', 'tblTempUsageDetail_20' ) start [2025-02-02 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388192', 'tblTempUsageDetail_20' ) end [2025-02-02 20:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:41:23] Production.INFO: ==8528== Releasing lock... [2025-02-02 20:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:41:23] Production.INFO: 37 MB #Memory Used# [2025-02-02 20:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:42:06 [end_date_ymd] => 2025-02-02 20:42:06 [RateCDR] => 1 ) [2025-02-02 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-02 17:42:06' and `end` < '2025-02-02 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-02 20:42:19] Production.INFO: count ==1270 [2025-02-02 20:42:19] Production.ERROR: pbx CDR StartTime 2025-02-02 17:42:06 - End Time 2025-02-02 20:42:06 [2025-02-02 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388197', 'tblTempUsageDetail_20' ) start [2025-02-02 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388197', 'tblTempUsageDetail_20' ) end [2025-02-02 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388197', 'tblTempVendorCDR_20' ) start [2025-02-02 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388197', 'tblTempVendorCDR_20' ) end [2025-02-02 20:42:19] Production.INFO: ProcessCDR(1,14388197,1,1,2) [2025-02-02 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388197', 'tblTempUsageDetail_20' ) start [2025-02-02 20:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388197', 'tblTempUsageDetail_20' ) end [2025-02-02 20:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:42:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:42:24] Production.INFO: ==8645== Releasing lock... [2025-02-02 20:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:42:24] Production.INFO: 37 MB #Memory Used# [2025-02-02 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:43:05 [end_date_ymd] => 2025-02-02 20:43:05 [RateCDR] => 1 ) [2025-02-02 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-02 17:43:05' and `end` < '2025-02-02 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-02 20:43:18] Production.INFO: count ==1270 [2025-02-02 20:43:18] Production.ERROR: pbx CDR StartTime 2025-02-02 17:43:05 - End Time 2025-02-02 20:43:05 [2025-02-02 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388202', 'tblTempUsageDetail_20' ) start [2025-02-02 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388202', 'tblTempUsageDetail_20' ) end [2025-02-02 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388202', 'tblTempVendorCDR_20' ) start [2025-02-02 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388202', 'tblTempVendorCDR_20' ) end [2025-02-02 20:43:18] Production.INFO: ProcessCDR(1,14388202,1,1,2) [2025-02-02 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388202', 'tblTempUsageDetail_20' ) start [2025-02-02 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388202', 'tblTempUsageDetail_20' ) end [2025-02-02 20:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:43:21] Production.INFO: ==8722== Releasing lock... [2025-02-02 20:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:43:21] Production.INFO: 37 MB #Memory Used# [2025-02-02 20:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:44:06 [end_date_ymd] => 2025-02-02 20:44:06 [RateCDR] => 1 ) [2025-02-02 20:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 17:44:06' and `end` < '2025-02-02 20:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 20:44:20] Production.INFO: count ==1267 [2025-02-02 20:44:20] Production.ERROR: pbx CDR StartTime 2025-02-02 17:44:06 - End Time 2025-02-02 20:44:06 [2025-02-02 20:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388207', 'tblTempUsageDetail_20' ) start [2025-02-02 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388207', 'tblTempUsageDetail_20' ) end [2025-02-02 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388207', 'tblTempVendorCDR_20' ) start [2025-02-02 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388207', 'tblTempVendorCDR_20' ) end [2025-02-02 20:44:20] Production.INFO: ProcessCDR(1,14388207,1,1,2) [2025-02-02 20:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388207', 'tblTempUsageDetail_20' ) start [2025-02-02 20:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388207', 'tblTempUsageDetail_20' ) end [2025-02-02 20:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:44:24] Production.INFO: ==8804== Releasing lock... [2025-02-02 20:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:44:24] Production.INFO: 37 MB #Memory Used# [2025-02-02 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:45:05 [end_date_ymd] => 2025-02-02 20:45:05 [RateCDR] => 1 ) [2025-02-02 20:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 17:45:05' and `end` < '2025-02-02 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-02 20:45:18] Production.INFO: count ==1266 [2025-02-02 20:45:18] Production.ERROR: pbx CDR StartTime 2025-02-02 17:45:05 - End Time 2025-02-02 20:45:05 [2025-02-02 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388212', 'tblTempUsageDetail_20' ) start [2025-02-02 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388212', 'tblTempUsageDetail_20' ) end [2025-02-02 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388212', 'tblTempVendorCDR_20' ) start [2025-02-02 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388212', 'tblTempVendorCDR_20' ) end [2025-02-02 20:45:18] Production.INFO: ProcessCDR(1,14388212,1,1,2) [2025-02-02 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388212', 'tblTempUsageDetail_20' ) start [2025-02-02 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388212', 'tblTempUsageDetail_20' ) end [2025-02-02 20:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:45:21] Production.INFO: ==8881== Releasing lock... [2025-02-02 20:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:45:21] Production.INFO: 37 MB #Memory Used# [2025-02-02 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:46:05 [end_date_ymd] => 2025-02-02 20:46:05 [RateCDR] => 1 ) [2025-02-02 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-02 17:46:05' and `end` < '2025-02-02 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-02 20:46:18] Production.INFO: count ==1266 [2025-02-02 20:46:18] Production.ERROR: pbx CDR StartTime 2025-02-02 17:46:05 - End Time 2025-02-02 20:46:05 [2025-02-02 20:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388217', 'tblTempUsageDetail_20' ) start [2025-02-02 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388217', 'tblTempUsageDetail_20' ) end [2025-02-02 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388217', 'tblTempVendorCDR_20' ) start [2025-02-02 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388217', 'tblTempVendorCDR_20' ) end [2025-02-02 20:46:18] Production.INFO: ProcessCDR(1,14388217,1,1,2) [2025-02-02 20:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388217', 'tblTempUsageDetail_20' ) start [2025-02-02 20:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388217', 'tblTempUsageDetail_20' ) end [2025-02-02 20:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:46:21] Production.INFO: ==8960== Releasing lock... [2025-02-02 20:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:46:21] Production.INFO: 37 MB #Memory Used# [2025-02-02 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:47:05 [end_date_ymd] => 2025-02-02 20:47:05 [RateCDR] => 1 ) [2025-02-02 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-02 17:47:05' and `end` < '2025-02-02 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-02 20:47:18] Production.INFO: count ==1265 [2025-02-02 20:47:18] Production.ERROR: pbx CDR StartTime 2025-02-02 17:47:05 - End Time 2025-02-02 20:47:05 [2025-02-02 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388222', 'tblTempUsageDetail_20' ) start [2025-02-02 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388222', 'tblTempUsageDetail_20' ) end [2025-02-02 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388222', 'tblTempVendorCDR_20' ) start [2025-02-02 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388222', 'tblTempVendorCDR_20' ) end [2025-02-02 20:47:18] Production.INFO: ProcessCDR(1,14388222,1,1,2) [2025-02-02 20:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388222', 'tblTempUsageDetail_20' ) start [2025-02-02 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388222', 'tblTempUsageDetail_20' ) end [2025-02-02 20:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:47:21] Production.INFO: ==9037== Releasing lock... [2025-02-02 20:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:47:21] Production.INFO: 37 MB #Memory Used# [2025-02-02 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:48:05 [end_date_ymd] => 2025-02-02 20:48:05 [RateCDR] => 1 ) [2025-02-02 20:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 17:48:05' and `end` < '2025-02-02 20:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 20:48:19] Production.INFO: count ==1265 [2025-02-02 20:48:19] Production.ERROR: pbx CDR StartTime 2025-02-02 17:48:05 - End Time 2025-02-02 20:48:05 [2025-02-02 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388227', 'tblTempUsageDetail_20' ) start [2025-02-02 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388227', 'tblTempUsageDetail_20' ) end [2025-02-02 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388227', 'tblTempVendorCDR_20' ) start [2025-02-02 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388227', 'tblTempVendorCDR_20' ) end [2025-02-02 20:48:19] Production.INFO: ProcessCDR(1,14388227,1,1,2) [2025-02-02 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388227', 'tblTempUsageDetail_20' ) start [2025-02-02 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388227', 'tblTempUsageDetail_20' ) end [2025-02-02 20:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:48:22] Production.INFO: ==9115== Releasing lock... [2025-02-02 20:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:48:22] Production.INFO: 37 MB #Memory Used# [2025-02-02 20:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:49:04 [end_date_ymd] => 2025-02-02 20:49:04 [RateCDR] => 1 ) [2025-02-02 20: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-02 17:49:04' and `end` < '2025-02-02 20: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-02 20:49:17] Production.INFO: count ==1266 [2025-02-02 20:49:17] Production.ERROR: pbx CDR StartTime 2025-02-02 17:49:04 - End Time 2025-02-02 20:49:04 [2025-02-02 20:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388228', 'tblTempUsageDetail_20' ) start [2025-02-02 20:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388228', 'tblTempUsageDetail_20' ) end [2025-02-02 20:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388228', 'tblTempVendorCDR_20' ) start [2025-02-02 20:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388228', 'tblTempVendorCDR_20' ) end [2025-02-02 20:49:17] Production.INFO: ProcessCDR(1,14388228,1,1,2) [2025-02-02 20:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388228', 'tblTempUsageDetail_20' ) start [2025-02-02 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388228', 'tblTempUsageDetail_20' ) end [2025-02-02 20:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:49:22] Production.INFO: ==9191== Releasing lock... [2025-02-02 20:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:49:22] Production.INFO: 37 MB #Memory Used# [2025-02-02 20:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:50:05 [end_date_ymd] => 2025-02-02 20:50:05 [RateCDR] => 1 ) [2025-02-02 20:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 17:50:05' and `end` < '2025-02-02 20:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 20:50:18] Production.INFO: count ==1264 [2025-02-02 20:50:18] Production.ERROR: pbx CDR StartTime 2025-02-02 17:50:05 - End Time 2025-02-02 20:50:05 [2025-02-02 20:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388238', 'tblTempUsageDetail_20' ) start [2025-02-02 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388238', 'tblTempUsageDetail_20' ) end [2025-02-02 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388238', 'tblTempVendorCDR_20' ) start [2025-02-02 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388238', 'tblTempVendorCDR_20' ) end [2025-02-02 20:50:18] Production.INFO: ProcessCDR(1,14388238,1,1,2) [2025-02-02 20:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388238', 'tblTempUsageDetail_20' ) start [2025-02-02 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388238', 'tblTempUsageDetail_20' ) end [2025-02-02 20:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:50:22] Production.INFO: ==9275== Releasing lock... [2025-02-02 20:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:50:22] Production.INFO: 37 MB #Memory Used# [2025-02-02 20:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:51:04 [end_date_ymd] => 2025-02-02 20:51:04 [RateCDR] => 1 ) [2025-02-02 20:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 17:51:04' and `end` < '2025-02-02 20:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 20:51:18] Production.INFO: count ==1237 [2025-02-02 20:51:18] Production.ERROR: pbx CDR StartTime 2025-02-02 17:51:04 - End Time 2025-02-02 20:51:04 [2025-02-02 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388243', 'tblTempUsageDetail_20' ) start [2025-02-02 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388243', 'tblTempUsageDetail_20' ) end [2025-02-02 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388243', 'tblTempVendorCDR_20' ) start [2025-02-02 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388243', 'tblTempVendorCDR_20' ) end [2025-02-02 20:51:18] Production.INFO: ProcessCDR(1,14388243,1,1,2) [2025-02-02 20:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388243', 'tblTempUsageDetail_20' ) start [2025-02-02 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388243', 'tblTempUsageDetail_20' ) end [2025-02-02 20:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:51:21] Production.INFO: ==9354== Releasing lock... [2025-02-02 20:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:51:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:52:05 [end_date_ymd] => 2025-02-02 20:52:05 [RateCDR] => 1 ) [2025-02-02 20:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 17:52:05' and `end` < '2025-02-02 20:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 20:52:18] Production.INFO: count ==1235 [2025-02-02 20:52:18] Production.ERROR: pbx CDR StartTime 2025-02-02 17:52:05 - End Time 2025-02-02 20:52:05 [2025-02-02 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388248', 'tblTempUsageDetail_20' ) start [2025-02-02 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388248', 'tblTempUsageDetail_20' ) end [2025-02-02 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388248', 'tblTempVendorCDR_20' ) start [2025-02-02 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388248', 'tblTempVendorCDR_20' ) end [2025-02-02 20:52:18] Production.INFO: ProcessCDR(1,14388248,1,1,2) [2025-02-02 20:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388248', 'tblTempUsageDetail_20' ) start [2025-02-02 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388248', 'tblTempUsageDetail_20' ) end [2025-02-02 20:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:52:21] Production.INFO: ==9431== Releasing lock... [2025-02-02 20:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:52:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:53:05 [end_date_ymd] => 2025-02-02 20:53:05 [RateCDR] => 1 ) [2025-02-02 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-02 17:53:05' and `end` < '2025-02-02 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-02 20:53:19] Production.INFO: count ==1232 [2025-02-02 20:53:19] Production.ERROR: pbx CDR StartTime 2025-02-02 17:53:05 - End Time 2025-02-02 20:53:05 [2025-02-02 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388252', 'tblTempUsageDetail_20' ) start [2025-02-02 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388252', 'tblTempUsageDetail_20' ) end [2025-02-02 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388252', 'tblTempVendorCDR_20' ) start [2025-02-02 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388252', 'tblTempVendorCDR_20' ) end [2025-02-02 20:53:19] Production.INFO: ProcessCDR(1,14388252,1,1,2) [2025-02-02 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388252', 'tblTempUsageDetail_20' ) start [2025-02-02 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388252', 'tblTempUsageDetail_20' ) end [2025-02-02 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:53:22] Production.INFO: ==9509== Releasing lock... [2025-02-02 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:53:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:54:05 [end_date_ymd] => 2025-02-02 20:54:05 [RateCDR] => 1 ) [2025-02-02 20:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 17:54:05' and `end` < '2025-02-02 20:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 20:54:18] Production.INFO: count ==1234 [2025-02-02 20:54:18] Production.ERROR: pbx CDR StartTime 2025-02-02 17:54:05 - End Time 2025-02-02 20:54:05 [2025-02-02 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388258', 'tblTempUsageDetail_20' ) start [2025-02-02 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388258', 'tblTempUsageDetail_20' ) end [2025-02-02 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388258', 'tblTempVendorCDR_20' ) start [2025-02-02 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388258', 'tblTempVendorCDR_20' ) end [2025-02-02 20:54:18] Production.INFO: ProcessCDR(1,14388258,1,1,2) [2025-02-02 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388258', 'tblTempUsageDetail_20' ) start [2025-02-02 20:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388258', 'tblTempUsageDetail_20' ) end [2025-02-02 20:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:54:23] Production.INFO: ==9589== Releasing lock... [2025-02-02 20:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:54:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:55:05 [end_date_ymd] => 2025-02-02 20:55:05 [RateCDR] => 1 ) [2025-02-02 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-02 17:55:05' and `end` < '2025-02-02 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-02 20:55:18] Production.INFO: count ==1232 [2025-02-02 20:55:18] Production.ERROR: pbx CDR StartTime 2025-02-02 17:55:05 - End Time 2025-02-02 20:55:05 [2025-02-02 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388263', 'tblTempUsageDetail_20' ) start [2025-02-02 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388263', 'tblTempUsageDetail_20' ) end [2025-02-02 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388263', 'tblTempVendorCDR_20' ) start [2025-02-02 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388263', 'tblTempVendorCDR_20' ) end [2025-02-02 20:55:18] Production.INFO: ProcessCDR(1,14388263,1,1,2) [2025-02-02 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388263', 'tblTempUsageDetail_20' ) start [2025-02-02 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388263', 'tblTempUsageDetail_20' ) end [2025-02-02 20:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:55:22] Production.INFO: ==9671== Releasing lock... [2025-02-02 20:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:55:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:56:05 [end_date_ymd] => 2025-02-02 20:56:05 [RateCDR] => 1 ) [2025-02-02 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-02 17:56:05' and `end` < '2025-02-02 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-02 20:56:18] Production.INFO: count ==1231 [2025-02-02 20:56:18] Production.ERROR: pbx CDR StartTime 2025-02-02 17:56:05 - End Time 2025-02-02 20:56:05 [2025-02-02 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388268', 'tblTempUsageDetail_20' ) start [2025-02-02 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388268', 'tblTempUsageDetail_20' ) end [2025-02-02 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388268', 'tblTempVendorCDR_20' ) start [2025-02-02 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388268', 'tblTempVendorCDR_20' ) end [2025-02-02 20:56:18] Production.INFO: ProcessCDR(1,14388268,1,1,2) [2025-02-02 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388268', 'tblTempUsageDetail_20' ) start [2025-02-02 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388268', 'tblTempUsageDetail_20' ) end [2025-02-02 20:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:56:21] Production.INFO: ==9748== Releasing lock... [2025-02-02 20:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:56:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:57:05 [end_date_ymd] => 2025-02-02 20:57:05 [RateCDR] => 1 ) [2025-02-02 20:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 17:57:05' and `end` < '2025-02-02 20:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 20:57:19] Production.INFO: count ==1231 [2025-02-02 20:57:19] Production.ERROR: pbx CDR StartTime 2025-02-02 17:57:05 - End Time 2025-02-02 20:57:05 [2025-02-02 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388273', 'tblTempUsageDetail_20' ) start [2025-02-02 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388273', 'tblTempUsageDetail_20' ) end [2025-02-02 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388273', 'tblTempVendorCDR_20' ) start [2025-02-02 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388273', 'tblTempVendorCDR_20' ) end [2025-02-02 20:57:19] Production.INFO: ProcessCDR(1,14388273,1,1,2) [2025-02-02 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388273', 'tblTempUsageDetail_20' ) start [2025-02-02 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388273', 'tblTempUsageDetail_20' ) end [2025-02-02 20:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:57:22] Production.INFO: ==9866== Releasing lock... [2025-02-02 20:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:57:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:58:05 [end_date_ymd] => 2025-02-02 20:58:05 [RateCDR] => 1 ) [2025-02-02 20:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 17:58:05' and `end` < '2025-02-02 20:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 20:58:17] Production.INFO: count ==1231 [2025-02-02 20:58:18] Production.ERROR: pbx CDR StartTime 2025-02-02 17:58:05 - End Time 2025-02-02 20:58:05 [2025-02-02 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388278', 'tblTempUsageDetail_20' ) start [2025-02-02 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388278', 'tblTempUsageDetail_20' ) end [2025-02-02 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388278', 'tblTempVendorCDR_20' ) start [2025-02-02 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388278', 'tblTempVendorCDR_20' ) end [2025-02-02 20:58:18] Production.INFO: ProcessCDR(1,14388278,1,1,2) [2025-02-02 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388278', 'tblTempUsageDetail_20' ) start [2025-02-02 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388278', 'tblTempUsageDetail_20' ) end [2025-02-02 20:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:58:21] Production.INFO: ==9941== Releasing lock... [2025-02-02 20:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:58:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 20:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 17:59:06 [end_date_ymd] => 2025-02-02 20:59:06 [RateCDR] => 1 ) [2025-02-02 20:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 17:59:06' and `end` < '2025-02-02 20:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 20:59:19] Production.INFO: count ==1228 [2025-02-02 20:59:19] Production.ERROR: pbx CDR StartTime 2025-02-02 17:59:06 - End Time 2025-02-02 20:59:06 [2025-02-02 20:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388283', 'tblTempUsageDetail_20' ) start [2025-02-02 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388283', 'tblTempUsageDetail_20' ) end [2025-02-02 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388283', 'tblTempVendorCDR_20' ) start [2025-02-02 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388283', 'tblTempVendorCDR_20' ) end [2025-02-02 20:59:19] Production.INFO: ProcessCDR(1,14388283,1,1,2) [2025-02-02 20:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 20:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388283', 'tblTempUsageDetail_20' ) start [2025-02-02 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388283', 'tblTempUsageDetail_20' ) end [2025-02-02 20:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 20:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 20:59:22] Production.INFO: ==10019== Releasing lock... [2025-02-02 20:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 20:59:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 21:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:00:05 [end_date_ymd] => 2025-02-02 21:00:05 [RateCDR] => 1 ) [2025-02-02 21:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 18:00:05' and `end` < '2025-02-02 21:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 21:00:18] Production.INFO: count ==1228 [2025-02-02 21:00:18] Production.ERROR: pbx CDR StartTime 2025-02-02 18:00:05 - End Time 2025-02-02 21:00:05 [2025-02-02 21:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388289', 'tblTempUsageDetail_20' ) start [2025-02-02 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388289', 'tblTempUsageDetail_20' ) end [2025-02-02 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388289', 'tblTempVendorCDR_20' ) start [2025-02-02 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388289', 'tblTempVendorCDR_20' ) end [2025-02-02 21:00:18] Production.INFO: ProcessCDR(1,14388289,1,1,2) [2025-02-02 21:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388289', 'tblTempUsageDetail_20' ) start [2025-02-02 21:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388289', 'tblTempUsageDetail_20' ) end [2025-02-02 21:00:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:00:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:00:22] Production.INFO: ==10098== Releasing lock... [2025-02-02 21:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:00:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:01:05 [end_date_ymd] => 2025-02-02 21:01:05 [RateCDR] => 1 ) [2025-02-02 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-02 18:01:05' and `end` < '2025-02-02 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-02 21:01:19] Production.INFO: count ==1230 [2025-02-02 21:01:19] Production.ERROR: pbx CDR StartTime 2025-02-02 18:01:05 - End Time 2025-02-02 21:01:05 [2025-02-02 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388294', 'tblTempUsageDetail_20' ) start [2025-02-02 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388294', 'tblTempUsageDetail_20' ) end [2025-02-02 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388294', 'tblTempVendorCDR_20' ) start [2025-02-02 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388294', 'tblTempVendorCDR_20' ) end [2025-02-02 21:01:19] Production.INFO: ProcessCDR(1,14388294,1,1,2) [2025-02-02 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388294', 'tblTempUsageDetail_20' ) start [2025-02-02 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388294', 'tblTempUsageDetail_20' ) end [2025-02-02 21:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:01:22] Production.INFO: ==10189== Releasing lock... [2025-02-02 21:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:01:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:02:05 [end_date_ymd] => 2025-02-02 21:02:05 [RateCDR] => 1 ) [2025-02-02 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-02 18:02:05' and `end` < '2025-02-02 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-02 21:02:18] Production.INFO: count ==1230 [2025-02-02 21:02:18] Production.ERROR: pbx CDR StartTime 2025-02-02 18:02:05 - End Time 2025-02-02 21:02:05 [2025-02-02 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388299', 'tblTempUsageDetail_20' ) start [2025-02-02 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388299', 'tblTempUsageDetail_20' ) end [2025-02-02 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388299', 'tblTempVendorCDR_20' ) start [2025-02-02 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388299', 'tblTempVendorCDR_20' ) end [2025-02-02 21:02:18] Production.INFO: ProcessCDR(1,14388299,1,1,2) [2025-02-02 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388299', 'tblTempUsageDetail_20' ) start [2025-02-02 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388299', 'tblTempUsageDetail_20' ) end [2025-02-02 21:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:02:21] Production.INFO: ==10264== Releasing lock... [2025-02-02 21:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:02:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:03:05 [end_date_ymd] => 2025-02-02 21:03:05 [RateCDR] => 1 ) [2025-02-02 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-02 18:03:05' and `end` < '2025-02-02 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-02 21:03:18] Production.INFO: count ==1230 [2025-02-02 21:03:18] Production.ERROR: pbx CDR StartTime 2025-02-02 18:03:05 - End Time 2025-02-02 21:03:05 [2025-02-02 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388304', 'tblTempUsageDetail_20' ) start [2025-02-02 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388304', 'tblTempUsageDetail_20' ) end [2025-02-02 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388304', 'tblTempVendorCDR_20' ) start [2025-02-02 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388304', 'tblTempVendorCDR_20' ) end [2025-02-02 21:03:19] Production.INFO: ProcessCDR(1,14388304,1,1,2) [2025-02-02 21:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388304', 'tblTempUsageDetail_20' ) start [2025-02-02 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388304', 'tblTempUsageDetail_20' ) end [2025-02-02 21:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:03:21] Production.INFO: ==10342== Releasing lock... [2025-02-02 21:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:03:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:04:05 [end_date_ymd] => 2025-02-02 21:04:05 [RateCDR] => 1 ) [2025-02-02 21:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 18:04:05' and `end` < '2025-02-02 21:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 21:04:18] Production.INFO: count ==1228 [2025-02-02 21:04:18] Production.ERROR: pbx CDR StartTime 2025-02-02 18:04:05 - End Time 2025-02-02 21:04:05 [2025-02-02 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388309', 'tblTempUsageDetail_20' ) start [2025-02-02 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388309', 'tblTempUsageDetail_20' ) end [2025-02-02 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388309', 'tblTempVendorCDR_20' ) start [2025-02-02 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388309', 'tblTempVendorCDR_20' ) end [2025-02-02 21:04:18] Production.INFO: ProcessCDR(1,14388309,1,1,2) [2025-02-02 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388309', 'tblTempUsageDetail_20' ) start [2025-02-02 21:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388309', 'tblTempUsageDetail_20' ) end [2025-02-02 21:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:04:23] Production.INFO: ==10423== Releasing lock... [2025-02-02 21:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:04:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:05:05 [end_date_ymd] => 2025-02-02 21:05:05 [RateCDR] => 1 ) [2025-02-02 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-02 18:05:05' and `end` < '2025-02-02 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-02 21:05:18] Production.INFO: count ==1229 [2025-02-02 21:05:18] Production.ERROR: pbx CDR StartTime 2025-02-02 18:05:05 - End Time 2025-02-02 21:05:05 [2025-02-02 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388314', 'tblTempUsageDetail_20' ) start [2025-02-02 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388314', 'tblTempUsageDetail_20' ) end [2025-02-02 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388314', 'tblTempVendorCDR_20' ) start [2025-02-02 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388314', 'tblTempVendorCDR_20' ) end [2025-02-02 21:05:18] Production.INFO: ProcessCDR(1,14388314,1,1,2) [2025-02-02 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388314', 'tblTempUsageDetail_20' ) start [2025-02-02 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388314', 'tblTempUsageDetail_20' ) end [2025-02-02 21:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:05:22] Production.INFO: ==10501== Releasing lock... [2025-02-02 21:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:05:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 21:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:06:04 [end_date_ymd] => 2025-02-02 21:06:04 [RateCDR] => 1 ) [2025-02-02 21: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-02 18:06:04' and `end` < '2025-02-02 21: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-02 21:06:18] Production.INFO: count ==1232 [2025-02-02 21:06:18] Production.ERROR: pbx CDR StartTime 2025-02-02 18:06:04 - End Time 2025-02-02 21:06:04 [2025-02-02 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388319', 'tblTempUsageDetail_20' ) start [2025-02-02 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388319', 'tblTempUsageDetail_20' ) end [2025-02-02 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388319', 'tblTempVendorCDR_20' ) start [2025-02-02 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388319', 'tblTempVendorCDR_20' ) end [2025-02-02 21:06:18] Production.INFO: ProcessCDR(1,14388319,1,1,2) [2025-02-02 21:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388319', 'tblTempUsageDetail_20' ) start [2025-02-02 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388319', 'tblTempUsageDetail_20' ) end [2025-02-02 21:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:06:21] Production.INFO: ==10582== Releasing lock... [2025-02-02 21:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:06:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 21:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:07:06 [end_date_ymd] => 2025-02-02 21:07:06 [RateCDR] => 1 ) [2025-02-02 21:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 18:07:06' and `end` < '2025-02-02 21:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 21:07:19] Production.INFO: count ==1231 [2025-02-02 21:07:19] Production.ERROR: pbx CDR StartTime 2025-02-02 18:07:06 - End Time 2025-02-02 21:07:06 [2025-02-02 21:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388324', 'tblTempUsageDetail_20' ) start [2025-02-02 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388324', 'tblTempUsageDetail_20' ) end [2025-02-02 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388324', 'tblTempVendorCDR_20' ) start [2025-02-02 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388324', 'tblTempVendorCDR_20' ) end [2025-02-02 21:07:19] Production.INFO: ProcessCDR(1,14388324,1,1,2) [2025-02-02 21:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388324', 'tblTempUsageDetail_20' ) start [2025-02-02 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388324', 'tblTempUsageDetail_20' ) end [2025-02-02 21:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:07:22] Production.INFO: ==10661== Releasing lock... [2025-02-02 21:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:07:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:08:05 [end_date_ymd] => 2025-02-02 21:08:05 [RateCDR] => 1 ) [2025-02-02 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-02 18:08:05' and `end` < '2025-02-02 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-02 21:08:18] Production.INFO: count ==1228 [2025-02-02 21:08:18] Production.ERROR: pbx CDR StartTime 2025-02-02 18:08:05 - End Time 2025-02-02 21:08:05 [2025-02-02 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388329', 'tblTempUsageDetail_20' ) start [2025-02-02 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388329', 'tblTempUsageDetail_20' ) end [2025-02-02 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388329', 'tblTempVendorCDR_20' ) start [2025-02-02 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388329', 'tblTempVendorCDR_20' ) end [2025-02-02 21:08:18] Production.INFO: ProcessCDR(1,14388329,1,1,2) [2025-02-02 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388329', 'tblTempUsageDetail_20' ) start [2025-02-02 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388329', 'tblTempUsageDetail_20' ) end [2025-02-02 21:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:08:21] Production.INFO: ==10746== Releasing lock... [2025-02-02 21:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:08:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:09:05 [end_date_ymd] => 2025-02-02 21:09:05 [RateCDR] => 1 ) [2025-02-02 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-02 18:09:05' and `end` < '2025-02-02 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-02 21:09:19] Production.INFO: count ==1231 [2025-02-02 21:09:19] Production.ERROR: pbx CDR StartTime 2025-02-02 18:09:05 - End Time 2025-02-02 21:09:05 [2025-02-02 21:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388334', 'tblTempUsageDetail_20' ) start [2025-02-02 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388334', 'tblTempUsageDetail_20' ) end [2025-02-02 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388334', 'tblTempVendorCDR_20' ) start [2025-02-02 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388334', 'tblTempVendorCDR_20' ) end [2025-02-02 21:09:19] Production.INFO: ProcessCDR(1,14388334,1,1,2) [2025-02-02 21:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388334', 'tblTempUsageDetail_20' ) start [2025-02-02 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388334', 'tblTempUsageDetail_20' ) end [2025-02-02 21:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:09:22] Production.INFO: ==10841== Releasing lock... [2025-02-02 21:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:09:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 21:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:10:05 [end_date_ymd] => 2025-02-02 21:10:05 [RateCDR] => 1 ) [2025-02-02 21:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 18:10:05' and `end` < '2025-02-02 21:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 21:10:18] Production.INFO: count ==1222 [2025-02-02 21:10:18] Production.ERROR: pbx CDR StartTime 2025-02-02 18:10:05 - End Time 2025-02-02 21:10:05 [2025-02-02 21:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388340', 'tblTempUsageDetail_20' ) start [2025-02-02 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388340', 'tblTempUsageDetail_20' ) end [2025-02-02 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388340', 'tblTempVendorCDR_20' ) start [2025-02-02 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388340', 'tblTempVendorCDR_20' ) end [2025-02-02 21:10:18] Production.INFO: ProcessCDR(1,14388340,1,1,2) [2025-02-02 21:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388340', 'tblTempUsageDetail_20' ) start [2025-02-02 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388340', 'tblTempUsageDetail_20' ) end [2025-02-02 21:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:10:22] Production.INFO: ==10931== Releasing lock... [2025-02-02 21:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:10:22] Production.INFO: 37 MB #Memory Used# [2025-02-02 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:11:05 [end_date_ymd] => 2025-02-02 21:11:05 [RateCDR] => 1 ) [2025-02-02 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-02 18:11:05' and `end` < '2025-02-02 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-02 21:11:18] Production.INFO: count ==1198 [2025-02-02 21:11:18] Production.ERROR: pbx CDR StartTime 2025-02-02 18:11:05 - End Time 2025-02-02 21:11:05 [2025-02-02 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388345', 'tblTempUsageDetail_20' ) start [2025-02-02 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388345', 'tblTempUsageDetail_20' ) end [2025-02-02 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388345', 'tblTempVendorCDR_20' ) start [2025-02-02 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388345', 'tblTempVendorCDR_20' ) end [2025-02-02 21:11:18] Production.INFO: ProcessCDR(1,14388345,1,1,2) [2025-02-02 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388345', 'tblTempUsageDetail_20' ) start [2025-02-02 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388345', 'tblTempUsageDetail_20' ) end [2025-02-02 21:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:11:21] Production.INFO: ==11016== Releasing lock... [2025-02-02 21:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:11:21] Production.INFO: 36.5 MB #Memory Used# [2025-02-02 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:12:05 [end_date_ymd] => 2025-02-02 21:12:05 [RateCDR] => 1 ) [2025-02-02 21:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 18:12:05' and `end` < '2025-02-02 21:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 21:12:19] Production.INFO: count ==1201 [2025-02-02 21:12:19] Production.ERROR: pbx CDR StartTime 2025-02-02 18:12:05 - End Time 2025-02-02 21:12:05 [2025-02-02 21:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388350', 'tblTempUsageDetail_20' ) start [2025-02-02 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388350', 'tblTempUsageDetail_20' ) end [2025-02-02 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388350', 'tblTempVendorCDR_20' ) start [2025-02-02 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388350', 'tblTempVendorCDR_20' ) end [2025-02-02 21:12:19] Production.INFO: ProcessCDR(1,14388350,1,1,2) [2025-02-02 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388350', 'tblTempUsageDetail_20' ) start [2025-02-02 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388350', 'tblTempUsageDetail_20' ) end [2025-02-02 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:12:22] Production.INFO: ==11118== Releasing lock... [2025-02-02 21:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:12:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-02 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:13:05 [end_date_ymd] => 2025-02-02 21:13:05 [RateCDR] => 1 ) [2025-02-02 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-02 18:13:05' and `end` < '2025-02-02 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-02 21:13:18] Production.INFO: count ==1198 [2025-02-02 21:13:18] Production.ERROR: pbx CDR StartTime 2025-02-02 18:13:05 - End Time 2025-02-02 21:13:05 [2025-02-02 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388355', 'tblTempUsageDetail_20' ) start [2025-02-02 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388355', 'tblTempUsageDetail_20' ) end [2025-02-02 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388355', 'tblTempVendorCDR_20' ) start [2025-02-02 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388355', 'tblTempVendorCDR_20' ) end [2025-02-02 21:13:18] Production.INFO: ProcessCDR(1,14388355,1,1,2) [2025-02-02 21:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388355', 'tblTempUsageDetail_20' ) start [2025-02-02 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388355', 'tblTempUsageDetail_20' ) end [2025-02-02 21:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:13:21] Production.INFO: ==11223== Releasing lock... [2025-02-02 21:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:13:21] Production.INFO: 36.5 MB #Memory Used# [2025-02-02 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:14:05 [end_date_ymd] => 2025-02-02 21:14:05 [RateCDR] => 1 ) [2025-02-02 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-02 18:14:05' and `end` < '2025-02-02 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-02 21:14:19] Production.INFO: count ==1194 [2025-02-02 21:14:19] Production.ERROR: pbx CDR StartTime 2025-02-02 18:14:05 - End Time 2025-02-02 21:14:05 [2025-02-02 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388360', 'tblTempUsageDetail_20' ) start [2025-02-02 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388360', 'tblTempUsageDetail_20' ) end [2025-02-02 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388360', 'tblTempVendorCDR_20' ) start [2025-02-02 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388360', 'tblTempVendorCDR_20' ) end [2025-02-02 21:14:19] Production.INFO: ProcessCDR(1,14388360,1,1,2) [2025-02-02 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388360', 'tblTempUsageDetail_20' ) start [2025-02-02 21:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388360', 'tblTempUsageDetail_20' ) end [2025-02-02 21:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:14:23] Production.INFO: ==11311== Releasing lock... [2025-02-02 21:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:14:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:15:05 [end_date_ymd] => 2025-02-02 21:15:05 [RateCDR] => 1 ) [2025-02-02 21:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 18:15:05' and `end` < '2025-02-02 21:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 21:15:18] Production.INFO: count ==1193 [2025-02-02 21:15:18] Production.ERROR: pbx CDR StartTime 2025-02-02 18:15:05 - End Time 2025-02-02 21:15:05 [2025-02-02 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388365', 'tblTempUsageDetail_20' ) start [2025-02-02 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388365', 'tblTempUsageDetail_20' ) end [2025-02-02 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388365', 'tblTempVendorCDR_20' ) start [2025-02-02 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388365', 'tblTempVendorCDR_20' ) end [2025-02-02 21:15:18] Production.INFO: ProcessCDR(1,14388365,1,1,2) [2025-02-02 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388365', 'tblTempUsageDetail_20' ) start [2025-02-02 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388365', 'tblTempUsageDetail_20' ) end [2025-02-02 21:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:15:21] Production.INFO: ==11397== Releasing lock... [2025-02-02 21:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:15:21] Production.INFO: 36.5 MB #Memory Used# [2025-02-02 21:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:16:06 [end_date_ymd] => 2025-02-02 21:16:06 [RateCDR] => 1 ) [2025-02-02 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-02 18:16:06' and `end` < '2025-02-02 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-02 21:16:19] Production.INFO: count ==1189 [2025-02-02 21:16:19] Production.ERROR: pbx CDR StartTime 2025-02-02 18:16:06 - End Time 2025-02-02 21:16:06 [2025-02-02 21:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388370', 'tblTempUsageDetail_20' ) start [2025-02-02 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388370', 'tblTempUsageDetail_20' ) end [2025-02-02 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388370', 'tblTempVendorCDR_20' ) start [2025-02-02 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388370', 'tblTempVendorCDR_20' ) end [2025-02-02 21:16:19] Production.INFO: ProcessCDR(1,14388370,1,1,2) [2025-02-02 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388370', 'tblTempUsageDetail_20' ) start [2025-02-02 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388370', 'tblTempUsageDetail_20' ) end [2025-02-02 21:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:16:22] Production.INFO: ==11484== Releasing lock... [2025-02-02 21:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:16:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-02 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:17:05 [end_date_ymd] => 2025-02-02 21:17:05 [RateCDR] => 1 ) [2025-02-02 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-02 18:17:05' and `end` < '2025-02-02 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-02 21:17:18] Production.INFO: count ==1186 [2025-02-02 21:17:19] Production.ERROR: pbx CDR StartTime 2025-02-02 18:17:05 - End Time 2025-02-02 21:17:05 [2025-02-02 21:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388375', 'tblTempUsageDetail_20' ) start [2025-02-02 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388375', 'tblTempUsageDetail_20' ) end [2025-02-02 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388375', 'tblTempVendorCDR_20' ) start [2025-02-02 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388375', 'tblTempVendorCDR_20' ) end [2025-02-02 21:17:19] Production.INFO: ProcessCDR(1,14388375,1,1,2) [2025-02-02 21:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388375', 'tblTempUsageDetail_20' ) start [2025-02-02 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388375', 'tblTempUsageDetail_20' ) end [2025-02-02 21:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:17:22] Production.INFO: ==11566== Releasing lock... [2025-02-02 21:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:17:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-02 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:18:05 [end_date_ymd] => 2025-02-02 21:18:05 [RateCDR] => 1 ) [2025-02-02 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-02 18:18:05' and `end` < '2025-02-02 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-02 21:18:19] Production.INFO: count ==1184 [2025-02-02 21:18:19] Production.ERROR: pbx CDR StartTime 2025-02-02 18:18:05 - End Time 2025-02-02 21:18:05 [2025-02-02 21:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388380', 'tblTempUsageDetail_20' ) start [2025-02-02 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388380', 'tblTempUsageDetail_20' ) end [2025-02-02 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388380', 'tblTempVendorCDR_20' ) start [2025-02-02 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388380', 'tblTempVendorCDR_20' ) end [2025-02-02 21:18:19] Production.INFO: ProcessCDR(1,14388380,1,1,2) [2025-02-02 21:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388380', 'tblTempUsageDetail_20' ) start [2025-02-02 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388380', 'tblTempUsageDetail_20' ) end [2025-02-02 21:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:18:22] Production.INFO: ==11654== Releasing lock... [2025-02-02 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:18:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-02 21:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:19:04 [end_date_ymd] => 2025-02-02 21:19:04 [RateCDR] => 1 ) [2025-02-02 21: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-02 18:19:04' and `end` < '2025-02-02 21: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-02 21:19:17] Production.INFO: count ==1178 [2025-02-02 21:19:17] Production.ERROR: pbx CDR StartTime 2025-02-02 18:19:04 - End Time 2025-02-02 21:19:04 [2025-02-02 21:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388385', 'tblTempUsageDetail_20' ) start [2025-02-02 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388385', 'tblTempUsageDetail_20' ) end [2025-02-02 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388385', 'tblTempVendorCDR_20' ) start [2025-02-02 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388385', 'tblTempVendorCDR_20' ) end [2025-02-02 21:19:18] Production.INFO: ProcessCDR(1,14388385,1,1,2) [2025-02-02 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388385', 'tblTempUsageDetail_20' ) start [2025-02-02 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388385', 'tblTempUsageDetail_20' ) end [2025-02-02 21:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:19:21] Production.INFO: ==11740== Releasing lock... [2025-02-02 21:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:19:21] Production.INFO: 36.5 MB #Memory Used# [2025-02-02 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:20:06 [end_date_ymd] => 2025-02-02 21:20:06 [RateCDR] => 1 ) [2025-02-02 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-02 18:20:06' and `end` < '2025-02-02 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-02 21:20:19] Production.INFO: count ==1178 [2025-02-02 21:20:19] Production.ERROR: pbx CDR StartTime 2025-02-02 18:20:06 - End Time 2025-02-02 21:20:06 [2025-02-02 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388390', 'tblTempUsageDetail_20' ) start [2025-02-02 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388390', 'tblTempUsageDetail_20' ) end [2025-02-02 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388390', 'tblTempVendorCDR_20' ) start [2025-02-02 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388390', 'tblTempVendorCDR_20' ) end [2025-02-02 21:20:19] Production.INFO: ProcessCDR(1,14388390,1,1,2) [2025-02-02 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388390', 'tblTempUsageDetail_20' ) start [2025-02-02 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388390', 'tblTempUsageDetail_20' ) end [2025-02-02 21:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:20:22] Production.INFO: ==11821== Releasing lock... [2025-02-02 21:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:20:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-02 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:21:05 [end_date_ymd] => 2025-02-02 21:21:05 [RateCDR] => 1 ) [2025-02-02 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-02 18:21:05' and `end` < '2025-02-02 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-02 21:21:18] Production.INFO: count ==1163 [2025-02-02 21:21:18] Production.ERROR: pbx CDR StartTime 2025-02-02 18:21:05 - End Time 2025-02-02 21:21:05 [2025-02-02 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388396', 'tblTempUsageDetail_20' ) start [2025-02-02 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388396', 'tblTempUsageDetail_20' ) end [2025-02-02 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388396', 'tblTempVendorCDR_20' ) start [2025-02-02 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388396', 'tblTempVendorCDR_20' ) end [2025-02-02 21:21:18] Production.INFO: ProcessCDR(1,14388396,1,1,2) [2025-02-02 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388396', 'tblTempUsageDetail_20' ) start [2025-02-02 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388396', 'tblTempUsageDetail_20' ) end [2025-02-02 21:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:21:21] Production.INFO: ==11910== Releasing lock... [2025-02-02 21:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:21:21] Production.INFO: 36.25 MB #Memory Used# [2025-02-02 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:22:05 [end_date_ymd] => 2025-02-02 21:22:05 [RateCDR] => 1 ) [2025-02-02 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-02 18:22:05' and `end` < '2025-02-02 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-02 21:22:18] Production.INFO: count ==1161 [2025-02-02 21:22:18] Production.ERROR: pbx CDR StartTime 2025-02-02 18:22:05 - End Time 2025-02-02 21:22:05 [2025-02-02 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388401', 'tblTempUsageDetail_20' ) start [2025-02-02 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388401', 'tblTempUsageDetail_20' ) end [2025-02-02 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388401', 'tblTempVendorCDR_20' ) start [2025-02-02 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388401', 'tblTempVendorCDR_20' ) end [2025-02-02 21:22:18] Production.INFO: ProcessCDR(1,14388401,1,1,2) [2025-02-02 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388401', 'tblTempUsageDetail_20' ) start [2025-02-02 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388401', 'tblTempUsageDetail_20' ) end [2025-02-02 21:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:22:21] Production.INFO: ==11992== Releasing lock... [2025-02-02 21:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:22:21] Production.INFO: 36.25 MB #Memory Used# [2025-02-02 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:23:05 [end_date_ymd] => 2025-02-02 21:23:05 [RateCDR] => 1 ) [2025-02-02 21:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 18:23:05' and `end` < '2025-02-02 21:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 21:23:20] Production.INFO: count ==1160 [2025-02-02 21:23:20] Production.ERROR: pbx CDR StartTime 2025-02-02 18:23:05 - End Time 2025-02-02 21:23:05 [2025-02-02 21:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388406', 'tblTempUsageDetail_20' ) start [2025-02-02 21:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388406', 'tblTempUsageDetail_20' ) end [2025-02-02 21:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388406', 'tblTempVendorCDR_20' ) start [2025-02-02 21:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388406', 'tblTempVendorCDR_20' ) end [2025-02-02 21:23:20] Production.INFO: ProcessCDR(1,14388406,1,1,2) [2025-02-02 21:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388406', 'tblTempUsageDetail_20' ) start [2025-02-02 21:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388406', 'tblTempUsageDetail_20' ) end [2025-02-02 21:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:23:24] Production.INFO: ==12076== Releasing lock... [2025-02-02 21:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:23:24] Production.INFO: 36.25 MB #Memory Used# [2025-02-02 21:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:24:05 [end_date_ymd] => 2025-02-02 21:24:05 [RateCDR] => 1 ) [2025-02-02 21:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 18:24:05' and `end` < '2025-02-02 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-02 21:24:20] Production.INFO: count ==1157 [2025-02-02 21:24:20] Production.ERROR: pbx CDR StartTime 2025-02-02 18:24:05 - End Time 2025-02-02 21:24:05 [2025-02-02 21:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388411', 'tblTempUsageDetail_20' ) start [2025-02-02 21:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388411', 'tblTempUsageDetail_20' ) end [2025-02-02 21:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388411', 'tblTempVendorCDR_20' ) start [2025-02-02 21:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388411', 'tblTempVendorCDR_20' ) end [2025-02-02 21:24:20] Production.INFO: ProcessCDR(1,14388411,1,1,2) [2025-02-02 21:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388411', 'tblTempUsageDetail_20' ) start [2025-02-02 21:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388411', 'tblTempUsageDetail_20' ) end [2025-02-02 21:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:24:24] Production.INFO: ==12167== Releasing lock... [2025-02-02 21:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:24:24] Production.INFO: 36.25 MB #Memory Used# [2025-02-02 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:25:05 [end_date_ymd] => 2025-02-02 21:25:05 [RateCDR] => 1 ) [2025-02-02 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-02 18:25:05' and `end` < '2025-02-02 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-02 21:25:18] Production.INFO: count ==1152 [2025-02-02 21:25:18] Production.ERROR: pbx CDR StartTime 2025-02-02 18:25:05 - End Time 2025-02-02 21:25:05 [2025-02-02 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388416', 'tblTempUsageDetail_20' ) start [2025-02-02 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388416', 'tblTempUsageDetail_20' ) end [2025-02-02 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388416', 'tblTempVendorCDR_20' ) start [2025-02-02 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388416', 'tblTempVendorCDR_20' ) end [2025-02-02 21:25:18] Production.INFO: ProcessCDR(1,14388416,1,1,2) [2025-02-02 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388416', 'tblTempUsageDetail_20' ) start [2025-02-02 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388416', 'tblTempUsageDetail_20' ) end [2025-02-02 21:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:25:22] Production.INFO: ==12247== Releasing lock... [2025-02-02 21:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:25:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-02 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:26:05 [end_date_ymd] => 2025-02-02 21:26:05 [RateCDR] => 1 ) [2025-02-02 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-02 18:26:05' and `end` < '2025-02-02 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-02 21:26:19] Production.INFO: count ==1149 [2025-02-02 21:26:19] Production.ERROR: pbx CDR StartTime 2025-02-02 18:26:05 - End Time 2025-02-02 21:26:05 [2025-02-02 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388421', 'tblTempUsageDetail_20' ) start [2025-02-02 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388421', 'tblTempUsageDetail_20' ) end [2025-02-02 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388421', 'tblTempVendorCDR_20' ) start [2025-02-02 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388421', 'tblTempVendorCDR_20' ) end [2025-02-02 21:26:19] Production.INFO: ProcessCDR(1,14388421,1,1,2) [2025-02-02 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388421', 'tblTempUsageDetail_20' ) start [2025-02-02 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388421', 'tblTempUsageDetail_20' ) end [2025-02-02 21:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:26:22] Production.INFO: ==12331== Releasing lock... [2025-02-02 21:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:26:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-02 21:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:27:06 [end_date_ymd] => 2025-02-02 21:27:06 [RateCDR] => 1 ) [2025-02-02 21:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 18:27:06' and `end` < '2025-02-02 21:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 21:27:20] Production.INFO: count ==1149 [2025-02-02 21:27:20] Production.ERROR: pbx CDR StartTime 2025-02-02 18:27:06 - End Time 2025-02-02 21:27:06 [2025-02-02 21:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388426', 'tblTempUsageDetail_20' ) start [2025-02-02 21:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388426', 'tblTempUsageDetail_20' ) end [2025-02-02 21:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388426', 'tblTempVendorCDR_20' ) start [2025-02-02 21:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388426', 'tblTempVendorCDR_20' ) end [2025-02-02 21:27:20] Production.INFO: ProcessCDR(1,14388426,1,1,2) [2025-02-02 21:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388426', 'tblTempUsageDetail_20' ) start [2025-02-02 21:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388426', 'tblTempUsageDetail_20' ) end [2025-02-02 21:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:27:24] Production.INFO: ==12408== Releasing lock... [2025-02-02 21:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:27:24] Production.INFO: 36.25 MB #Memory Used# [2025-02-02 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:28:05 [end_date_ymd] => 2025-02-02 21:28:05 [RateCDR] => 1 ) [2025-02-02 21:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 18:28:05' and `end` < '2025-02-02 21:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 21:28:18] Production.INFO: count ==1148 [2025-02-02 21:28:18] Production.ERROR: pbx CDR StartTime 2025-02-02 18:28:05 - End Time 2025-02-02 21:28:05 [2025-02-02 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388431', 'tblTempUsageDetail_20' ) start [2025-02-02 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388431', 'tblTempUsageDetail_20' ) end [2025-02-02 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388431', 'tblTempVendorCDR_20' ) start [2025-02-02 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388431', 'tblTempVendorCDR_20' ) end [2025-02-02 21:28:18] Production.INFO: ProcessCDR(1,14388431,1,1,2) [2025-02-02 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388431', 'tblTempUsageDetail_20' ) start [2025-02-02 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388431', 'tblTempUsageDetail_20' ) end [2025-02-02 21:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:28:21] Production.INFO: ==12536== Releasing lock... [2025-02-02 21:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:28:21] Production.INFO: 36.25 MB #Memory Used# [2025-02-02 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:29:05 [end_date_ymd] => 2025-02-02 21:29:05 [RateCDR] => 1 ) [2025-02-02 21:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 18:29:05' and `end` < '2025-02-02 21:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 21:29:18] Production.INFO: count ==1149 [2025-02-02 21:29:18] Production.ERROR: pbx CDR StartTime 2025-02-02 18:29:05 - End Time 2025-02-02 21:29:05 [2025-02-02 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388436', 'tblTempUsageDetail_20' ) start [2025-02-02 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388436', 'tblTempUsageDetail_20' ) end [2025-02-02 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388436', 'tblTempVendorCDR_20' ) start [2025-02-02 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388436', 'tblTempVendorCDR_20' ) end [2025-02-02 21:29:18] Production.INFO: ProcessCDR(1,14388436,1,1,2) [2025-02-02 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388436', 'tblTempUsageDetail_20' ) start [2025-02-02 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388436', 'tblTempUsageDetail_20' ) end [2025-02-02 21:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:29:22] Production.INFO: ==12618== Releasing lock... [2025-02-02 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:29:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-02 21:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:30:05 [end_date_ymd] => 2025-02-02 21:30:05 [RateCDR] => 1 ) [2025-02-02 21:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 18:30:05' and `end` < '2025-02-02 21:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 21:30:18] Production.INFO: count ==1150 [2025-02-02 21:30:18] Production.ERROR: pbx CDR StartTime 2025-02-02 18:30:05 - End Time 2025-02-02 21:30:05 [2025-02-02 21:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388442', 'tblTempUsageDetail_20' ) start [2025-02-02 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388442', 'tblTempUsageDetail_20' ) end [2025-02-02 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388442', 'tblTempVendorCDR_20' ) start [2025-02-02 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388442', 'tblTempVendorCDR_20' ) end [2025-02-02 21:30:19] Production.INFO: ProcessCDR(1,14388442,1,1,2) [2025-02-02 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388442', 'tblTempUsageDetail_20' ) start [2025-02-02 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388442', 'tblTempUsageDetail_20' ) end [2025-02-02 21:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:30:23] Production.INFO: ==12703== Releasing lock... [2025-02-02 21:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:30:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-02 21:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:31:06 [end_date_ymd] => 2025-02-02 21:31:06 [RateCDR] => 1 ) [2025-02-02 21: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-02 18:31:06' and `end` < '2025-02-02 21: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-02 21:31:19] Production.INFO: count ==1137 [2025-02-02 21:31:20] Production.ERROR: pbx CDR StartTime 2025-02-02 18:31:06 - End Time 2025-02-02 21:31:06 [2025-02-02 21:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388447', 'tblTempUsageDetail_20' ) start [2025-02-02 21:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388447', 'tblTempUsageDetail_20' ) end [2025-02-02 21:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388447', 'tblTempVendorCDR_20' ) start [2025-02-02 21:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388447', 'tblTempVendorCDR_20' ) end [2025-02-02 21:31:20] Production.INFO: ProcessCDR(1,14388447,1,1,2) [2025-02-02 21:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388447', 'tblTempUsageDetail_20' ) start [2025-02-02 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388447', 'tblTempUsageDetail_20' ) end [2025-02-02 21:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:31:23] Production.INFO: ==12785== Releasing lock... [2025-02-02 21:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:31:23] Production.INFO: 36 MB #Memory Used# [2025-02-02 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:32:05 [end_date_ymd] => 2025-02-02 21:32:05 [RateCDR] => 1 ) [2025-02-02 21:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 18:32:05' and `end` < '2025-02-02 21:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 21:32:20] Production.INFO: count ==1138 [2025-02-02 21:32:20] Production.ERROR: pbx CDR StartTime 2025-02-02 18:32:05 - End Time 2025-02-02 21:32:05 [2025-02-02 21:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388452', 'tblTempUsageDetail_20' ) start [2025-02-02 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388452', 'tblTempUsageDetail_20' ) end [2025-02-02 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388452', 'tblTempVendorCDR_20' ) start [2025-02-02 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388452', 'tblTempVendorCDR_20' ) end [2025-02-02 21:32:20] Production.INFO: ProcessCDR(1,14388452,1,1,2) [2025-02-02 21:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388452', 'tblTempUsageDetail_20' ) start [2025-02-02 21:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388452', 'tblTempUsageDetail_20' ) end [2025-02-02 21:32:25] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:32:25] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:32:25] Production.INFO: ==12864== Releasing lock... [2025-02-02 21:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:32:25] Production.INFO: 36 MB #Memory Used# [2025-02-02 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:33:05 [end_date_ymd] => 2025-02-02 21:33:05 [RateCDR] => 1 ) [2025-02-02 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-02 18:33:05' and `end` < '2025-02-02 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-02 21:33:19] Production.INFO: count ==1138 [2025-02-02 21:33:20] Production.ERROR: pbx CDR StartTime 2025-02-02 18:33:05 - End Time 2025-02-02 21:33:05 [2025-02-02 21:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388457', 'tblTempUsageDetail_20' ) start [2025-02-02 21:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388457', 'tblTempUsageDetail_20' ) end [2025-02-02 21:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388457', 'tblTempVendorCDR_20' ) start [2025-02-02 21:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388457', 'tblTempVendorCDR_20' ) end [2025-02-02 21:33:20] Production.INFO: ProcessCDR(1,14388457,1,1,2) [2025-02-02 21:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388457', 'tblTempUsageDetail_20' ) start [2025-02-02 21:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388457', 'tblTempUsageDetail_20' ) end [2025-02-02 21:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:33:23] Production.INFO: ==12945== Releasing lock... [2025-02-02 21:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:33:23] Production.INFO: 36 MB #Memory Used# [2025-02-02 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:34:05 [end_date_ymd] => 2025-02-02 21:34:05 [RateCDR] => 1 ) [2025-02-02 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-02 18:34:05' and `end` < '2025-02-02 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-02 21:34:19] Production.INFO: count ==1135 [2025-02-02 21:34:19] Production.ERROR: pbx CDR StartTime 2025-02-02 18:34:05 - End Time 2025-02-02 21:34:05 [2025-02-02 21:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388462', 'tblTempUsageDetail_20' ) start [2025-02-02 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388462', 'tblTempUsageDetail_20' ) end [2025-02-02 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388462', 'tblTempVendorCDR_20' ) start [2025-02-02 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388462', 'tblTempVendorCDR_20' ) end [2025-02-02 21:34:19] Production.INFO: ProcessCDR(1,14388462,1,1,2) [2025-02-02 21:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388462', 'tblTempUsageDetail_20' ) start [2025-02-02 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388462', 'tblTempUsageDetail_20' ) end [2025-02-02 21:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:34:22] Production.INFO: ==13027== Releasing lock... [2025-02-02 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:34:22] Production.INFO: 36 MB #Memory Used# [2025-02-02 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:35:05 [end_date_ymd] => 2025-02-02 21:35:05 [RateCDR] => 1 ) [2025-02-02 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-02 18:35:05' and `end` < '2025-02-02 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-02 21:35:18] Production.INFO: count ==1134 [2025-02-02 21:35:18] Production.ERROR: pbx CDR StartTime 2025-02-02 18:35:05 - End Time 2025-02-02 21:35:05 [2025-02-02 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388467', 'tblTempUsageDetail_20' ) start [2025-02-02 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388467', 'tblTempUsageDetail_20' ) end [2025-02-02 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388467', 'tblTempVendorCDR_20' ) start [2025-02-02 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388467', 'tblTempVendorCDR_20' ) end [2025-02-02 21:35:18] Production.INFO: ProcessCDR(1,14388467,1,1,2) [2025-02-02 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388467', 'tblTempUsageDetail_20' ) start [2025-02-02 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388467', 'tblTempUsageDetail_20' ) end [2025-02-02 21:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:35:23] Production.INFO: ==13109== Releasing lock... [2025-02-02 21:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:35:23] Production.INFO: 36 MB #Memory Used# [2025-02-02 21:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:36:04 [end_date_ymd] => 2025-02-02 21:36:04 [RateCDR] => 1 ) [2025-02-02 21:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 18:36:04' and `end` < '2025-02-02 21:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 21:36:19] Production.INFO: count ==1138 [2025-02-02 21:36:19] Production.ERROR: pbx CDR StartTime 2025-02-02 18:36:04 - End Time 2025-02-02 21:36:04 [2025-02-02 21:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388472', 'tblTempUsageDetail_20' ) start [2025-02-02 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388472', 'tblTempUsageDetail_20' ) end [2025-02-02 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388472', 'tblTempVendorCDR_20' ) start [2025-02-02 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388472', 'tblTempVendorCDR_20' ) end [2025-02-02 21:36:19] Production.INFO: ProcessCDR(1,14388472,1,1,2) [2025-02-02 21:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388472', 'tblTempUsageDetail_20' ) start [2025-02-02 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388472', 'tblTempUsageDetail_20' ) end [2025-02-02 21:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:36:23] Production.INFO: ==13191== Releasing lock... [2025-02-02 21:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:36:23] Production.INFO: 36 MB #Memory Used# [2025-02-02 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:37:05 [end_date_ymd] => 2025-02-02 21:37:05 [RateCDR] => 1 ) [2025-02-02 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-02 18:37:05' and `end` < '2025-02-02 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-02 21:37:18] Production.INFO: count ==1138 [2025-02-02 21:37:18] Production.ERROR: pbx CDR StartTime 2025-02-02 18:37:05 - End Time 2025-02-02 21:37:05 [2025-02-02 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388477', 'tblTempUsageDetail_20' ) start [2025-02-02 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388477', 'tblTempUsageDetail_20' ) end [2025-02-02 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388477', 'tblTempVendorCDR_20' ) start [2025-02-02 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388477', 'tblTempVendorCDR_20' ) end [2025-02-02 21:37:18] Production.INFO: ProcessCDR(1,14388477,1,1,2) [2025-02-02 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388477', 'tblTempUsageDetail_20' ) start [2025-02-02 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388477', 'tblTempUsageDetail_20' ) end [2025-02-02 21:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:37:21] Production.INFO: ==13274== Releasing lock... [2025-02-02 21:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:37:21] Production.INFO: 36 MB #Memory Used# [2025-02-02 21:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:38:06 [end_date_ymd] => 2025-02-02 21:38:06 [RateCDR] => 1 ) [2025-02-02 21:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 18:38:06' and `end` < '2025-02-02 21:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 21:38:20] Production.INFO: count ==1136 [2025-02-02 21:38:20] Production.ERROR: pbx CDR StartTime 2025-02-02 18:38:06 - End Time 2025-02-02 21:38:06 [2025-02-02 21:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388482', 'tblTempUsageDetail_20' ) start [2025-02-02 21:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388482', 'tblTempUsageDetail_20' ) end [2025-02-02 21:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388482', 'tblTempVendorCDR_20' ) start [2025-02-02 21:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388482', 'tblTempVendorCDR_20' ) end [2025-02-02 21:38:20] Production.INFO: ProcessCDR(1,14388482,1,1,2) [2025-02-02 21:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388482', 'tblTempUsageDetail_20' ) start [2025-02-02 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388482', 'tblTempUsageDetail_20' ) end [2025-02-02 21:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:38:23] Production.INFO: ==13360== Releasing lock... [2025-02-02 21:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:38:23] Production.INFO: 36 MB #Memory Used# [2025-02-02 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:39:05 [end_date_ymd] => 2025-02-02 21:39:05 [RateCDR] => 1 ) [2025-02-02 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-02 18:39:05' and `end` < '2025-02-02 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-02 21:39:18] Production.INFO: count ==1136 [2025-02-02 21:39:18] Production.ERROR: pbx CDR StartTime 2025-02-02 18:39:05 - End Time 2025-02-02 21:39:05 [2025-02-02 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388487', 'tblTempUsageDetail_20' ) start [2025-02-02 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388487', 'tblTempUsageDetail_20' ) end [2025-02-02 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388487', 'tblTempVendorCDR_20' ) start [2025-02-02 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388487', 'tblTempVendorCDR_20' ) end [2025-02-02 21:39:18] Production.INFO: ProcessCDR(1,14388487,1,1,2) [2025-02-02 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388487', 'tblTempUsageDetail_20' ) start [2025-02-02 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388487', 'tblTempUsageDetail_20' ) end [2025-02-02 21:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:39:21] Production.INFO: ==13445== Releasing lock... [2025-02-02 21:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:39:21] Production.INFO: 36 MB #Memory Used# [2025-02-02 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:40:06 [end_date_ymd] => 2025-02-02 21:40:06 [RateCDR] => 1 ) [2025-02-02 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-02 18:40:06' and `end` < '2025-02-02 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-02 21:40:21] Production.INFO: count ==1130 [2025-02-02 21:40:21] Production.ERROR: pbx CDR StartTime 2025-02-02 18:40:06 - End Time 2025-02-02 21:40:06 [2025-02-02 21:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388493', 'tblTempUsageDetail_20' ) start [2025-02-02 21:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388493', 'tblTempUsageDetail_20' ) end [2025-02-02 21:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388493', 'tblTempVendorCDR_20' ) start [2025-02-02 21:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388493', 'tblTempVendorCDR_20' ) end [2025-02-02 21:40:21] Production.INFO: ProcessCDR(1,14388493,1,1,2) [2025-02-02 21:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388493', 'tblTempUsageDetail_20' ) start [2025-02-02 21:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388493', 'tblTempUsageDetail_20' ) end [2025-02-02 21:40:25] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:40:25] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:40:25] Production.INFO: ==13532== Releasing lock... [2025-02-02 21:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:40:25] Production.INFO: 36 MB #Memory Used# [2025-02-02 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:41:05 [end_date_ymd] => 2025-02-02 21:41:05 [RateCDR] => 1 ) [2025-02-02 21:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 18:41:05' and `end` < '2025-02-02 21:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 21:41:18] Production.INFO: count ==1084 [2025-02-02 21:41:18] Production.ERROR: pbx CDR StartTime 2025-02-02 18:41:05 - End Time 2025-02-02 21:41:05 [2025-02-02 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388498', 'tblTempUsageDetail_20' ) start [2025-02-02 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388498', 'tblTempUsageDetail_20' ) end [2025-02-02 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388498', 'tblTempVendorCDR_20' ) start [2025-02-02 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388498', 'tblTempVendorCDR_20' ) end [2025-02-02 21:41:18] Production.INFO: ProcessCDR(1,14388498,1,1,2) [2025-02-02 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388498', 'tblTempUsageDetail_20' ) start [2025-02-02 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388498', 'tblTempUsageDetail_20' ) end [2025-02-02 21:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:41:22] Production.INFO: ==13615== Releasing lock... [2025-02-02 21:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:41:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-02 21:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:42:06 [end_date_ymd] => 2025-02-02 21:42:06 [RateCDR] => 1 ) [2025-02-02 21:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 18:42:06' and `end` < '2025-02-02 21:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 21:42:20] Production.INFO: count ==1074 [2025-02-02 21:42:20] Production.ERROR: pbx CDR StartTime 2025-02-02 18:42:06 - End Time 2025-02-02 21:42:06 [2025-02-02 21:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388503', 'tblTempUsageDetail_20' ) start [2025-02-02 21:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388503', 'tblTempUsageDetail_20' ) end [2025-02-02 21:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388503', 'tblTempVendorCDR_20' ) start [2025-02-02 21:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388503', 'tblTempVendorCDR_20' ) end [2025-02-02 21:42:20] Production.INFO: ProcessCDR(1,14388503,1,1,2) [2025-02-02 21:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388503', 'tblTempUsageDetail_20' ) start [2025-02-02 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388503', 'tblTempUsageDetail_20' ) end [2025-02-02 21:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:42:23] Production.INFO: ==13706== Releasing lock... [2025-02-02 21:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:42:23] Production.INFO: 35.75 MB #Memory Used# [2025-02-02 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:43:05 [end_date_ymd] => 2025-02-02 21:43:05 [RateCDR] => 1 ) [2025-02-02 21:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 18:43:05' and `end` < '2025-02-02 21:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 21:43:19] Production.INFO: count ==1066 [2025-02-02 21:43:19] Production.ERROR: pbx CDR StartTime 2025-02-02 18:43:05 - End Time 2025-02-02 21:43:05 [2025-02-02 21:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388508', 'tblTempUsageDetail_20' ) start [2025-02-02 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388508', 'tblTempUsageDetail_20' ) end [2025-02-02 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388508', 'tblTempVendorCDR_20' ) start [2025-02-02 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388508', 'tblTempVendorCDR_20' ) end [2025-02-02 21:43:19] Production.INFO: ProcessCDR(1,14388508,1,1,2) [2025-02-02 21:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388508', 'tblTempUsageDetail_20' ) start [2025-02-02 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388508', 'tblTempUsageDetail_20' ) end [2025-02-02 21:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:43:22] Production.INFO: ==13826== Releasing lock... [2025-02-02 21:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:43:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-02 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:44:05 [end_date_ymd] => 2025-02-02 21:44:05 [RateCDR] => 1 ) [2025-02-02 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-02 18:44:05' and `end` < '2025-02-02 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-02 21:44:18] Production.INFO: count ==1065 [2025-02-02 21:44:18] Production.ERROR: pbx CDR StartTime 2025-02-02 18:44:05 - End Time 2025-02-02 21:44:05 [2025-02-02 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388513', 'tblTempUsageDetail_20' ) start [2025-02-02 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388513', 'tblTempUsageDetail_20' ) end [2025-02-02 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388513', 'tblTempVendorCDR_20' ) start [2025-02-02 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388513', 'tblTempVendorCDR_20' ) end [2025-02-02 21:44:18] Production.INFO: ProcessCDR(1,14388513,1,1,2) [2025-02-02 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388513', 'tblTempUsageDetail_20' ) start [2025-02-02 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388513', 'tblTempUsageDetail_20' ) end [2025-02-02 21:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:44:21] Production.INFO: ==13911== Releasing lock... [2025-02-02 21:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:44:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-02 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:45:05 [end_date_ymd] => 2025-02-02 21:45:05 [RateCDR] => 1 ) [2025-02-02 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-02 18:45:05' and `end` < '2025-02-02 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-02 21:45:18] Production.INFO: count ==1063 [2025-02-02 21:45:18] Production.ERROR: pbx CDR StartTime 2025-02-02 18:45:05 - End Time 2025-02-02 21:45:05 [2025-02-02 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388518', 'tblTempUsageDetail_20' ) start [2025-02-02 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388518', 'tblTempUsageDetail_20' ) end [2025-02-02 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388518', 'tblTempVendorCDR_20' ) start [2025-02-02 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388518', 'tblTempVendorCDR_20' ) end [2025-02-02 21:45:18] Production.INFO: ProcessCDR(1,14388518,1,1,2) [2025-02-02 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388518', 'tblTempUsageDetail_20' ) start [2025-02-02 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388518', 'tblTempUsageDetail_20' ) end [2025-02-02 21:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:45:21] Production.INFO: ==13999== Releasing lock... [2025-02-02 21:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:45:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-02 21:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:46:06 [end_date_ymd] => 2025-02-02 21:46:06 [RateCDR] => 1 ) [2025-02-02 21: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-02 18:46:06' and `end` < '2025-02-02 21: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-02 21:46:19] Production.INFO: count ==1062 [2025-02-02 21:46:19] Production.ERROR: pbx CDR StartTime 2025-02-02 18:46:06 - End Time 2025-02-02 21:46:06 [2025-02-02 21:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388523', 'tblTempUsageDetail_20' ) start [2025-02-02 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388523', 'tblTempUsageDetail_20' ) end [2025-02-02 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388523', 'tblTempVendorCDR_20' ) start [2025-02-02 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388523', 'tblTempVendorCDR_20' ) end [2025-02-02 21:46:19] Production.INFO: ProcessCDR(1,14388523,1,1,2) [2025-02-02 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388523', 'tblTempUsageDetail_20' ) start [2025-02-02 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388523', 'tblTempUsageDetail_20' ) end [2025-02-02 21:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:46:22] Production.INFO: ==14083== Releasing lock... [2025-02-02 21:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:46:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-02 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:47:05 [end_date_ymd] => 2025-02-02 21:47:05 [RateCDR] => 1 ) [2025-02-02 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-02 18:47:05' and `end` < '2025-02-02 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-02 21:47:18] Production.INFO: count ==1062 [2025-02-02 21:47:19] Production.ERROR: pbx CDR StartTime 2025-02-02 18:47:05 - End Time 2025-02-02 21:47:05 [2025-02-02 21:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388528', 'tblTempUsageDetail_20' ) start [2025-02-02 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388528', 'tblTempUsageDetail_20' ) end [2025-02-02 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388528', 'tblTempVendorCDR_20' ) start [2025-02-02 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388528', 'tblTempVendorCDR_20' ) end [2025-02-02 21:47:19] Production.INFO: ProcessCDR(1,14388528,1,1,2) [2025-02-02 21:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388528', 'tblTempUsageDetail_20' ) start [2025-02-02 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388528', 'tblTempUsageDetail_20' ) end [2025-02-02 21:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:47:22] Production.INFO: ==14164== Releasing lock... [2025-02-02 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:47:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-02 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:48:05 [end_date_ymd] => 2025-02-02 21:48:05 [RateCDR] => 1 ) [2025-02-02 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-02 18:48:05' and `end` < '2025-02-02 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-02 21:48:18] Production.INFO: count ==1059 [2025-02-02 21:48:18] Production.ERROR: pbx CDR StartTime 2025-02-02 18:48:05 - End Time 2025-02-02 21:48:05 [2025-02-02 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388533', 'tblTempUsageDetail_20' ) start [2025-02-02 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388533', 'tblTempUsageDetail_20' ) end [2025-02-02 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388533', 'tblTempVendorCDR_20' ) start [2025-02-02 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388533', 'tblTempVendorCDR_20' ) end [2025-02-02 21:48:18] Production.INFO: ProcessCDR(1,14388533,1,1,2) [2025-02-02 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388533', 'tblTempUsageDetail_20' ) start [2025-02-02 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388533', 'tblTempUsageDetail_20' ) end [2025-02-02 21:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:48:21] Production.INFO: ==14256== Releasing lock... [2025-02-02 21:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:48:21] Production.INFO: 35.75 MB #Memory Used# [2025-02-02 21:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:49:06 [end_date_ymd] => 2025-02-02 21:49:06 [RateCDR] => 1 ) [2025-02-02 21: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-02 18:49:06' and `end` < '2025-02-02 21: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-02 21:49:19] Production.INFO: count ==1054 [2025-02-02 21:49:19] Production.ERROR: pbx CDR StartTime 2025-02-02 18:49:06 - End Time 2025-02-02 21:49:06 [2025-02-02 21:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388538', 'tblTempUsageDetail_20' ) start [2025-02-02 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388538', 'tblTempUsageDetail_20' ) end [2025-02-02 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388538', 'tblTempVendorCDR_20' ) start [2025-02-02 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388538', 'tblTempVendorCDR_20' ) end [2025-02-02 21:49:19] Production.INFO: ProcessCDR(1,14388538,1,1,2) [2025-02-02 21:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388538', 'tblTempUsageDetail_20' ) start [2025-02-02 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388538', 'tblTempUsageDetail_20' ) end [2025-02-02 21:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:49:22] Production.INFO: ==14346== Releasing lock... [2025-02-02 21:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:49:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-02 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:50:06 [end_date_ymd] => 2025-02-02 21:50:06 [RateCDR] => 1 ) [2025-02-02 21:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 18:50:06' and `end` < '2025-02-02 21:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 21:50:19] Production.INFO: count ==1052 [2025-02-02 21:50:19] Production.ERROR: pbx CDR StartTime 2025-02-02 18:50:06 - End Time 2025-02-02 21:50:06 [2025-02-02 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388543', 'tblTempUsageDetail_20' ) start [2025-02-02 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388543', 'tblTempUsageDetail_20' ) end [2025-02-02 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388543', 'tblTempVendorCDR_20' ) start [2025-02-02 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388543', 'tblTempVendorCDR_20' ) end [2025-02-02 21:50:19] Production.INFO: ProcessCDR(1,14388543,1,1,2) [2025-02-02 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388543', 'tblTempUsageDetail_20' ) start [2025-02-02 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388543', 'tblTempUsageDetail_20' ) end [2025-02-02 21:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:50:22] Production.INFO: ==14430== Releasing lock... [2025-02-02 21:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:50:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-02 21:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:51:06 [end_date_ymd] => 2025-02-02 21:51:06 [RateCDR] => 1 ) [2025-02-02 21:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 18:51:06' and `end` < '2025-02-02 21:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 21:51:20] Production.INFO: count ==1038 [2025-02-02 21:51:20] Production.ERROR: pbx CDR StartTime 2025-02-02 18:51:06 - End Time 2025-02-02 21:51:06 [2025-02-02 21:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388549', 'tblTempUsageDetail_20' ) start [2025-02-02 21:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388549', 'tblTempUsageDetail_20' ) end [2025-02-02 21:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388549', 'tblTempVendorCDR_20' ) start [2025-02-02 21:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388549', 'tblTempVendorCDR_20' ) end [2025-02-02 21:51:20] Production.INFO: ProcessCDR(1,14388549,1,1,2) [2025-02-02 21:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388549', 'tblTempUsageDetail_20' ) start [2025-02-02 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388549', 'tblTempUsageDetail_20' ) end [2025-02-02 21:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:51:23] Production.INFO: ==14516== Releasing lock... [2025-02-02 21:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:51:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-02 21:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:52:04 [end_date_ymd] => 2025-02-02 21:52:04 [RateCDR] => 1 ) [2025-02-02 21:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 18:52:04' and `end` < '2025-02-02 21:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 21:52:17] Production.INFO: count ==1038 [2025-02-02 21:52:17] Production.ERROR: pbx CDR StartTime 2025-02-02 18:52:04 - End Time 2025-02-02 21:52:04 [2025-02-02 21:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388551', 'tblTempUsageDetail_20' ) start [2025-02-02 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388551', 'tblTempUsageDetail_20' ) end [2025-02-02 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388551', 'tblTempVendorCDR_20' ) start [2025-02-02 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388551', 'tblTempVendorCDR_20' ) end [2025-02-02 21:52:17] Production.INFO: ProcessCDR(1,14388551,1,1,2) [2025-02-02 21:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388551', 'tblTempUsageDetail_20' ) start [2025-02-02 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388551', 'tblTempUsageDetail_20' ) end [2025-02-02 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:52:22] Production.INFO: ==14597== Releasing lock... [2025-02-02 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:52:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-02 21:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:53:06 [end_date_ymd] => 2025-02-02 21:53:06 [RateCDR] => 1 ) [2025-02-02 21: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-02 18:53:06' and `end` < '2025-02-02 21: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-02 21:53:20] Production.INFO: count ==1038 [2025-02-02 21:53:20] Production.ERROR: pbx CDR StartTime 2025-02-02 18:53:06 - End Time 2025-02-02 21:53:06 [2025-02-02 21:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388559', 'tblTempUsageDetail_20' ) start [2025-02-02 21:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388559', 'tblTempUsageDetail_20' ) end [2025-02-02 21:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388559', 'tblTempVendorCDR_20' ) start [2025-02-02 21:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388559', 'tblTempVendorCDR_20' ) end [2025-02-02 21:53:20] Production.INFO: ProcessCDR(1,14388559,1,1,2) [2025-02-02 21:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388559', 'tblTempUsageDetail_20' ) start [2025-02-02 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388559', 'tblTempUsageDetail_20' ) end [2025-02-02 21:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:53:23] Production.INFO: ==14688== Releasing lock... [2025-02-02 21:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:53:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-02 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:54:05 [end_date_ymd] => 2025-02-02 21:54:05 [RateCDR] => 1 ) [2025-02-02 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-02 18:54:05' and `end` < '2025-02-02 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-02 21:54:18] Production.INFO: count ==1037 [2025-02-02 21:54:18] Production.ERROR: pbx CDR StartTime 2025-02-02 18:54:05 - End Time 2025-02-02 21:54:05 [2025-02-02 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388564', 'tblTempUsageDetail_20' ) start [2025-02-02 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388564', 'tblTempUsageDetail_20' ) end [2025-02-02 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388564', 'tblTempVendorCDR_20' ) start [2025-02-02 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388564', 'tblTempVendorCDR_20' ) end [2025-02-02 21:54:18] Production.INFO: ProcessCDR(1,14388564,1,1,2) [2025-02-02 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388564', 'tblTempUsageDetail_20' ) start [2025-02-02 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388564', 'tblTempUsageDetail_20' ) end [2025-02-02 21:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:54:21] Production.INFO: ==14774== Releasing lock... [2025-02-02 21:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:54:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-02 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:55:05 [end_date_ymd] => 2025-02-02 21:55:05 [RateCDR] => 1 ) [2025-02-02 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-02 18:55:05' and `end` < '2025-02-02 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-02 21:55:19] Production.INFO: count ==1037 [2025-02-02 21:55:19] Production.ERROR: pbx CDR StartTime 2025-02-02 18:55:05 - End Time 2025-02-02 21:55:05 [2025-02-02 21:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388569', 'tblTempUsageDetail_20' ) start [2025-02-02 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388569', 'tblTempUsageDetail_20' ) end [2025-02-02 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388569', 'tblTempVendorCDR_20' ) start [2025-02-02 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388569', 'tblTempVendorCDR_20' ) end [2025-02-02 21:55:19] Production.INFO: ProcessCDR(1,14388569,1,1,2) [2025-02-02 21:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388569', 'tblTempUsageDetail_20' ) start [2025-02-02 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388569', 'tblTempUsageDetail_20' ) end [2025-02-02 21:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:55:22] Production.INFO: ==14859== Releasing lock... [2025-02-02 21:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:55:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-02 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:56:05 [end_date_ymd] => 2025-02-02 21:56:05 [RateCDR] => 1 ) [2025-02-02 21:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 18:56:05' and `end` < '2025-02-02 21:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 21:56:19] Production.INFO: count ==1036 [2025-02-02 21:56:19] Production.ERROR: pbx CDR StartTime 2025-02-02 18:56:05 - End Time 2025-02-02 21:56:05 [2025-02-02 21:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388574', 'tblTempUsageDetail_20' ) start [2025-02-02 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388574', 'tblTempUsageDetail_20' ) end [2025-02-02 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388574', 'tblTempVendorCDR_20' ) start [2025-02-02 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388574', 'tblTempVendorCDR_20' ) end [2025-02-02 21:56:19] Production.INFO: ProcessCDR(1,14388574,1,1,2) [2025-02-02 21:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388574', 'tblTempUsageDetail_20' ) start [2025-02-02 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388574', 'tblTempUsageDetail_20' ) end [2025-02-02 21:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:56:22] Production.INFO: ==14948== Releasing lock... [2025-02-02 21:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:56:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-02 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:57:05 [end_date_ymd] => 2025-02-02 21:57:05 [RateCDR] => 1 ) [2025-02-02 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-02 18:57:05' and `end` < '2025-02-02 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-02 21:57:19] Production.INFO: count ==1038 [2025-02-02 21:57:20] Production.ERROR: pbx CDR StartTime 2025-02-02 18:57:05 - End Time 2025-02-02 21:57:05 [2025-02-02 21:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388579', 'tblTempUsageDetail_20' ) start [2025-02-02 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388579', 'tblTempUsageDetail_20' ) end [2025-02-02 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388579', 'tblTempVendorCDR_20' ) start [2025-02-02 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388579', 'tblTempVendorCDR_20' ) end [2025-02-02 21:57:20] Production.INFO: ProcessCDR(1,14388579,1,1,2) [2025-02-02 21:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388579', 'tblTempUsageDetail_20' ) start [2025-02-02 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388579', 'tblTempUsageDetail_20' ) end [2025-02-02 21:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:57:23] Production.INFO: ==15031== Releasing lock... [2025-02-02 21:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:57:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-02 21:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:58:06 [end_date_ymd] => 2025-02-02 21:58:06 [RateCDR] => 1 ) [2025-02-02 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-02 18:58:06' and `end` < '2025-02-02 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-02 21:58:20] Production.INFO: count ==1036 [2025-02-02 21:58:20] Production.ERROR: pbx CDR StartTime 2025-02-02 18:58:06 - End Time 2025-02-02 21:58:06 [2025-02-02 21:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388584', 'tblTempUsageDetail_20' ) start [2025-02-02 21:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388584', 'tblTempUsageDetail_20' ) end [2025-02-02 21:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388584', 'tblTempVendorCDR_20' ) start [2025-02-02 21:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388584', 'tblTempVendorCDR_20' ) end [2025-02-02 21:58:20] Production.INFO: ProcessCDR(1,14388584,1,1,2) [2025-02-02 21:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388584', 'tblTempUsageDetail_20' ) start [2025-02-02 21:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388584', 'tblTempUsageDetail_20' ) end [2025-02-02 21:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:58:23] Production.INFO: ==15113== Releasing lock... [2025-02-02 21:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:58:23] Production.INFO: 35.5 MB #Memory Used# [2025-02-02 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 18:59:05 [end_date_ymd] => 2025-02-02 21:59:05 [RateCDR] => 1 ) [2025-02-02 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-02 18:59:05' and `end` < '2025-02-02 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-02 21:59:18] Production.INFO: count ==1035 [2025-02-02 21:59:18] Production.ERROR: pbx CDR StartTime 2025-02-02 18:59:05 - End Time 2025-02-02 21:59:05 [2025-02-02 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388589', 'tblTempUsageDetail_20' ) start [2025-02-02 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388589', 'tblTempUsageDetail_20' ) end [2025-02-02 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388589', 'tblTempVendorCDR_20' ) start [2025-02-02 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388589', 'tblTempVendorCDR_20' ) end [2025-02-02 21:59:18] Production.INFO: ProcessCDR(1,14388589,1,1,2) [2025-02-02 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 21:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388589', 'tblTempUsageDetail_20' ) start [2025-02-02 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388589', 'tblTempUsageDetail_20' ) end [2025-02-02 21:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 21:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 21:59:21] Production.INFO: ==15238== Releasing lock... [2025-02-02 21:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 21:59:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-02 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:00:06 [end_date_ymd] => 2025-02-02 22:00:06 [RateCDR] => 1 ) [2025-02-02 22:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 19:00:06' and `end` < '2025-02-02 22:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 22:00:19] Production.INFO: count ==1037 [2025-02-02 22:00:19] Production.ERROR: pbx CDR StartTime 2025-02-02 19:00:06 - End Time 2025-02-02 22:00:06 [2025-02-02 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388594', 'tblTempUsageDetail_20' ) start [2025-02-02 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388594', 'tblTempUsageDetail_20' ) end [2025-02-02 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388594', 'tblTempVendorCDR_20' ) start [2025-02-02 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388594', 'tblTempVendorCDR_20' ) end [2025-02-02 22:00:19] Production.INFO: ProcessCDR(1,14388594,1,1,2) [2025-02-02 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388594', 'tblTempUsageDetail_20' ) start [2025-02-02 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388594', 'tblTempUsageDetail_20' ) end [2025-02-02 22:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:00:22] Production.INFO: ==15329== Releasing lock... [2025-02-02 22:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:00:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-02 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:01:05 [end_date_ymd] => 2025-02-02 22:01:05 [RateCDR] => 1 ) [2025-02-02 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-02 19:01:05' and `end` < '2025-02-02 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-02 22:01:20] Production.INFO: count ==1022 [2025-02-02 22:01:20] Production.ERROR: pbx CDR StartTime 2025-02-02 19:01:05 - End Time 2025-02-02 22:01:05 [2025-02-02 22:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388600', 'tblTempUsageDetail_20' ) start [2025-02-02 22:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388600', 'tblTempUsageDetail_20' ) end [2025-02-02 22:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388600', 'tblTempVendorCDR_20' ) start [2025-02-02 22:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388600', 'tblTempVendorCDR_20' ) end [2025-02-02 22:01:20] Production.INFO: ProcessCDR(1,14388600,1,1,2) [2025-02-02 22:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388600', 'tblTempUsageDetail_20' ) start [2025-02-02 22:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388600', 'tblTempUsageDetail_20' ) end [2025-02-02 22:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:01:23] Production.INFO: ==15428== Releasing lock... [2025-02-02 22:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:01:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-02 22:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:02:06 [end_date_ymd] => 2025-02-02 22:02:06 [RateCDR] => 1 ) [2025-02-02 22:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 19:02:06' and `end` < '2025-02-02 22:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 22:02:20] Production.INFO: count ==1022 [2025-02-02 22:02:20] Production.ERROR: pbx CDR StartTime 2025-02-02 19:02:06 - End Time 2025-02-02 22:02:06 [2025-02-02 22:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388605', 'tblTempUsageDetail_20' ) start [2025-02-02 22:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388605', 'tblTempUsageDetail_20' ) end [2025-02-02 22:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388605', 'tblTempVendorCDR_20' ) start [2025-02-02 22:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388605', 'tblTempVendorCDR_20' ) end [2025-02-02 22:02:20] Production.INFO: ProcessCDR(1,14388605,1,1,2) [2025-02-02 22:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388605', 'tblTempUsageDetail_20' ) start [2025-02-02 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388605', 'tblTempUsageDetail_20' ) end [2025-02-02 22:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:02:23] Production.INFO: ==15515== Releasing lock... [2025-02-02 22:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:02:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-02 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:03:05 [end_date_ymd] => 2025-02-02 22:03:05 [RateCDR] => 1 ) [2025-02-02 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-02 19:03:05' and `end` < '2025-02-02 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-02 22:03:20] Production.INFO: count ==1020 [2025-02-02 22:03:20] Production.ERROR: pbx CDR StartTime 2025-02-02 19:03:05 - End Time 2025-02-02 22:03:05 [2025-02-02 22:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388610', 'tblTempUsageDetail_20' ) start [2025-02-02 22:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388610', 'tblTempUsageDetail_20' ) end [2025-02-02 22:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388610', 'tblTempVendorCDR_20' ) start [2025-02-02 22:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388610', 'tblTempVendorCDR_20' ) end [2025-02-02 22:03:20] Production.INFO: ProcessCDR(1,14388610,1,1,2) [2025-02-02 22:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388610', 'tblTempUsageDetail_20' ) start [2025-02-02 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388610', 'tblTempUsageDetail_20' ) end [2025-02-02 22:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:03:23] Production.INFO: ==15601== Releasing lock... [2025-02-02 22:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:03:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-02 22:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:04:06 [end_date_ymd] => 2025-02-02 22:04:06 [RateCDR] => 1 ) [2025-02-02 22: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-02 19:04:06' and `end` < '2025-02-02 22: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-02 22:04:19] Production.INFO: count ==1017 [2025-02-02 22:04:19] Production.ERROR: pbx CDR StartTime 2025-02-02 19:04:06 - End Time 2025-02-02 22:04:06 [2025-02-02 22:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388615', 'tblTempUsageDetail_20' ) start [2025-02-02 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388615', 'tblTempUsageDetail_20' ) end [2025-02-02 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388615', 'tblTempVendorCDR_20' ) start [2025-02-02 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388615', 'tblTempVendorCDR_20' ) end [2025-02-02 22:04:19] Production.INFO: ProcessCDR(1,14388615,1,1,2) [2025-02-02 22:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388615', 'tblTempUsageDetail_20' ) start [2025-02-02 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388615', 'tblTempUsageDetail_20' ) end [2025-02-02 22:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:04:22] Production.INFO: ==15688== Releasing lock... [2025-02-02 22:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:04:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-02 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:05:05 [end_date_ymd] => 2025-02-02 22:05:05 [RateCDR] => 1 ) [2025-02-02 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-02 19:05:05' and `end` < '2025-02-02 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-02 22:05:18] Production.INFO: count ==1009 [2025-02-02 22:05:18] Production.ERROR: pbx CDR StartTime 2025-02-02 19:05:05 - End Time 2025-02-02 22:05:05 [2025-02-02 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388620', 'tblTempUsageDetail_20' ) start [2025-02-02 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388620', 'tblTempUsageDetail_20' ) end [2025-02-02 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388620', 'tblTempVendorCDR_20' ) start [2025-02-02 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388620', 'tblTempVendorCDR_20' ) end [2025-02-02 22:05:18] Production.INFO: ProcessCDR(1,14388620,1,1,2) [2025-02-02 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388620', 'tblTempUsageDetail_20' ) start [2025-02-02 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388620', 'tblTempUsageDetail_20' ) end [2025-02-02 22:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:05:21] Production.INFO: ==15764== Releasing lock... [2025-02-02 22:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:05:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-02 22:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:06:06 [end_date_ymd] => 2025-02-02 22:06:06 [RateCDR] => 1 ) [2025-02-02 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-02 19:06:06' and `end` < '2025-02-02 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-02 22:06:19] Production.INFO: count ==1007 [2025-02-02 22:06:19] Production.ERROR: pbx CDR StartTime 2025-02-02 19:06:06 - End Time 2025-02-02 22:06:06 [2025-02-02 22:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388625', 'tblTempUsageDetail_20' ) start [2025-02-02 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388625', 'tblTempUsageDetail_20' ) end [2025-02-02 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388625', 'tblTempVendorCDR_20' ) start [2025-02-02 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388625', 'tblTempVendorCDR_20' ) end [2025-02-02 22:06:19] Production.INFO: ProcessCDR(1,14388625,1,1,2) [2025-02-02 22:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388625', 'tblTempUsageDetail_20' ) start [2025-02-02 22:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388625', 'tblTempUsageDetail_20' ) end [2025-02-02 22:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:06:24] Production.INFO: ==15851== Releasing lock... [2025-02-02 22:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:06:24] Production.INFO: 35 MB #Memory Used# [2025-02-02 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:07:05 [end_date_ymd] => 2025-02-02 22:07:05 [RateCDR] => 1 ) [2025-02-02 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-02 19:07:05' and `end` < '2025-02-02 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-02 22:07:19] Production.INFO: count ==1012 [2025-02-02 22:07:19] Production.ERROR: pbx CDR StartTime 2025-02-02 19:07:05 - End Time 2025-02-02 22:07:05 [2025-02-02 22:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388630', 'tblTempUsageDetail_20' ) start [2025-02-02 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388630', 'tblTempUsageDetail_20' ) end [2025-02-02 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388630', 'tblTempVendorCDR_20' ) start [2025-02-02 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388630', 'tblTempVendorCDR_20' ) end [2025-02-02 22:07:19] Production.INFO: ProcessCDR(1,14388630,1,1,2) [2025-02-02 22:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388630', 'tblTempUsageDetail_20' ) start [2025-02-02 22:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388630', 'tblTempUsageDetail_20' ) end [2025-02-02 22:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:07:24] Production.INFO: ==15940== Releasing lock... [2025-02-02 22:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:07:24] Production.INFO: 35.25 MB #Memory Used# [2025-02-02 22:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:08:06 [end_date_ymd] => 2025-02-02 22:08:06 [RateCDR] => 1 ) [2025-02-02 22:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 19:08:06' and `end` < '2025-02-02 22:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 22:08:20] Production.INFO: count ==1011 [2025-02-02 22:08:20] Production.ERROR: pbx CDR StartTime 2025-02-02 19:08:06 - End Time 2025-02-02 22:08:06 [2025-02-02 22:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388635', 'tblTempUsageDetail_20' ) start [2025-02-02 22:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388635', 'tblTempUsageDetail_20' ) end [2025-02-02 22:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388635', 'tblTempVendorCDR_20' ) start [2025-02-02 22:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388635', 'tblTempVendorCDR_20' ) end [2025-02-02 22:08:20] Production.INFO: ProcessCDR(1,14388635,1,1,2) [2025-02-02 22:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388635', 'tblTempUsageDetail_20' ) start [2025-02-02 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388635', 'tblTempUsageDetail_20' ) end [2025-02-02 22:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:08:23] Production.INFO: ==16024== Releasing lock... [2025-02-02 22:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:08:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-02 22:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:09:04 [end_date_ymd] => 2025-02-02 22:09:04 [RateCDR] => 1 ) [2025-02-02 22:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 19:09:04' and `end` < '2025-02-02 22:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 22:09:17] Production.INFO: count ==1012 [2025-02-02 22:09:17] Production.ERROR: pbx CDR StartTime 2025-02-02 19:09:04 - End Time 2025-02-02 22:09:04 [2025-02-02 22:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388640', 'tblTempUsageDetail_20' ) start [2025-02-02 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388640', 'tblTempUsageDetail_20' ) end [2025-02-02 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388640', 'tblTempVendorCDR_20' ) start [2025-02-02 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388640', 'tblTempVendorCDR_20' ) end [2025-02-02 22:09:17] Production.INFO: ProcessCDR(1,14388640,1,1,2) [2025-02-02 22:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388640', 'tblTempUsageDetail_20' ) start [2025-02-02 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388640', 'tblTempUsageDetail_20' ) end [2025-02-02 22:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:09:22] Production.INFO: ==16104== Releasing lock... [2025-02-02 22:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:09:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-02 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:10:06 [end_date_ymd] => 2025-02-02 22:10:06 [RateCDR] => 1 ) [2025-02-02 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-02 19:10:06' and `end` < '2025-02-02 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-02 22:10:19] Production.INFO: count ==1013 [2025-02-02 22:10:19] Production.ERROR: pbx CDR StartTime 2025-02-02 19:10:06 - End Time 2025-02-02 22:10:06 [2025-02-02 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388646', 'tblTempUsageDetail_20' ) start [2025-02-02 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388646', 'tblTempUsageDetail_20' ) end [2025-02-02 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388646', 'tblTempVendorCDR_20' ) start [2025-02-02 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388646', 'tblTempVendorCDR_20' ) end [2025-02-02 22:10:19] Production.INFO: ProcessCDR(1,14388646,1,1,2) [2025-02-02 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388646', 'tblTempUsageDetail_20' ) start [2025-02-02 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388646', 'tblTempUsageDetail_20' ) end [2025-02-02 22:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:10:23] Production.INFO: ==16193== Releasing lock... [2025-02-02 22:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:10:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-02 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:11:05 [end_date_ymd] => 2025-02-02 22:11:05 [RateCDR] => 1 ) [2025-02-02 22:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 19:11:05' and `end` < '2025-02-02 22:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 22:11:19] Production.INFO: count ==994 [2025-02-02 22:11:19] Production.ERROR: pbx CDR StartTime 2025-02-02 19:11:05 - End Time 2025-02-02 22:11:05 [2025-02-02 22:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388651', 'tblTempUsageDetail_20' ) start [2025-02-02 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388651', 'tblTempUsageDetail_20' ) end [2025-02-02 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388651', 'tblTempVendorCDR_20' ) start [2025-02-02 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388651', 'tblTempVendorCDR_20' ) end [2025-02-02 22:11:19] Production.INFO: ProcessCDR(1,14388651,1,1,2) [2025-02-02 22:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388651', 'tblTempUsageDetail_20' ) start [2025-02-02 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388651', 'tblTempUsageDetail_20' ) end [2025-02-02 22:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:11:23] Production.INFO: ==16281== Releasing lock... [2025-02-02 22:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:11:23] Production.INFO: 35 MB #Memory Used# [2025-02-02 22:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:12:06 [end_date_ymd] => 2025-02-02 22:12:06 [RateCDR] => 1 ) [2025-02-02 22: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-02 19:12:06' and `end` < '2025-02-02 22: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-02 22:12:18] Production.INFO: count ==996 [2025-02-02 22:12:19] Production.ERROR: pbx CDR StartTime 2025-02-02 19:12:06 - End Time 2025-02-02 22:12:06 [2025-02-02 22:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388656', 'tblTempUsageDetail_20' ) start [2025-02-02 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388656', 'tblTempUsageDetail_20' ) end [2025-02-02 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388656', 'tblTempVendorCDR_20' ) start [2025-02-02 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388656', 'tblTempVendorCDR_20' ) end [2025-02-02 22:12:19] Production.INFO: ProcessCDR(1,14388656,1,1,2) [2025-02-02 22:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388656', 'tblTempUsageDetail_20' ) start [2025-02-02 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388656', 'tblTempUsageDetail_20' ) end [2025-02-02 22:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:12:22] Production.INFO: ==16373== Releasing lock... [2025-02-02 22:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:12:22] Production.INFO: 35 MB #Memory Used# [2025-02-02 22:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:13:04 [end_date_ymd] => 2025-02-02 22:13:04 [RateCDR] => 1 ) [2025-02-02 22:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 19:13:04' and `end` < '2025-02-02 22:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 22:13:17] Production.INFO: count ==994 [2025-02-02 22:13:17] Production.ERROR: pbx CDR StartTime 2025-02-02 19:13:04 - End Time 2025-02-02 22:13:04 [2025-02-02 22:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388661', 'tblTempUsageDetail_20' ) start [2025-02-02 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388661', 'tblTempUsageDetail_20' ) end [2025-02-02 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388661', 'tblTempVendorCDR_20' ) start [2025-02-02 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388661', 'tblTempVendorCDR_20' ) end [2025-02-02 22:13:17] Production.INFO: ProcessCDR(1,14388661,1,1,2) [2025-02-02 22:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388661', 'tblTempUsageDetail_20' ) start [2025-02-02 22:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388661', 'tblTempUsageDetail_20' ) end [2025-02-02 22:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:13:20] Production.INFO: ==16456== Releasing lock... [2025-02-02 22:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:13:20] Production.INFO: 35 MB #Memory Used# [2025-02-02 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:14:05 [end_date_ymd] => 2025-02-02 22:14:05 [RateCDR] => 1 ) [2025-02-02 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-02 19:14:05' and `end` < '2025-02-02 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-02 22:14:20] Production.INFO: count ==993 [2025-02-02 22:14:20] Production.ERROR: pbx CDR StartTime 2025-02-02 19:14:05 - End Time 2025-02-02 22:14:05 [2025-02-02 22:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388666', 'tblTempUsageDetail_20' ) start [2025-02-02 22:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388666', 'tblTempUsageDetail_20' ) end [2025-02-02 22:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388666', 'tblTempVendorCDR_20' ) start [2025-02-02 22:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388666', 'tblTempVendorCDR_20' ) end [2025-02-02 22:14:20] Production.INFO: ProcessCDR(1,14388666,1,1,2) [2025-02-02 22:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388666', 'tblTempUsageDetail_20' ) start [2025-02-02 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388666', 'tblTempUsageDetail_20' ) end [2025-02-02 22:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:14:23] Production.INFO: ==16581== Releasing lock... [2025-02-02 22:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:14:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-02 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:15:05 [end_date_ymd] => 2025-02-02 22:15:05 [RateCDR] => 1 ) [2025-02-02 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-02 19:15:05' and `end` < '2025-02-02 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-02 22:15:18] Production.INFO: count ==996 [2025-02-02 22:15:18] Production.ERROR: pbx CDR StartTime 2025-02-02 19:15:05 - End Time 2025-02-02 22:15:05 [2025-02-02 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388671', 'tblTempUsageDetail_20' ) start [2025-02-02 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388671', 'tblTempUsageDetail_20' ) end [2025-02-02 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388671', 'tblTempVendorCDR_20' ) start [2025-02-02 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388671', 'tblTempVendorCDR_20' ) end [2025-02-02 22:15:18] Production.INFO: ProcessCDR(1,14388671,1,1,2) [2025-02-02 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388671', 'tblTempUsageDetail_20' ) start [2025-02-02 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388671', 'tblTempUsageDetail_20' ) end [2025-02-02 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:15:21] Production.INFO: ==16668== Releasing lock... [2025-02-02 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:15:21] Production.INFO: 35 MB #Memory Used# [2025-02-02 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:16:05 [end_date_ymd] => 2025-02-02 22:16:05 [RateCDR] => 1 ) [2025-02-02 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-02 19:16:05' and `end` < '2025-02-02 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-02 22:16:20] Production.INFO: count ==996 [2025-02-02 22:16:20] Production.ERROR: pbx CDR StartTime 2025-02-02 19:16:05 - End Time 2025-02-02 22:16:05 [2025-02-02 22:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388676', 'tblTempUsageDetail_20' ) start [2025-02-02 22:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388676', 'tblTempUsageDetail_20' ) end [2025-02-02 22:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388676', 'tblTempVendorCDR_20' ) start [2025-02-02 22:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388676', 'tblTempVendorCDR_20' ) end [2025-02-02 22:16:20] Production.INFO: ProcessCDR(1,14388676,1,1,2) [2025-02-02 22:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388676', 'tblTempUsageDetail_20' ) start [2025-02-02 22:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388676', 'tblTempUsageDetail_20' ) end [2025-02-02 22:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:16:23] Production.INFO: ==16752== Releasing lock... [2025-02-02 22:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:16:23] Production.INFO: 35 MB #Memory Used# [2025-02-02 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:17:05 [end_date_ymd] => 2025-02-02 22:17:05 [RateCDR] => 1 ) [2025-02-02 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-02 19:17:05' and `end` < '2025-02-02 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-02 22:17:20] Production.INFO: count ==996 [2025-02-02 22:17:20] Production.ERROR: pbx CDR StartTime 2025-02-02 19:17:05 - End Time 2025-02-02 22:17:05 [2025-02-02 22:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388681', 'tblTempUsageDetail_20' ) start [2025-02-02 22:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388681', 'tblTempUsageDetail_20' ) end [2025-02-02 22:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388681', 'tblTempVendorCDR_20' ) start [2025-02-02 22:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388681', 'tblTempVendorCDR_20' ) end [2025-02-02 22:17:20] Production.INFO: ProcessCDR(1,14388681,1,1,2) [2025-02-02 22:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388681', 'tblTempUsageDetail_20' ) start [2025-02-02 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388681', 'tblTempUsageDetail_20' ) end [2025-02-02 22:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:17:23] Production.INFO: ==16845== Releasing lock... [2025-02-02 22:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:17:23] Production.INFO: 35 MB #Memory Used# [2025-02-02 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:18:05 [end_date_ymd] => 2025-02-02 22:18:05 [RateCDR] => 1 ) [2025-02-02 22:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 19:18:05' and `end` < '2025-02-02 22:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 22:18:18] Production.INFO: count ==996 [2025-02-02 22:18:18] Production.ERROR: pbx CDR StartTime 2025-02-02 19:18:05 - End Time 2025-02-02 22:18:05 [2025-02-02 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388686', 'tblTempUsageDetail_20' ) start [2025-02-02 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388686', 'tblTempUsageDetail_20' ) end [2025-02-02 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388686', 'tblTempVendorCDR_20' ) start [2025-02-02 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388686', 'tblTempVendorCDR_20' ) end [2025-02-02 22:18:18] Production.INFO: ProcessCDR(1,14388686,1,1,2) [2025-02-02 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388686', 'tblTempUsageDetail_20' ) start [2025-02-02 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388686', 'tblTempUsageDetail_20' ) end [2025-02-02 22:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:18:21] Production.INFO: ==16930== Releasing lock... [2025-02-02 22:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:18:21] Production.INFO: 35 MB #Memory Used# [2025-02-02 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:19:05 [end_date_ymd] => 2025-02-02 22:19:05 [RateCDR] => 1 ) [2025-02-02 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-02 19:19:05' and `end` < '2025-02-02 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-02 22:19:19] Production.INFO: count ==995 [2025-02-02 22:19:19] Production.ERROR: pbx CDR StartTime 2025-02-02 19:19:05 - End Time 2025-02-02 22:19:05 [2025-02-02 22:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388691', 'tblTempUsageDetail_20' ) start [2025-02-02 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388691', 'tblTempUsageDetail_20' ) end [2025-02-02 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388691', 'tblTempVendorCDR_20' ) start [2025-02-02 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388691', 'tblTempVendorCDR_20' ) end [2025-02-02 22:19:19] Production.INFO: ProcessCDR(1,14388691,1,1,2) [2025-02-02 22:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388691', 'tblTempUsageDetail_20' ) start [2025-02-02 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388691', 'tblTempUsageDetail_20' ) end [2025-02-02 22:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:19:22] Production.INFO: ==17019== Releasing lock... [2025-02-02 22:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:19:22] Production.INFO: 35 MB #Memory Used# [2025-02-02 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:20:06 [end_date_ymd] => 2025-02-02 22:20:06 [RateCDR] => 1 ) [2025-02-02 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-02 19:20:06' and `end` < '2025-02-02 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-02 22:20:18] Production.INFO: count ==997 [2025-02-02 22:20:19] Production.ERROR: pbx CDR StartTime 2025-02-02 19:20:06 - End Time 2025-02-02 22:20:06 [2025-02-02 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388697', 'tblTempUsageDetail_20' ) start [2025-02-02 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388697', 'tblTempUsageDetail_20' ) end [2025-02-02 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388697', 'tblTempVendorCDR_20' ) start [2025-02-02 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388697', 'tblTempVendorCDR_20' ) end [2025-02-02 22:20:19] Production.INFO: ProcessCDR(1,14388697,1,1,2) [2025-02-02 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388697', 'tblTempUsageDetail_20' ) start [2025-02-02 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388697', 'tblTempUsageDetail_20' ) end [2025-02-02 22:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:20:22] Production.INFO: ==17108== Releasing lock... [2025-02-02 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:20:22] Production.INFO: 35 MB #Memory Used# [2025-02-02 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:21:05 [end_date_ymd] => 2025-02-02 22:21:05 [RateCDR] => 1 ) [2025-02-02 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-02 19:21:05' and `end` < '2025-02-02 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-02 22:21:18] Production.INFO: count ==991 [2025-02-02 22:21:18] Production.ERROR: pbx CDR StartTime 2025-02-02 19:21:05 - End Time 2025-02-02 22:21:05 [2025-02-02 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388702', 'tblTempUsageDetail_20' ) start [2025-02-02 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388702', 'tblTempUsageDetail_20' ) end [2025-02-02 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388702', 'tblTempVendorCDR_20' ) start [2025-02-02 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388702', 'tblTempVendorCDR_20' ) end [2025-02-02 22:21:18] Production.INFO: ProcessCDR(1,14388702,1,1,2) [2025-02-02 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388702', 'tblTempUsageDetail_20' ) start [2025-02-02 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388702', 'tblTempUsageDetail_20' ) end [2025-02-02 22:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:21:21] Production.INFO: ==17195== Releasing lock... [2025-02-02 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:21:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-02 22:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:22:06 [end_date_ymd] => 2025-02-02 22:22:06 [RateCDR] => 1 ) [2025-02-02 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-02 19:22:06' and `end` < '2025-02-02 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-02 22:22:19] Production.INFO: count ==992 [2025-02-02 22:22:19] Production.ERROR: pbx CDR StartTime 2025-02-02 19:22:06 - End Time 2025-02-02 22:22:06 [2025-02-02 22:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388707', 'tblTempUsageDetail_20' ) start [2025-02-02 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388707', 'tblTempUsageDetail_20' ) end [2025-02-02 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388707', 'tblTempVendorCDR_20' ) start [2025-02-02 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388707', 'tblTempVendorCDR_20' ) end [2025-02-02 22:22:19] Production.INFO: ProcessCDR(1,14388707,1,1,2) [2025-02-02 22:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388707', 'tblTempUsageDetail_20' ) start [2025-02-02 22:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388707', 'tblTempUsageDetail_20' ) end [2025-02-02 22:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:22:24] Production.INFO: ==17278== Releasing lock... [2025-02-02 22:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:22:24] Production.INFO: 35 MB #Memory Used# [2025-02-02 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:23:05 [end_date_ymd] => 2025-02-02 22:23:05 [RateCDR] => 1 ) [2025-02-02 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-02 19:23:05' and `end` < '2025-02-02 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-02 22:23:18] Production.INFO: count ==989 [2025-02-02 22:23:18] Production.ERROR: pbx CDR StartTime 2025-02-02 19:23:05 - End Time 2025-02-02 22:23:05 [2025-02-02 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388712', 'tblTempUsageDetail_20' ) start [2025-02-02 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388712', 'tblTempUsageDetail_20' ) end [2025-02-02 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388712', 'tblTempVendorCDR_20' ) start [2025-02-02 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388712', 'tblTempVendorCDR_20' ) end [2025-02-02 22:23:18] Production.INFO: ProcessCDR(1,14388712,1,1,2) [2025-02-02 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388712', 'tblTempUsageDetail_20' ) start [2025-02-02 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388712', 'tblTempUsageDetail_20' ) end [2025-02-02 22:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:23:21] Production.INFO: ==17362== Releasing lock... [2025-02-02 22:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:23:21] Production.INFO: 35 MB #Memory Used# [2025-02-02 22:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:24:06 [end_date_ymd] => 2025-02-02 22:24:06 [RateCDR] => 1 ) [2025-02-02 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-02 19:24:06' and `end` < '2025-02-02 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-02 22:24:18] Production.INFO: count ==984 [2025-02-02 22:24:18] Production.ERROR: pbx CDR StartTime 2025-02-02 19:24:06 - End Time 2025-02-02 22:24:06 [2025-02-02 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388717', 'tblTempUsageDetail_20' ) start [2025-02-02 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388717', 'tblTempUsageDetail_20' ) end [2025-02-02 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388717', 'tblTempVendorCDR_20' ) start [2025-02-02 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388717', 'tblTempVendorCDR_20' ) end [2025-02-02 22:24:18] Production.INFO: ProcessCDR(1,14388717,1,1,2) [2025-02-02 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388717', 'tblTempUsageDetail_20' ) start [2025-02-02 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388717', 'tblTempUsageDetail_20' ) end [2025-02-02 22:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:24:22] Production.INFO: ==17454== Releasing lock... [2025-02-02 22:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:24:22] Production.INFO: 35 MB #Memory Used# [2025-02-02 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:25:05 [end_date_ymd] => 2025-02-02 22:25:05 [RateCDR] => 1 ) [2025-02-02 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-02 19:25:05' and `end` < '2025-02-02 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-02 22:25:19] Production.INFO: count ==988 [2025-02-02 22:25:19] Production.ERROR: pbx CDR StartTime 2025-02-02 19:25:05 - End Time 2025-02-02 22:25:05 [2025-02-02 22:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388722', 'tblTempUsageDetail_20' ) start [2025-02-02 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388722', 'tblTempUsageDetail_20' ) end [2025-02-02 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388722', 'tblTempVendorCDR_20' ) start [2025-02-02 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388722', 'tblTempVendorCDR_20' ) end [2025-02-02 22:25:19] Production.INFO: ProcessCDR(1,14388722,1,1,2) [2025-02-02 22:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388722', 'tblTempUsageDetail_20' ) start [2025-02-02 22:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388722', 'tblTempUsageDetail_20' ) end [2025-02-02 22:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:25:23] Production.INFO: ==17536== Releasing lock... [2025-02-02 22:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:25:23] Production.INFO: 35 MB #Memory Used# [2025-02-02 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:26:05 [end_date_ymd] => 2025-02-02 22:26:05 [RateCDR] => 1 ) [2025-02-02 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-02 19:26:05' and `end` < '2025-02-02 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-02 22:26:18] Production.INFO: count ==992 [2025-02-02 22:26:18] Production.ERROR: pbx CDR StartTime 2025-02-02 19:26:05 - End Time 2025-02-02 22:26:05 [2025-02-02 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388727', 'tblTempUsageDetail_20' ) start [2025-02-02 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388727', 'tblTempUsageDetail_20' ) end [2025-02-02 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388727', 'tblTempVendorCDR_20' ) start [2025-02-02 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388727', 'tblTempVendorCDR_20' ) end [2025-02-02 22:26:18] Production.INFO: ProcessCDR(1,14388727,1,1,2) [2025-02-02 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388727', 'tblTempUsageDetail_20' ) start [2025-02-02 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388727', 'tblTempUsageDetail_20' ) end [2025-02-02 22:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:26:22] Production.INFO: ==17621== Releasing lock... [2025-02-02 22:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:26:22] Production.INFO: 35 MB #Memory Used# [2025-02-02 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:27:05 [end_date_ymd] => 2025-02-02 22:27:05 [RateCDR] => 1 ) [2025-02-02 22:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 19:27:05' and `end` < '2025-02-02 22:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 22:27:19] Production.INFO: count ==991 [2025-02-02 22:27:19] Production.ERROR: pbx CDR StartTime 2025-02-02 19:27:05 - End Time 2025-02-02 22:27:05 [2025-02-02 22:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388732', 'tblTempUsageDetail_20' ) start [2025-02-02 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388732', 'tblTempUsageDetail_20' ) end [2025-02-02 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388732', 'tblTempVendorCDR_20' ) start [2025-02-02 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388732', 'tblTempVendorCDR_20' ) end [2025-02-02 22:27:19] Production.INFO: ProcessCDR(1,14388732,1,1,2) [2025-02-02 22:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388732', 'tblTempUsageDetail_20' ) start [2025-02-02 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388732', 'tblTempUsageDetail_20' ) end [2025-02-02 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:27:22] Production.INFO: ==17708== Releasing lock... [2025-02-02 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:27:22] Production.INFO: 35 MB #Memory Used# [2025-02-02 22:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:28:05 [end_date_ymd] => 2025-02-02 22:28:05 [RateCDR] => 1 ) [2025-02-02 22:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 19:28:05' and `end` < '2025-02-02 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-02 22:28:18] Production.INFO: count ==1001 [2025-02-02 22:28:18] Production.ERROR: pbx CDR StartTime 2025-02-02 19:28:05 - End Time 2025-02-02 22:28:05 [2025-02-02 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388737', 'tblTempUsageDetail_20' ) start [2025-02-02 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388737', 'tblTempUsageDetail_20' ) end [2025-02-02 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388737', 'tblTempVendorCDR_20' ) start [2025-02-02 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388737', 'tblTempVendorCDR_20' ) end [2025-02-02 22:28:18] Production.INFO: ProcessCDR(1,14388737,1,1,2) [2025-02-02 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388737', 'tblTempUsageDetail_20' ) start [2025-02-02 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388737', 'tblTempUsageDetail_20' ) end [2025-02-02 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:28:22] Production.INFO: ==17789== Releasing lock... [2025-02-02 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:28:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-02 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:29:05 [end_date_ymd] => 2025-02-02 22:29:05 [RateCDR] => 1 ) [2025-02-02 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-02 19:29:05' and `end` < '2025-02-02 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-02 22:29:18] Production.INFO: count ==1002 [2025-02-02 22:29:18] Production.ERROR: pbx CDR StartTime 2025-02-02 19:29:05 - End Time 2025-02-02 22:29:05 [2025-02-02 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388742', 'tblTempUsageDetail_20' ) start [2025-02-02 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388742', 'tblTempUsageDetail_20' ) end [2025-02-02 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388742', 'tblTempVendorCDR_20' ) start [2025-02-02 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388742', 'tblTempVendorCDR_20' ) end [2025-02-02 22:29:18] Production.INFO: ProcessCDR(1,14388742,1,1,2) [2025-02-02 22:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388742', 'tblTempUsageDetail_20' ) start [2025-02-02 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388742', 'tblTempUsageDetail_20' ) end [2025-02-02 22:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:29:21] Production.INFO: ==17875== Releasing lock... [2025-02-02 22:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:29:21] Production.INFO: 35 MB #Memory Used# [2025-02-02 22:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:30:07 [end_date_ymd] => 2025-02-02 22:30:07 [RateCDR] => 1 ) [2025-02-02 22: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-02 19:30:07' and `end` < '2025-02-02 22: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-02 22:30:19] Production.INFO: count ==999 [2025-02-02 22:30:20] Production.ERROR: pbx CDR StartTime 2025-02-02 19:30:07 - End Time 2025-02-02 22:30:07 [2025-02-02 22:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388748', 'tblTempUsageDetail_20' ) start [2025-02-02 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388748', 'tblTempUsageDetail_20' ) end [2025-02-02 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388748', 'tblTempVendorCDR_20' ) start [2025-02-02 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388748', 'tblTempVendorCDR_20' ) end [2025-02-02 22:30:20] Production.INFO: ProcessCDR(1,14388748,1,1,2) [2025-02-02 22:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388748', 'tblTempUsageDetail_20' ) start [2025-02-02 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388748', 'tblTempUsageDetail_20' ) end [2025-02-02 22:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:30:23] Production.INFO: ==18008== Releasing lock... [2025-02-02 22:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:30:23] Production.INFO: 35 MB #Memory Used# [2025-02-02 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:31:05 [end_date_ymd] => 2025-02-02 22:31:05 [RateCDR] => 1 ) [2025-02-02 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-02 19:31:05' and `end` < '2025-02-02 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-02 22:31:18] Production.INFO: count ==997 [2025-02-02 22:31:18] Production.ERROR: pbx CDR StartTime 2025-02-02 19:31:05 - End Time 2025-02-02 22:31:05 [2025-02-02 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388753', 'tblTempUsageDetail_20' ) start [2025-02-02 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388753', 'tblTempUsageDetail_20' ) end [2025-02-02 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388753', 'tblTempVendorCDR_20' ) start [2025-02-02 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388753', 'tblTempVendorCDR_20' ) end [2025-02-02 22:31:18] Production.INFO: ProcessCDR(1,14388753,1,1,2) [2025-02-02 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388753', 'tblTempUsageDetail_20' ) start [2025-02-02 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388753', 'tblTempUsageDetail_20' ) end [2025-02-02 22:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:31:21] Production.INFO: ==18094== Releasing lock... [2025-02-02 22:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:31:21] Production.INFO: 35 MB #Memory Used# [2025-02-02 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:32:05 [end_date_ymd] => 2025-02-02 22:32:05 [RateCDR] => 1 ) [2025-02-02 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-02 19:32:05' and `end` < '2025-02-02 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-02 22:32:18] Production.INFO: count ==998 [2025-02-02 22:32:18] Production.ERROR: pbx CDR StartTime 2025-02-02 19:32:05 - End Time 2025-02-02 22:32:05 [2025-02-02 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388758', 'tblTempUsageDetail_20' ) start [2025-02-02 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388758', 'tblTempUsageDetail_20' ) end [2025-02-02 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388758', 'tblTempVendorCDR_20' ) start [2025-02-02 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388758', 'tblTempVendorCDR_20' ) end [2025-02-02 22:32:18] Production.INFO: ProcessCDR(1,14388758,1,1,2) [2025-02-02 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388758', 'tblTempUsageDetail_20' ) start [2025-02-02 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388758', 'tblTempUsageDetail_20' ) end [2025-02-02 22:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:32:22] Production.INFO: ==18182== Releasing lock... [2025-02-02 22:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:32:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-02 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:33:05 [end_date_ymd] => 2025-02-02 22:33:05 [RateCDR] => 1 ) [2025-02-02 22:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 19:33:05' and `end` < '2025-02-02 22:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 22:33:21] Production.INFO: count ==998 [2025-02-02 22:33:21] Production.ERROR: pbx CDR StartTime 2025-02-02 19:33:05 - End Time 2025-02-02 22:33:05 [2025-02-02 22:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388763', 'tblTempUsageDetail_20' ) start [2025-02-02 22:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388763', 'tblTempUsageDetail_20' ) end [2025-02-02 22:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388763', 'tblTempVendorCDR_20' ) start [2025-02-02 22:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388763', 'tblTempVendorCDR_20' ) end [2025-02-02 22:33:21] Production.INFO: ProcessCDR(1,14388763,1,1,2) [2025-02-02 22:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388763', 'tblTempUsageDetail_20' ) start [2025-02-02 22:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388763', 'tblTempUsageDetail_20' ) end [2025-02-02 22:33:25] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:33:25] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:33:25] Production.INFO: ==18267== Releasing lock... [2025-02-02 22:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:33:25] Production.INFO: 35.25 MB #Memory Used# [2025-02-02 22:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:34:04 [end_date_ymd] => 2025-02-02 22:34:04 [RateCDR] => 1 ) [2025-02-02 22: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-02 19:34:04' and `end` < '2025-02-02 22: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-02 22:34:17] Production.INFO: count ==1002 [2025-02-02 22:34:17] Production.ERROR: pbx CDR StartTime 2025-02-02 19:34:04 - End Time 2025-02-02 22:34:04 [2025-02-02 22:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388768', 'tblTempUsageDetail_20' ) start [2025-02-02 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388768', 'tblTempUsageDetail_20' ) end [2025-02-02 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388768', 'tblTempVendorCDR_20' ) start [2025-02-02 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388768', 'tblTempVendorCDR_20' ) end [2025-02-02 22:34:17] Production.INFO: ProcessCDR(1,14388768,1,1,2) [2025-02-02 22:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388768', 'tblTempUsageDetail_20' ) start [2025-02-02 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388768', 'tblTempUsageDetail_20' ) end [2025-02-02 22:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:34:22] Production.INFO: ==18354== Releasing lock... [2025-02-02 22:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:34:22] Production.INFO: 35 MB #Memory Used# [2025-02-02 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:35:05 [end_date_ymd] => 2025-02-02 22:35:05 [RateCDR] => 1 ) [2025-02-02 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-02 19:35:05' and `end` < '2025-02-02 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-02 22:35:18] Production.INFO: count ==1003 [2025-02-02 22:35:18] Production.ERROR: pbx CDR StartTime 2025-02-02 19:35:05 - End Time 2025-02-02 22:35:05 [2025-02-02 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388773', 'tblTempUsageDetail_20' ) start [2025-02-02 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388773', 'tblTempUsageDetail_20' ) end [2025-02-02 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388773', 'tblTempVendorCDR_20' ) start [2025-02-02 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388773', 'tblTempVendorCDR_20' ) end [2025-02-02 22:35:18] Production.INFO: ProcessCDR(1,14388773,1,1,2) [2025-02-02 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388773', 'tblTempUsageDetail_20' ) start [2025-02-02 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388773', 'tblTempUsageDetail_20' ) end [2025-02-02 22:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:35:21] Production.INFO: ==18444== Releasing lock... [2025-02-02 22:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:35:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-02 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:36:05 [end_date_ymd] => 2025-02-02 22:36:05 [RateCDR] => 1 ) [2025-02-02 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-02 19:36:05' and `end` < '2025-02-02 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-02 22:36:19] Production.INFO: count ==1003 [2025-02-02 22:36:19] Production.ERROR: pbx CDR StartTime 2025-02-02 19:36:05 - End Time 2025-02-02 22:36:05 [2025-02-02 22:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388778', 'tblTempUsageDetail_20' ) start [2025-02-02 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388778', 'tblTempUsageDetail_20' ) end [2025-02-02 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388778', 'tblTempVendorCDR_20' ) start [2025-02-02 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388778', 'tblTempVendorCDR_20' ) end [2025-02-02 22:36:19] Production.INFO: ProcessCDR(1,14388778,1,1,2) [2025-02-02 22:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388778', 'tblTempUsageDetail_20' ) start [2025-02-02 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388778', 'tblTempUsageDetail_20' ) end [2025-02-02 22:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:36:22] Production.INFO: ==18534== Releasing lock... [2025-02-02 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:36:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-02 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:37:05 [end_date_ymd] => 2025-02-02 22:37:05 [RateCDR] => 1 ) [2025-02-02 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-02 19:37:05' and `end` < '2025-02-02 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-02 22:37:19] Production.INFO: count ==1004 [2025-02-02 22:37:19] Production.ERROR: pbx CDR StartTime 2025-02-02 19:37:05 - End Time 2025-02-02 22:37:05 [2025-02-02 22:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388783', 'tblTempUsageDetail_20' ) start [2025-02-02 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388783', 'tblTempUsageDetail_20' ) end [2025-02-02 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388783', 'tblTempVendorCDR_20' ) start [2025-02-02 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388783', 'tblTempVendorCDR_20' ) end [2025-02-02 22:37:19] Production.INFO: ProcessCDR(1,14388783,1,1,2) [2025-02-02 22:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388783', 'tblTempUsageDetail_20' ) start [2025-02-02 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388783', 'tblTempUsageDetail_20' ) end [2025-02-02 22:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:37:22] Production.INFO: ==18620== Releasing lock... [2025-02-02 22:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:37:22] Production.INFO: 35 MB #Memory Used# [2025-02-02 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:38:05 [end_date_ymd] => 2025-02-02 22:38:05 [RateCDR] => 1 ) [2025-02-02 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-02 19:38:05' and `end` < '2025-02-02 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-02 22:38:18] Production.INFO: count ==1002 [2025-02-02 22:38:18] Production.ERROR: pbx CDR StartTime 2025-02-02 19:38:05 - End Time 2025-02-02 22:38:05 [2025-02-02 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388788', 'tblTempUsageDetail_20' ) start [2025-02-02 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388788', 'tblTempUsageDetail_20' ) end [2025-02-02 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388788', 'tblTempVendorCDR_20' ) start [2025-02-02 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388788', 'tblTempVendorCDR_20' ) end [2025-02-02 22:38:18] Production.INFO: ProcessCDR(1,14388788,1,1,2) [2025-02-02 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388788', 'tblTempUsageDetail_20' ) start [2025-02-02 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388788', 'tblTempUsageDetail_20' ) end [2025-02-02 22:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:38:21] Production.INFO: ==18709== Releasing lock... [2025-02-02 22:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:38:21] Production.INFO: 35 MB #Memory Used# [2025-02-02 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:39:05 [end_date_ymd] => 2025-02-02 22:39:05 [RateCDR] => 1 ) [2025-02-02 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-02 19:39:05' and `end` < '2025-02-02 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-02 22:39:18] Production.INFO: count ==1001 [2025-02-02 22:39:18] Production.ERROR: pbx CDR StartTime 2025-02-02 19:39:05 - End Time 2025-02-02 22:39:05 [2025-02-02 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388793', 'tblTempUsageDetail_20' ) start [2025-02-02 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388793', 'tblTempUsageDetail_20' ) end [2025-02-02 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388793', 'tblTempVendorCDR_20' ) start [2025-02-02 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388793', 'tblTempVendorCDR_20' ) end [2025-02-02 22:39:18] Production.INFO: ProcessCDR(1,14388793,1,1,2) [2025-02-02 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388793', 'tblTempUsageDetail_20' ) start [2025-02-02 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388793', 'tblTempUsageDetail_20' ) end [2025-02-02 22:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:39:21] Production.INFO: ==18795== Releasing lock... [2025-02-02 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:39:21] Production.INFO: 35 MB #Memory Used# [2025-02-02 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:40:06 [end_date_ymd] => 2025-02-02 22:40:06 [RateCDR] => 1 ) [2025-02-02 22:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 19:40:06' and `end` < '2025-02-02 22:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 22:40:20] Production.INFO: count ==1002 [2025-02-02 22:40:20] Production.ERROR: pbx CDR StartTime 2025-02-02 19:40:06 - End Time 2025-02-02 22:40:06 [2025-02-02 22:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388799', 'tblTempUsageDetail_20' ) start [2025-02-02 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388799', 'tblTempUsageDetail_20' ) end [2025-02-02 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388799', 'tblTempVendorCDR_20' ) start [2025-02-02 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388799', 'tblTempVendorCDR_20' ) end [2025-02-02 22:40:20] Production.INFO: ProcessCDR(1,14388799,1,1,2) [2025-02-02 22:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388799', 'tblTempUsageDetail_20' ) start [2025-02-02 22:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388799', 'tblTempUsageDetail_20' ) end [2025-02-02 22:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:40:24] Production.INFO: ==18881== Releasing lock... [2025-02-02 22:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:40:24] Production.INFO: 35 MB #Memory Used# [2025-02-02 22:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:41:04 [end_date_ymd] => 2025-02-02 22:41:04 [RateCDR] => 1 ) [2025-02-02 22:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 19:41:04' and `end` < '2025-02-02 22:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 22:41:18] Production.INFO: count ==962 [2025-02-02 22:41:18] Production.ERROR: pbx CDR StartTime 2025-02-02 19:41:04 - End Time 2025-02-02 22:41:04 [2025-02-02 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388804', 'tblTempUsageDetail_20' ) start [2025-02-02 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388804', 'tblTempUsageDetail_20' ) end [2025-02-02 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388804', 'tblTempVendorCDR_20' ) start [2025-02-02 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388804', 'tblTempVendorCDR_20' ) end [2025-02-02 22:41:18] Production.INFO: ProcessCDR(1,14388804,1,1,2) [2025-02-02 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388804', 'tblTempUsageDetail_20' ) start [2025-02-02 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388804', 'tblTempUsageDetail_20' ) end [2025-02-02 22:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:41:21] Production.INFO: ==18973== Releasing lock... [2025-02-02 22:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:41:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-02 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:42:05 [end_date_ymd] => 2025-02-02 22:42:05 [RateCDR] => 1 ) [2025-02-02 22:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 19:42:05' and `end` < '2025-02-02 22:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 22:42:18] Production.INFO: count ==961 [2025-02-02 22:42:18] Production.ERROR: pbx CDR StartTime 2025-02-02 19:42:05 - End Time 2025-02-02 22:42:05 [2025-02-02 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388809', 'tblTempUsageDetail_20' ) start [2025-02-02 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388809', 'tblTempUsageDetail_20' ) end [2025-02-02 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388809', 'tblTempVendorCDR_20' ) start [2025-02-02 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388809', 'tblTempVendorCDR_20' ) end [2025-02-02 22:42:18] Production.INFO: ProcessCDR(1,14388809,1,1,2) [2025-02-02 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388809', 'tblTempUsageDetail_20' ) start [2025-02-02 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388809', 'tblTempUsageDetail_20' ) end [2025-02-02 22:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:42:21] Production.INFO: ==19055== Releasing lock... [2025-02-02 22:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:42:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-02 22:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:43:06 [end_date_ymd] => 2025-02-02 22:43:06 [RateCDR] => 1 ) [2025-02-02 22: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-02 19:43:06' and `end` < '2025-02-02 22: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-02 22:43:18] Production.INFO: count ==956 [2025-02-02 22:43:18] Production.ERROR: pbx CDR StartTime 2025-02-02 19:43:06 - End Time 2025-02-02 22:43:06 [2025-02-02 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388814', 'tblTempUsageDetail_20' ) start [2025-02-02 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388814', 'tblTempUsageDetail_20' ) end [2025-02-02 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388814', 'tblTempVendorCDR_20' ) start [2025-02-02 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388814', 'tblTempVendorCDR_20' ) end [2025-02-02 22:43:19] Production.INFO: ProcessCDR(1,14388814,1,1,2) [2025-02-02 22:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388814', 'tblTempUsageDetail_20' ) start [2025-02-02 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388814', 'tblTempUsageDetail_20' ) end [2025-02-02 22:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:43:22] Production.INFO: ==19142== Releasing lock... [2025-02-02 22:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:43:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-02 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:44:05 [end_date_ymd] => 2025-02-02 22:44:05 [RateCDR] => 1 ) [2025-02-02 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-02 19:44:05' and `end` < '2025-02-02 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-02 22:44:18] Production.INFO: count ==951 [2025-02-02 22:44:18] Production.ERROR: pbx CDR StartTime 2025-02-02 19:44:05 - End Time 2025-02-02 22:44:05 [2025-02-02 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388819', 'tblTempUsageDetail_20' ) start [2025-02-02 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388819', 'tblTempUsageDetail_20' ) end [2025-02-02 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388819', 'tblTempVendorCDR_20' ) start [2025-02-02 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388819', 'tblTempVendorCDR_20' ) end [2025-02-02 22:44:18] Production.INFO: ProcessCDR(1,14388819,1,1,2) [2025-02-02 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388819', 'tblTempUsageDetail_20' ) start [2025-02-02 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388819', 'tblTempUsageDetail_20' ) end [2025-02-02 22:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:44:22] Production.INFO: ==19231== Releasing lock... [2025-02-02 22:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:44:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-02 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:45:05 [end_date_ymd] => 2025-02-02 22:45:05 [RateCDR] => 1 ) [2025-02-02 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-02 19:45:05' and `end` < '2025-02-02 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-02 22:45:18] Production.INFO: count ==955 [2025-02-02 22:45:18] Production.ERROR: pbx CDR StartTime 2025-02-02 19:45:05 - End Time 2025-02-02 22:45:05 [2025-02-02 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388824', 'tblTempUsageDetail_20' ) start [2025-02-02 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388824', 'tblTempUsageDetail_20' ) end [2025-02-02 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388824', 'tblTempVendorCDR_20' ) start [2025-02-02 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388824', 'tblTempVendorCDR_20' ) end [2025-02-02 22:45:18] Production.INFO: ProcessCDR(1,14388824,1,1,2) [2025-02-02 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388824', 'tblTempUsageDetail_20' ) start [2025-02-02 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388824', 'tblTempUsageDetail_20' ) end [2025-02-02 22:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:45:22] Production.INFO: ==19356== Releasing lock... [2025-02-02 22:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:45:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-02 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:46:05 [end_date_ymd] => 2025-02-02 22:46:05 [RateCDR] => 1 ) [2025-02-02 22:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 19:46:05' and `end` < '2025-02-02 22:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 22:46:18] Production.INFO: count ==954 [2025-02-02 22:46:18] Production.ERROR: pbx CDR StartTime 2025-02-02 19:46:05 - End Time 2025-02-02 22:46:05 [2025-02-02 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388829', 'tblTempUsageDetail_20' ) start [2025-02-02 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388829', 'tblTempUsageDetail_20' ) end [2025-02-02 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388829', 'tblTempVendorCDR_20' ) start [2025-02-02 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388829', 'tblTempVendorCDR_20' ) end [2025-02-02 22:46:18] Production.INFO: ProcessCDR(1,14388829,1,1,2) [2025-02-02 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388829', 'tblTempUsageDetail_20' ) start [2025-02-02 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388829', 'tblTempUsageDetail_20' ) end [2025-02-02 22:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:46:21] Production.INFO: ==19446== Releasing lock... [2025-02-02 22:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:46:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-02 22:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:47:06 [end_date_ymd] => 2025-02-02 22:47:06 [RateCDR] => 1 ) [2025-02-02 22: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-02 19:47:06' and `end` < '2025-02-02 22: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-02 22:47:20] Production.INFO: count ==951 [2025-02-02 22:47:20] Production.ERROR: pbx CDR StartTime 2025-02-02 19:47:06 - End Time 2025-02-02 22:47:06 [2025-02-02 22:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388834', 'tblTempUsageDetail_20' ) start [2025-02-02 22:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388834', 'tblTempUsageDetail_20' ) end [2025-02-02 22:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388834', 'tblTempVendorCDR_20' ) start [2025-02-02 22:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388834', 'tblTempVendorCDR_20' ) end [2025-02-02 22:47:21] Production.INFO: ProcessCDR(1,14388834,1,1,2) [2025-02-02 22:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388834', 'tblTempUsageDetail_20' ) start [2025-02-02 22:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388834', 'tblTempUsageDetail_20' ) end [2025-02-02 22:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:47:24] Production.INFO: ==19531== Releasing lock... [2025-02-02 22:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:47:24] Production.INFO: 34.75 MB #Memory Used# [2025-02-02 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:48:05 [end_date_ymd] => 2025-02-02 22:48:05 [RateCDR] => 1 ) [2025-02-02 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-02 19:48:05' and `end` < '2025-02-02 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-02 22:48:18] Production.INFO: count ==947 [2025-02-02 22:48:18] Production.ERROR: pbx CDR StartTime 2025-02-02 19:48:05 - End Time 2025-02-02 22:48:05 [2025-02-02 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388839', 'tblTempUsageDetail_20' ) start [2025-02-02 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388839', 'tblTempUsageDetail_20' ) end [2025-02-02 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388839', 'tblTempVendorCDR_20' ) start [2025-02-02 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388839', 'tblTempVendorCDR_20' ) end [2025-02-02 22:48:18] Production.INFO: ProcessCDR(1,14388839,1,1,2) [2025-02-02 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388839', 'tblTempUsageDetail_20' ) start [2025-02-02 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388839', 'tblTempUsageDetail_20' ) end [2025-02-02 22:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:48:21] Production.INFO: ==19617== Releasing lock... [2025-02-02 22:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:48:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-02 22:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:49:06 [end_date_ymd] => 2025-02-02 22:49:06 [RateCDR] => 1 ) [2025-02-02 22: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-02 19:49:06' and `end` < '2025-02-02 22: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-02 22:49:19] Production.INFO: count ==941 [2025-02-02 22:49:19] Production.ERROR: pbx CDR StartTime 2025-02-02 19:49:06 - End Time 2025-02-02 22:49:06 [2025-02-02 22:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388844', 'tblTempUsageDetail_20' ) start [2025-02-02 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388844', 'tblTempUsageDetail_20' ) end [2025-02-02 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388844', 'tblTempVendorCDR_20' ) start [2025-02-02 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388844', 'tblTempVendorCDR_20' ) end [2025-02-02 22:49:19] Production.INFO: ProcessCDR(1,14388844,1,1,2) [2025-02-02 22:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388844', 'tblTempUsageDetail_20' ) start [2025-02-02 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388844', 'tblTempUsageDetail_20' ) end [2025-02-02 22:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:49:22] Production.INFO: ==19707== Releasing lock... [2025-02-02 22:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:49:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-02 22:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:50:05 [end_date_ymd] => 2025-02-02 22:50:05 [RateCDR] => 1 ) [2025-02-02 22: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-02 19:50:05' and `end` < '2025-02-02 22: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-02 22:50:18] Production.INFO: count ==925 [2025-02-02 22:50:18] Production.ERROR: pbx CDR StartTime 2025-02-02 19:50:05 - End Time 2025-02-02 22:50:05 [2025-02-02 22:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388850', 'tblTempUsageDetail_20' ) start [2025-02-02 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388850', 'tblTempUsageDetail_20' ) end [2025-02-02 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388850', 'tblTempVendorCDR_20' ) start [2025-02-02 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388850', 'tblTempVendorCDR_20' ) end [2025-02-02 22:50:18] Production.INFO: ProcessCDR(1,14388850,1,1,2) [2025-02-02 22:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388850', 'tblTempUsageDetail_20' ) start [2025-02-02 22:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388850', 'tblTempUsageDetail_20' ) end [2025-02-02 22:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:50:21] Production.INFO: ==19787== Releasing lock... [2025-02-02 22:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:50:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-02 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:51:05 [end_date_ymd] => 2025-02-02 22:51:05 [RateCDR] => 1 ) [2025-02-02 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-02 19:51:05' and `end` < '2025-02-02 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-02 22:51:20] Production.INFO: count ==886 [2025-02-02 22:51:20] Production.ERROR: pbx CDR StartTime 2025-02-02 19:51:05 - End Time 2025-02-02 22:51:05 [2025-02-02 22:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388855', 'tblTempUsageDetail_20' ) start [2025-02-02 22:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388855', 'tblTempUsageDetail_20' ) end [2025-02-02 22:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388855', 'tblTempVendorCDR_20' ) start [2025-02-02 22:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388855', 'tblTempVendorCDR_20' ) end [2025-02-02 22:51:20] Production.INFO: ProcessCDR(1,14388855,1,1,2) [2025-02-02 22:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388855', 'tblTempUsageDetail_20' ) start [2025-02-02 22:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388855', 'tblTempUsageDetail_20' ) end [2025-02-02 22:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:51:23] Production.INFO: ==19878== Releasing lock... [2025-02-02 22:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:51:23] Production.INFO: 34 MB #Memory Used# [2025-02-02 22:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:52:04 [end_date_ymd] => 2025-02-02 22:52:04 [RateCDR] => 1 ) [2025-02-02 22:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 19:52:04' and `end` < '2025-02-02 22:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 22:52:17] Production.INFO: count ==883 [2025-02-02 22:52:17] Production.ERROR: pbx CDR StartTime 2025-02-02 19:52:04 - End Time 2025-02-02 22:52:04 [2025-02-02 22:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388860', 'tblTempUsageDetail_20' ) start [2025-02-02 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388860', 'tblTempUsageDetail_20' ) end [2025-02-02 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388860', 'tblTempVendorCDR_20' ) start [2025-02-02 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388860', 'tblTempVendorCDR_20' ) end [2025-02-02 22:52:17] Production.INFO: ProcessCDR(1,14388860,1,1,2) [2025-02-02 22:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388860', 'tblTempUsageDetail_20' ) start [2025-02-02 22:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388860', 'tblTempUsageDetail_20' ) end [2025-02-02 22:52:20] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:52:20] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:52:20] Production.INFO: ==19967== Releasing lock... [2025-02-02 22:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:52:20] Production.INFO: 34 MB #Memory Used# [2025-02-02 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:53:05 [end_date_ymd] => 2025-02-02 22:53:05 [RateCDR] => 1 ) [2025-02-02 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-02 19:53:05' and `end` < '2025-02-02 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-02 22:53:19] Production.INFO: count ==879 [2025-02-02 22:53:19] Production.ERROR: pbx CDR StartTime 2025-02-02 19:53:05 - End Time 2025-02-02 22:53:05 [2025-02-02 22:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388865', 'tblTempUsageDetail_20' ) start [2025-02-02 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388865', 'tblTempUsageDetail_20' ) end [2025-02-02 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388865', 'tblTempVendorCDR_20' ) start [2025-02-02 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388865', 'tblTempVendorCDR_20' ) end [2025-02-02 22:53:19] Production.INFO: ProcessCDR(1,14388865,1,1,2) [2025-02-02 22:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388865', 'tblTempUsageDetail_20' ) start [2025-02-02 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388865', 'tblTempUsageDetail_20' ) end [2025-02-02 22:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:53:22] Production.INFO: ==20054== Releasing lock... [2025-02-02 22:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:53:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-02 22:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:54:04 [end_date_ymd] => 2025-02-02 22:54:04 [RateCDR] => 1 ) [2025-02-02 22: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-02 19:54:04' and `end` < '2025-02-02 22: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-02 22:54:18] Production.INFO: count ==865 [2025-02-02 22:54:18] Production.ERROR: pbx CDR StartTime 2025-02-02 19:54:04 - End Time 2025-02-02 22:54:04 [2025-02-02 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388870', 'tblTempUsageDetail_20' ) start [2025-02-02 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388870', 'tblTempUsageDetail_20' ) end [2025-02-02 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388870', 'tblTempVendorCDR_20' ) start [2025-02-02 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388870', 'tblTempVendorCDR_20' ) end [2025-02-02 22:54:18] Production.INFO: ProcessCDR(1,14388870,1,1,2) [2025-02-02 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388870', 'tblTempUsageDetail_20' ) start [2025-02-02 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388870', 'tblTempUsageDetail_20' ) end [2025-02-02 22:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:54:22] Production.INFO: ==20140== Releasing lock... [2025-02-02 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:54:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-02 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:55:05 [end_date_ymd] => 2025-02-02 22:55:05 [RateCDR] => 1 ) [2025-02-02 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-02 19:55:05' and `end` < '2025-02-02 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-02 22:55:18] Production.INFO: count ==866 [2025-02-02 22:55:18] Production.ERROR: pbx CDR StartTime 2025-02-02 19:55:05 - End Time 2025-02-02 22:55:05 [2025-02-02 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388875', 'tblTempUsageDetail_20' ) start [2025-02-02 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388875', 'tblTempUsageDetail_20' ) end [2025-02-02 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388875', 'tblTempVendorCDR_20' ) start [2025-02-02 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388875', 'tblTempVendorCDR_20' ) end [2025-02-02 22:55:18] Production.INFO: ProcessCDR(1,14388875,1,1,2) [2025-02-02 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388875', 'tblTempUsageDetail_20' ) start [2025-02-02 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388875', 'tblTempUsageDetail_20' ) end [2025-02-02 22:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:55:21] Production.INFO: ==20225== Releasing lock... [2025-02-02 22:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:55:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-02 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:56:05 [end_date_ymd] => 2025-02-02 22:56:05 [RateCDR] => 1 ) [2025-02-02 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-02 19:56:05' and `end` < '2025-02-02 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-02 22:56:19] Production.INFO: count ==860 [2025-02-02 22:56:19] Production.ERROR: pbx CDR StartTime 2025-02-02 19:56:05 - End Time 2025-02-02 22:56:05 [2025-02-02 22:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388880', 'tblTempUsageDetail_20' ) start [2025-02-02 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388880', 'tblTempUsageDetail_20' ) end [2025-02-02 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388880', 'tblTempVendorCDR_20' ) start [2025-02-02 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388880', 'tblTempVendorCDR_20' ) end [2025-02-02 22:56:19] Production.INFO: ProcessCDR(1,14388880,1,1,2) [2025-02-02 22:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388880', 'tblTempUsageDetail_20' ) start [2025-02-02 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388880', 'tblTempUsageDetail_20' ) end [2025-02-02 22:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:56:22] Production.INFO: ==20310== Releasing lock... [2025-02-02 22:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:56:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-02 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:57:05 [end_date_ymd] => 2025-02-02 22:57:05 [RateCDR] => 1 ) [2025-02-02 22:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 19:57:05' and `end` < '2025-02-02 22:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 22:57:19] Production.INFO: count ==854 [2025-02-02 22:57:19] Production.ERROR: pbx CDR StartTime 2025-02-02 19:57:05 - End Time 2025-02-02 22:57:05 [2025-02-02 22:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388885', 'tblTempUsageDetail_20' ) start [2025-02-02 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388885', 'tblTempUsageDetail_20' ) end [2025-02-02 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388885', 'tblTempVendorCDR_20' ) start [2025-02-02 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388885', 'tblTempVendorCDR_20' ) end [2025-02-02 22:57:19] Production.INFO: ProcessCDR(1,14388885,1,1,2) [2025-02-02 22:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388885', 'tblTempUsageDetail_20' ) start [2025-02-02 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388885', 'tblTempUsageDetail_20' ) end [2025-02-02 22:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:57:22] Production.INFO: ==20395== Releasing lock... [2025-02-02 22:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:57:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-02 22:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:58:06 [end_date_ymd] => 2025-02-02 22:58:06 [RateCDR] => 1 ) [2025-02-02 22: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-02 19:58:06' and `end` < '2025-02-02 22: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-02 22:58:18] Production.INFO: count ==846 [2025-02-02 22:58:18] Production.ERROR: pbx CDR StartTime 2025-02-02 19:58:06 - End Time 2025-02-02 22:58:06 [2025-02-02 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388890', 'tblTempUsageDetail_20' ) start [2025-02-02 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388890', 'tblTempUsageDetail_20' ) end [2025-02-02 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388890', 'tblTempVendorCDR_20' ) start [2025-02-02 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388890', 'tblTempVendorCDR_20' ) end [2025-02-02 22:58:19] Production.INFO: ProcessCDR(1,14388890,1,1,2) [2025-02-02 22:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388890', 'tblTempUsageDetail_20' ) start [2025-02-02 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388890', 'tblTempUsageDetail_20' ) end [2025-02-02 22:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:58:21] Production.INFO: ==20479== Releasing lock... [2025-02-02 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:58:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-02 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 19:59:05 [end_date_ymd] => 2025-02-02 22:59:05 [RateCDR] => 1 ) [2025-02-02 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-02 19:59:05' and `end` < '2025-02-02 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-02 22:59:19] Production.INFO: count ==839 [2025-02-02 22:59:19] Production.ERROR: pbx CDR StartTime 2025-02-02 19:59:05 - End Time 2025-02-02 22:59:05 [2025-02-02 22:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388895', 'tblTempUsageDetail_20' ) start [2025-02-02 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388895', 'tblTempUsageDetail_20' ) end [2025-02-02 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388895', 'tblTempVendorCDR_20' ) start [2025-02-02 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388895', 'tblTempVendorCDR_20' ) end [2025-02-02 22:59:19] Production.INFO: ProcessCDR(1,14388895,1,1,2) [2025-02-02 22:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 22:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388895', 'tblTempUsageDetail_20' ) start [2025-02-02 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388895', 'tblTempUsageDetail_20' ) end [2025-02-02 22:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 22:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 22:59:22] Production.INFO: ==20561== Releasing lock... [2025-02-02 22:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 22:59:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-02 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:00:06 [end_date_ymd] => 2025-02-02 23:00:06 [RateCDR] => 1 ) [2025-02-02 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 20:00:06' and `end` < '2025-02-02 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 23:00:20] Production.INFO: count ==837 [2025-02-02 23:00:20] Production.ERROR: pbx CDR StartTime 2025-02-02 20:00:06 - End Time 2025-02-02 23:00:06 [2025-02-02 23:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388900', 'tblTempUsageDetail_20' ) start [2025-02-02 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388900', 'tblTempUsageDetail_20' ) end [2025-02-02 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388900', 'tblTempVendorCDR_20' ) start [2025-02-02 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388900', 'tblTempVendorCDR_20' ) end [2025-02-02 23:00:20] Production.INFO: ProcessCDR(1,14388900,1,1,2) [2025-02-02 23:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388900', 'tblTempUsageDetail_20' ) start [2025-02-02 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388900', 'tblTempUsageDetail_20' ) end [2025-02-02 23:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:00:23] Production.INFO: ==20653== Releasing lock... [2025-02-02 23:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:00:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-02 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:01:05 [end_date_ymd] => 2025-02-02 23:01:05 [RateCDR] => 1 ) [2025-02-02 23:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 20:01:05' and `end` < '2025-02-02 23:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 23:01:18] Production.INFO: count ==810 [2025-02-02 23:01:18] Production.ERROR: pbx CDR StartTime 2025-02-02 20:01:05 - End Time 2025-02-02 23:01:05 [2025-02-02 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388906', 'tblTempUsageDetail_20' ) start [2025-02-02 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388906', 'tblTempUsageDetail_20' ) end [2025-02-02 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388906', 'tblTempVendorCDR_20' ) start [2025-02-02 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388906', 'tblTempVendorCDR_20' ) end [2025-02-02 23:01:18] Production.INFO: ProcessCDR(1,14388906,1,1,2) [2025-02-02 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388906', 'tblTempUsageDetail_20' ) start [2025-02-02 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388906', 'tblTempUsageDetail_20' ) end [2025-02-02 23:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:01:22] Production.INFO: ==20863== Releasing lock... [2025-02-02 23:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:01:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-02 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:02:05 [end_date_ymd] => 2025-02-02 23:02:05 [RateCDR] => 1 ) [2025-02-02 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-02 20:02:05' and `end` < '2025-02-02 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-02 23:02:18] Production.INFO: count ==802 [2025-02-02 23:02:18] Production.ERROR: pbx CDR StartTime 2025-02-02 20:02:05 - End Time 2025-02-02 23:02:05 [2025-02-02 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388911', 'tblTempUsageDetail_20' ) start [2025-02-02 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388911', 'tblTempUsageDetail_20' ) end [2025-02-02 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388911', 'tblTempVendorCDR_20' ) start [2025-02-02 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388911', 'tblTempVendorCDR_20' ) end [2025-02-02 23:02:18] Production.INFO: ProcessCDR(1,14388911,1,1,2) [2025-02-02 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388911', 'tblTempUsageDetail_20' ) start [2025-02-02 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388911', 'tblTempUsageDetail_20' ) end [2025-02-02 23:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:02:22] Production.INFO: ==20946== Releasing lock... [2025-02-02 23:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:02:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-02 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:03:05 [end_date_ymd] => 2025-02-02 23:03:05 [RateCDR] => 1 ) [2025-02-02 23:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 20:03:05' and `end` < '2025-02-02 23:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 23:03:18] Production.INFO: count ==798 [2025-02-02 23:03:18] Production.ERROR: pbx CDR StartTime 2025-02-02 20:03:05 - End Time 2025-02-02 23:03:05 [2025-02-02 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388916', 'tblTempUsageDetail_20' ) start [2025-02-02 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388916', 'tblTempUsageDetail_20' ) end [2025-02-02 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388916', 'tblTempVendorCDR_20' ) start [2025-02-02 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388916', 'tblTempVendorCDR_20' ) end [2025-02-02 23:03:18] Production.INFO: ProcessCDR(1,14388916,1,1,2) [2025-02-02 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388916', 'tblTempUsageDetail_20' ) start [2025-02-02 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388916', 'tblTempUsageDetail_20' ) end [2025-02-02 23:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:03:21] Production.INFO: ==21024== Releasing lock... [2025-02-02 23:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:03:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-02 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:04:05 [end_date_ymd] => 2025-02-02 23:04:05 [RateCDR] => 1 ) [2025-02-02 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-02 20:04:05' and `end` < '2025-02-02 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-02 23:04:18] Production.INFO: count ==783 [2025-02-02 23:04:18] Production.ERROR: pbx CDR StartTime 2025-02-02 20:04:05 - End Time 2025-02-02 23:04:05 [2025-02-02 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388921', 'tblTempUsageDetail_20' ) start [2025-02-02 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388921', 'tblTempUsageDetail_20' ) end [2025-02-02 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388921', 'tblTempVendorCDR_20' ) start [2025-02-02 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388921', 'tblTempVendorCDR_20' ) end [2025-02-02 23:04:18] Production.INFO: ProcessCDR(1,14388921,1,1,2) [2025-02-02 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388921', 'tblTempUsageDetail_20' ) start [2025-02-02 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388921', 'tblTempUsageDetail_20' ) end [2025-02-02 23:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:04:21] Production.INFO: ==21105== Releasing lock... [2025-02-02 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:04:21] Production.INFO: 33 MB #Memory Used# [2025-02-02 23:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:05:04 [end_date_ymd] => 2025-02-02 23:05:04 [RateCDR] => 1 ) [2025-02-02 23:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 20:05:04' and `end` < '2025-02-02 23:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 23:05:17] Production.INFO: count ==774 [2025-02-02 23:05:17] Production.ERROR: pbx CDR StartTime 2025-02-02 20:05:04 - End Time 2025-02-02 23:05:04 [2025-02-02 23:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388926', 'tblTempUsageDetail_20' ) start [2025-02-02 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388926', 'tblTempUsageDetail_20' ) end [2025-02-02 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388926', 'tblTempVendorCDR_20' ) start [2025-02-02 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388926', 'tblTempVendorCDR_20' ) end [2025-02-02 23:05:17] Production.INFO: ProcessCDR(1,14388926,1,1,2) [2025-02-02 23:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388926', 'tblTempUsageDetail_20' ) start [2025-02-02 23:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388926', 'tblTempUsageDetail_20' ) end [2025-02-02 23:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:05:20] Production.INFO: ==21271== Releasing lock... [2025-02-02 23:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:05:20] Production.INFO: 33 MB #Memory Used# [2025-02-02 23:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:06:04 [end_date_ymd] => 2025-02-02 23:06:04 [RateCDR] => 1 ) [2025-02-02 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-02 20:06:04' and `end` < '2025-02-02 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-02 23:06:17] Production.INFO: count ==769 [2025-02-02 23:06:17] Production.ERROR: pbx CDR StartTime 2025-02-02 20:06:04 - End Time 2025-02-02 23:06:04 [2025-02-02 23:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388931', 'tblTempUsageDetail_20' ) start [2025-02-02 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388931', 'tblTempUsageDetail_20' ) end [2025-02-02 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388931', 'tblTempVendorCDR_20' ) start [2025-02-02 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388931', 'tblTempVendorCDR_20' ) end [2025-02-02 23:06:17] Production.INFO: ProcessCDR(1,14388931,1,1,2) [2025-02-02 23:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388931', 'tblTempUsageDetail_20' ) start [2025-02-02 23:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388931', 'tblTempUsageDetail_20' ) end [2025-02-02 23:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:06:20] Production.INFO: ==21361== Releasing lock... [2025-02-02 23:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:06:20] Production.INFO: 33 MB #Memory Used# [2025-02-02 23:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:07:06 [end_date_ymd] => 2025-02-02 23:07:06 [RateCDR] => 1 ) [2025-02-02 23: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-02 20:07:06' and `end` < '2025-02-02 23: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-02 23:07:18] Production.INFO: count ==762 [2025-02-02 23:07:18] Production.ERROR: pbx CDR StartTime 2025-02-02 20:07:06 - End Time 2025-02-02 23:07:06 [2025-02-02 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388936', 'tblTempUsageDetail_20' ) start [2025-02-02 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388936', 'tblTempUsageDetail_20' ) end [2025-02-02 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388936', 'tblTempVendorCDR_20' ) start [2025-02-02 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388936', 'tblTempVendorCDR_20' ) end [2025-02-02 23:07:19] Production.INFO: ProcessCDR(1,14388936,1,1,2) [2025-02-02 23:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388936', 'tblTempUsageDetail_20' ) start [2025-02-02 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388936', 'tblTempUsageDetail_20' ) end [2025-02-02 23:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:07:22] Production.INFO: ==21442== Releasing lock... [2025-02-02 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:07:22] Production.INFO: 33 MB #Memory Used# [2025-02-02 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:08:05 [end_date_ymd] => 2025-02-02 23:08:05 [RateCDR] => 1 ) [2025-02-02 23:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 20:08:05' and `end` < '2025-02-02 23:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 23:08:19] Production.INFO: count ==757 [2025-02-02 23:08:19] Production.ERROR: pbx CDR StartTime 2025-02-02 20:08:05 - End Time 2025-02-02 23:08:05 [2025-02-02 23:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388941', 'tblTempUsageDetail_20' ) start [2025-02-02 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388941', 'tblTempUsageDetail_20' ) end [2025-02-02 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388941', 'tblTempVendorCDR_20' ) start [2025-02-02 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388941', 'tblTempVendorCDR_20' ) end [2025-02-02 23:08:19] Production.INFO: ProcessCDR(1,14388941,1,1,2) [2025-02-02 23:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388941', 'tblTempUsageDetail_20' ) start [2025-02-02 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388941', 'tblTempUsageDetail_20' ) end [2025-02-02 23:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:08:22] Production.INFO: ==21603== Releasing lock... [2025-02-02 23:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:08:22] Production.INFO: 33 MB #Memory Used# [2025-02-02 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:09:05 [end_date_ymd] => 2025-02-02 23:09:05 [RateCDR] => 1 ) [2025-02-02 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-02 20:09:05' and `end` < '2025-02-02 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-02 23:09:19] Production.INFO: count ==755 [2025-02-02 23:09:19] Production.ERROR: pbx CDR StartTime 2025-02-02 20:09:05 - End Time 2025-02-02 23:09:05 [2025-02-02 23:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388946', 'tblTempUsageDetail_20' ) start [2025-02-02 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388946', 'tblTempUsageDetail_20' ) end [2025-02-02 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388946', 'tblTempVendorCDR_20' ) start [2025-02-02 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388946', 'tblTempVendorCDR_20' ) end [2025-02-02 23:09:19] Production.INFO: ProcessCDR(1,14388946,1,1,2) [2025-02-02 23:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388946', 'tblTempUsageDetail_20' ) start [2025-02-02 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388946', 'tblTempUsageDetail_20' ) end [2025-02-02 23:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:09:22] Production.INFO: ==21678== Releasing lock... [2025-02-02 23:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:09:22] Production.INFO: 33 MB #Memory Used# [2025-02-02 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:10:05 [end_date_ymd] => 2025-02-02 23:10:05 [RateCDR] => 1 ) [2025-02-02 23:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 20:10:05' and `end` < '2025-02-02 23:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 23:10:19] Production.INFO: count ==753 [2025-02-02 23:10:19] Production.ERROR: pbx CDR StartTime 2025-02-02 20:10:05 - End Time 2025-02-02 23:10:05 [2025-02-02 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388952', 'tblTempUsageDetail_20' ) start [2025-02-02 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388952', 'tblTempUsageDetail_20' ) end [2025-02-02 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388952', 'tblTempVendorCDR_20' ) start [2025-02-02 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388952', 'tblTempVendorCDR_20' ) end [2025-02-02 23:10:19] Production.INFO: ProcessCDR(1,14388952,1,1,2) [2025-02-02 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388952', 'tblTempUsageDetail_20' ) start [2025-02-02 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388952', 'tblTempUsageDetail_20' ) end [2025-02-02 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:10:22] Production.INFO: ==21766== Releasing lock... [2025-02-02 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:10:22] Production.INFO: 33 MB #Memory Used# [2025-02-02 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:11:05 [end_date_ymd] => 2025-02-02 23:11:05 [RateCDR] => 1 ) [2025-02-02 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-02 20:11:05' and `end` < '2025-02-02 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-02 23:11:18] Production.INFO: count ==708 [2025-02-02 23:11:18] Production.ERROR: pbx CDR StartTime 2025-02-02 20:11:05 - End Time 2025-02-02 23:11:05 [2025-02-02 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388957', 'tblTempUsageDetail_20' ) start [2025-02-02 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388957', 'tblTempUsageDetail_20' ) end [2025-02-02 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388957', 'tblTempVendorCDR_20' ) start [2025-02-02 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388957', 'tblTempVendorCDR_20' ) end [2025-02-02 23:11:18] Production.INFO: ProcessCDR(1,14388957,1,1,2) [2025-02-02 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388957', 'tblTempUsageDetail_20' ) start [2025-02-02 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388957', 'tblTempUsageDetail_20' ) end [2025-02-02 23:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:11:21] Production.INFO: ==21848== Releasing lock... [2025-02-02 23:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:11:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-02 23:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:12:06 [end_date_ymd] => 2025-02-02 23:12:06 [RateCDR] => 1 ) [2025-02-02 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-02 20:12:06' and `end` < '2025-02-02 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-02 23:12:19] Production.INFO: count ==708 [2025-02-02 23:12:19] Production.ERROR: pbx CDR StartTime 2025-02-02 20:12:06 - End Time 2025-02-02 23:12:06 [2025-02-02 23:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388962', 'tblTempUsageDetail_20' ) start [2025-02-02 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388962', 'tblTempUsageDetail_20' ) end [2025-02-02 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388962', 'tblTempVendorCDR_20' ) start [2025-02-02 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388962', 'tblTempVendorCDR_20' ) end [2025-02-02 23:12:19] Production.INFO: ProcessCDR(1,14388962,1,1,2) [2025-02-02 23:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388962', 'tblTempUsageDetail_20' ) start [2025-02-02 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388962', 'tblTempUsageDetail_20' ) end [2025-02-02 23:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:12:22] Production.INFO: ==22014== Releasing lock... [2025-02-02 23:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:12:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-02 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:13:05 [end_date_ymd] => 2025-02-02 23:13:05 [RateCDR] => 1 ) [2025-02-02 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-02 20:13:05' and `end` < '2025-02-02 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-02 23:13:18] Production.INFO: count ==708 [2025-02-02 23:13:18] Production.ERROR: pbx CDR StartTime 2025-02-02 20:13:05 - End Time 2025-02-02 23:13:05 [2025-02-02 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388967', 'tblTempUsageDetail_20' ) start [2025-02-02 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388967', 'tblTempUsageDetail_20' ) end [2025-02-02 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388967', 'tblTempVendorCDR_20' ) start [2025-02-02 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388967', 'tblTempVendorCDR_20' ) end [2025-02-02 23:13:18] Production.INFO: ProcessCDR(1,14388967,1,1,2) [2025-02-02 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388967', 'tblTempUsageDetail_20' ) start [2025-02-02 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388967', 'tblTempUsageDetail_20' ) end [2025-02-02 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:13:21] Production.INFO: ==22094== Releasing lock... [2025-02-02 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:13:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-02 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:14:05 [end_date_ymd] => 2025-02-02 23:14:05 [RateCDR] => 1 ) [2025-02-02 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-02 20:14:05' and `end` < '2025-02-02 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-02 23:14:18] Production.INFO: count ==798 [2025-02-02 23:14:18] Production.ERROR: pbx CDR StartTime 2025-02-02 20:14:05 - End Time 2025-02-02 23:14:05 [2025-02-02 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388972', 'tblTempUsageDetail_20' ) start [2025-02-02 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388972', 'tblTempUsageDetail_20' ) end [2025-02-02 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388972', 'tblTempVendorCDR_20' ) start [2025-02-02 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388972', 'tblTempVendorCDR_20' ) end [2025-02-02 23:14:18] Production.INFO: ProcessCDR(1,14388972,1,1,2) [2025-02-02 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388972', 'tblTempUsageDetail_20' ) start [2025-02-02 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388972', 'tblTempUsageDetail_20' ) end [2025-02-02 23:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:14:21] Production.INFO: ==22175== Releasing lock... [2025-02-02 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:14:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-02 23:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:15:04 [end_date_ymd] => 2025-02-02 23:15:04 [RateCDR] => 1 ) [2025-02-02 23: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-02 20:15:04' and `end` < '2025-02-02 23: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-02 23:15:17] Production.INFO: count ==798 [2025-02-02 23:15:17] Production.ERROR: pbx CDR StartTime 2025-02-02 20:15:04 - End Time 2025-02-02 23:15:04 [2025-02-02 23:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388977', 'tblTempUsageDetail_20' ) start [2025-02-02 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388977', 'tblTempUsageDetail_20' ) end [2025-02-02 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388977', 'tblTempVendorCDR_20' ) start [2025-02-02 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388977', 'tblTempVendorCDR_20' ) end [2025-02-02 23:15:17] Production.INFO: ProcessCDR(1,14388977,1,1,2) [2025-02-02 23:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388977', 'tblTempUsageDetail_20' ) start [2025-02-02 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388977', 'tblTempUsageDetail_20' ) end [2025-02-02 23:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:15:21] Production.INFO: ==22333== Releasing lock... [2025-02-02 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:15:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-02 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:16:05 [end_date_ymd] => 2025-02-02 23:16:05 [RateCDR] => 1 ) [2025-02-02 23:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 20:16:05' and `end` < '2025-02-02 23:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 23:16:18] Production.INFO: count ==797 [2025-02-02 23:16:18] Production.ERROR: pbx CDR StartTime 2025-02-02 20:16:05 - End Time 2025-02-02 23:16:05 [2025-02-02 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388982', 'tblTempUsageDetail_20' ) start [2025-02-02 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388982', 'tblTempUsageDetail_20' ) end [2025-02-02 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388982', 'tblTempVendorCDR_20' ) start [2025-02-02 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388982', 'tblTempVendorCDR_20' ) end [2025-02-02 23:16:18] Production.INFO: ProcessCDR(1,14388982,1,1,2) [2025-02-02 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388982', 'tblTempUsageDetail_20' ) start [2025-02-02 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388982', 'tblTempUsageDetail_20' ) end [2025-02-02 23:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:16:22] Production.INFO: ==22452== Releasing lock... [2025-02-02 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:16:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-02 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:17:05 [end_date_ymd] => 2025-02-02 23:17:05 [RateCDR] => 1 ) [2025-02-02 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-02 20:17:05' and `end` < '2025-02-02 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-02 23:17:18] Production.INFO: count ==878 [2025-02-02 23:17:18] Production.ERROR: pbx CDR StartTime 2025-02-02 20:17:05 - End Time 2025-02-02 23:17:05 [2025-02-02 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388987', 'tblTempUsageDetail_20' ) start [2025-02-02 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388987', 'tblTempUsageDetail_20' ) end [2025-02-02 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388987', 'tblTempVendorCDR_20' ) start [2025-02-02 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388987', 'tblTempVendorCDR_20' ) end [2025-02-02 23:17:18] Production.INFO: ProcessCDR(1,14388987,1,1,2) [2025-02-02 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388987', 'tblTempUsageDetail_20' ) start [2025-02-02 23:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388987', 'tblTempUsageDetail_20' ) end [2025-02-02 23:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:17:23] Production.INFO: ==22530== Releasing lock... [2025-02-02 23:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:17:23] Production.INFO: 34.5 MB #Memory Used# [2025-02-02 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:18:05 [end_date_ymd] => 2025-02-02 23:18:05 [RateCDR] => 1 ) [2025-02-02 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-02 20:18:05' and `end` < '2025-02-02 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-02 23:18:18] Production.INFO: count ==878 [2025-02-02 23:18:18] Production.ERROR: pbx CDR StartTime 2025-02-02 20:18:05 - End Time 2025-02-02 23:18:05 [2025-02-02 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388992', 'tblTempUsageDetail_20' ) start [2025-02-02 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388992', 'tblTempUsageDetail_20' ) end [2025-02-02 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388992', 'tblTempVendorCDR_20' ) start [2025-02-02 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388992', 'tblTempVendorCDR_20' ) end [2025-02-02 23:18:18] Production.INFO: ProcessCDR(1,14388992,1,1,2) [2025-02-02 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388992', 'tblTempUsageDetail_20' ) start [2025-02-02 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388992', 'tblTempUsageDetail_20' ) end [2025-02-02 23:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:18:22] Production.INFO: ==22610== Releasing lock... [2025-02-02 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:18:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-02 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:19:05 [end_date_ymd] => 2025-02-02 23:19:05 [RateCDR] => 1 ) [2025-02-02 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-02 20:19:05' and `end` < '2025-02-02 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-02 23:19:18] Production.INFO: count ==874 [2025-02-02 23:19:18] Production.ERROR: pbx CDR StartTime 2025-02-02 20:19:05 - End Time 2025-02-02 23:19:05 [2025-02-02 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388997', 'tblTempUsageDetail_20' ) start [2025-02-02 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14388997', 'tblTempUsageDetail_20' ) end [2025-02-02 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388997', 'tblTempVendorCDR_20' ) start [2025-02-02 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14388997', 'tblTempVendorCDR_20' ) end [2025-02-02 23:19:18] Production.INFO: ProcessCDR(1,14388997,1,1,2) [2025-02-02 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14388997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14388997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14388997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14388997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388997', 'tblTempUsageDetail_20' ) start [2025-02-02 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14388997', 'tblTempUsageDetail_20' ) end [2025-02-02 23:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:19:21] Production.INFO: ==22689== Releasing lock... [2025-02-02 23:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:19:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-02 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:20:06 [end_date_ymd] => 2025-02-02 23:20:06 [RateCDR] => 1 ) [2025-02-02 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-02 20:20:06' and `end` < '2025-02-02 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-02 23:20:19] Production.INFO: count ==974 [2025-02-02 23:20:19] Production.ERROR: pbx CDR StartTime 2025-02-02 20:20:06 - End Time 2025-02-02 23:20:06 [2025-02-02 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389003', 'tblTempUsageDetail_20' ) start [2025-02-02 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389003', 'tblTempUsageDetail_20' ) end [2025-02-02 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389003', 'tblTempVendorCDR_20' ) start [2025-02-02 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389003', 'tblTempVendorCDR_20' ) end [2025-02-02 23:20:19] Production.INFO: ProcessCDR(1,14389003,1,1,2) [2025-02-02 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389003', 'tblTempUsageDetail_20' ) start [2025-02-02 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389003', 'tblTempUsageDetail_20' ) end [2025-02-02 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:20:22] Production.INFO: ==22775== Releasing lock... [2025-02-02 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:20:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-02 23:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:21:06 [end_date_ymd] => 2025-02-02 23:21:06 [RateCDR] => 1 ) [2025-02-02 23:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 20:21:06' and `end` < '2025-02-02 23:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 23:21:18] Production.INFO: count ==942 [2025-02-02 23:21:19] Production.ERROR: pbx CDR StartTime 2025-02-02 20:21:06 - End Time 2025-02-02 23:21:06 [2025-02-02 23:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389008', 'tblTempUsageDetail_20' ) start [2025-02-02 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389008', 'tblTempUsageDetail_20' ) end [2025-02-02 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389008', 'tblTempVendorCDR_20' ) start [2025-02-02 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389008', 'tblTempVendorCDR_20' ) end [2025-02-02 23:21:19] Production.INFO: ProcessCDR(1,14389008,1,1,2) [2025-02-02 23:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389008', 'tblTempUsageDetail_20' ) start [2025-02-02 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389008', 'tblTempUsageDetail_20' ) end [2025-02-02 23:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:21:22] Production.INFO: ==22860== Releasing lock... [2025-02-02 23:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:21:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-02 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:22:05 [end_date_ymd] => 2025-02-02 23:22:05 [RateCDR] => 1 ) [2025-02-02 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-02 20:22:05' and `end` < '2025-02-02 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-02 23:22:18] Production.INFO: count ==941 [2025-02-02 23:22:18] Production.ERROR: pbx CDR StartTime 2025-02-02 20:22:05 - End Time 2025-02-02 23:22:05 [2025-02-02 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389013', 'tblTempUsageDetail_20' ) start [2025-02-02 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389013', 'tblTempUsageDetail_20' ) end [2025-02-02 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389013', 'tblTempVendorCDR_20' ) start [2025-02-02 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389013', 'tblTempVendorCDR_20' ) end [2025-02-02 23:22:18] Production.INFO: ProcessCDR(1,14389013,1,1,2) [2025-02-02 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389013', 'tblTempUsageDetail_20' ) start [2025-02-02 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389013', 'tblTempUsageDetail_20' ) end [2025-02-02 23:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:22:21] Production.INFO: ==22940== Releasing lock... [2025-02-02 23:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:22:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-02 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:23:05 [end_date_ymd] => 2025-02-02 23:23:05 [RateCDR] => 1 ) [2025-02-02 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-02 20:23:05' and `end` < '2025-02-02 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-02 23:23:20] Production.INFO: count ==941 [2025-02-02 23:23:20] Production.ERROR: pbx CDR StartTime 2025-02-02 20:23:05 - End Time 2025-02-02 23:23:05 [2025-02-02 23:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389018', 'tblTempUsageDetail_20' ) start [2025-02-02 23:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389018', 'tblTempUsageDetail_20' ) end [2025-02-02 23:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389018', 'tblTempVendorCDR_20' ) start [2025-02-02 23:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389018', 'tblTempVendorCDR_20' ) end [2025-02-02 23:23:20] Production.INFO: ProcessCDR(1,14389018,1,1,2) [2025-02-02 23:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389018', 'tblTempUsageDetail_20' ) start [2025-02-02 23:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389018', 'tblTempUsageDetail_20' ) end [2025-02-02 23:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:23:23] Production.INFO: ==23020== Releasing lock... [2025-02-02 23:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:23:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-02 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:24:05 [end_date_ymd] => 2025-02-02 23:24:05 [RateCDR] => 1 ) [2025-02-02 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-02 20:24:05' and `end` < '2025-02-02 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-02 23:24:17] Production.INFO: count ==938 [2025-02-02 23:24:17] Production.ERROR: pbx CDR StartTime 2025-02-02 20:24:05 - End Time 2025-02-02 23:24:05 [2025-02-02 23:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389023', 'tblTempUsageDetail_20' ) start [2025-02-02 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389023', 'tblTempUsageDetail_20' ) end [2025-02-02 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389023', 'tblTempVendorCDR_20' ) start [2025-02-02 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389023', 'tblTempVendorCDR_20' ) end [2025-02-02 23:24:17] Production.INFO: ProcessCDR(1,14389023,1,1,2) [2025-02-02 23:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389023', 'tblTempUsageDetail_20' ) start [2025-02-02 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389023', 'tblTempUsageDetail_20' ) end [2025-02-02 23:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:24:21] Production.INFO: ==23103== Releasing lock... [2025-02-02 23:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:24:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-02 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:25:05 [end_date_ymd] => 2025-02-02 23:25:05 [RateCDR] => 1 ) [2025-02-02 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-02 20:25:05' and `end` < '2025-02-02 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-02 23:25:18] Production.INFO: count ==938 [2025-02-02 23:25:19] Production.ERROR: pbx CDR StartTime 2025-02-02 20:25:05 - End Time 2025-02-02 23:25:05 [2025-02-02 23:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389028', 'tblTempUsageDetail_20' ) start [2025-02-02 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389028', 'tblTempUsageDetail_20' ) end [2025-02-02 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389028', 'tblTempVendorCDR_20' ) start [2025-02-02 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389028', 'tblTempVendorCDR_20' ) end [2025-02-02 23:25:19] Production.INFO: ProcessCDR(1,14389028,1,1,2) [2025-02-02 23:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389028', 'tblTempUsageDetail_20' ) start [2025-02-02 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389028', 'tblTempUsageDetail_20' ) end [2025-02-02 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:25:22] Production.INFO: ==23183== Releasing lock... [2025-02-02 23:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:25:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-02 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:26:05 [end_date_ymd] => 2025-02-02 23:26:05 [RateCDR] => 1 ) [2025-02-02 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-02 20:26:05' and `end` < '2025-02-02 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-02 23:26:19] Production.INFO: count ==938 [2025-02-02 23:26:19] Production.ERROR: pbx CDR StartTime 2025-02-02 20:26:05 - End Time 2025-02-02 23:26:05 [2025-02-02 23:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389033', 'tblTempUsageDetail_20' ) start [2025-02-02 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389033', 'tblTempUsageDetail_20' ) end [2025-02-02 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389033', 'tblTempVendorCDR_20' ) start [2025-02-02 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389033', 'tblTempVendorCDR_20' ) end [2025-02-02 23:26:19] Production.INFO: ProcessCDR(1,14389033,1,1,2) [2025-02-02 23:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389033', 'tblTempUsageDetail_20' ) start [2025-02-02 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389033', 'tblTempUsageDetail_20' ) end [2025-02-02 23:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:26:22] Production.INFO: ==23261== Releasing lock... [2025-02-02 23:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:26:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-02 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:27:05 [end_date_ymd] => 2025-02-02 23:27:05 [RateCDR] => 1 ) [2025-02-02 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-02 20:27:05' and `end` < '2025-02-02 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-02 23:27:19] Production.INFO: count ==938 [2025-02-02 23:27:19] Production.ERROR: pbx CDR StartTime 2025-02-02 20:27:05 - End Time 2025-02-02 23:27:05 [2025-02-02 23:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389038', 'tblTempUsageDetail_20' ) start [2025-02-02 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389038', 'tblTempUsageDetail_20' ) end [2025-02-02 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389038', 'tblTempVendorCDR_20' ) start [2025-02-02 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389038', 'tblTempVendorCDR_20' ) end [2025-02-02 23:27:19] Production.INFO: ProcessCDR(1,14389038,1,1,2) [2025-02-02 23:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389038', 'tblTempUsageDetail_20' ) start [2025-02-02 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389038', 'tblTempUsageDetail_20' ) end [2025-02-02 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:27:22] Production.INFO: ==23342== Releasing lock... [2025-02-02 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:27:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-02 23:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:28:06 [end_date_ymd] => 2025-02-02 23:28:06 [RateCDR] => 1 ) [2025-02-02 23:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 20:28:06' and `end` < '2025-02-02 23:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 23:28:19] Production.INFO: count ==936 [2025-02-02 23:28:19] Production.ERROR: pbx CDR StartTime 2025-02-02 20:28:06 - End Time 2025-02-02 23:28:06 [2025-02-02 23:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389043', 'tblTempUsageDetail_20' ) start [2025-02-02 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389043', 'tblTempUsageDetail_20' ) end [2025-02-02 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389043', 'tblTempVendorCDR_20' ) start [2025-02-02 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389043', 'tblTempVendorCDR_20' ) end [2025-02-02 23:28:19] Production.INFO: ProcessCDR(1,14389043,1,1,2) [2025-02-02 23:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389043', 'tblTempUsageDetail_20' ) start [2025-02-02 23:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389043', 'tblTempUsageDetail_20' ) end [2025-02-02 23:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:28:23] Production.INFO: ==23419== Releasing lock... [2025-02-02 23:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:28:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-02 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:29:05 [end_date_ymd] => 2025-02-02 23:29:05 [RateCDR] => 1 ) [2025-02-02 23:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 20:29:05' and `end` < '2025-02-02 23:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 23:29:19] Production.INFO: count ==936 [2025-02-02 23:29:19] Production.ERROR: pbx CDR StartTime 2025-02-02 20:29:05 - End Time 2025-02-02 23:29:05 [2025-02-02 23:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389048', 'tblTempUsageDetail_20' ) start [2025-02-02 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389048', 'tblTempUsageDetail_20' ) end [2025-02-02 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389048', 'tblTempVendorCDR_20' ) start [2025-02-02 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389048', 'tblTempVendorCDR_20' ) end [2025-02-02 23:29:19] Production.INFO: ProcessCDR(1,14389048,1,1,2) [2025-02-02 23:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389048', 'tblTempUsageDetail_20' ) start [2025-02-02 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389048', 'tblTempUsageDetail_20' ) end [2025-02-02 23:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:29:22] Production.INFO: ==23496== Releasing lock... [2025-02-02 23:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:29:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-02 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:30:06 [end_date_ymd] => 2025-02-02 23:30:06 [RateCDR] => 1 ) [2025-02-02 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-02 20:30:06' and `end` < '2025-02-02 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-02 23:30:19] Production.INFO: count ==936 [2025-02-02 23:30:19] Production.ERROR: pbx CDR StartTime 2025-02-02 20:30:06 - End Time 2025-02-02 23:30:06 [2025-02-02 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389053', 'tblTempUsageDetail_20' ) start [2025-02-02 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389053', 'tblTempUsageDetail_20' ) end [2025-02-02 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389053', 'tblTempVendorCDR_20' ) start [2025-02-02 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389053', 'tblTempVendorCDR_20' ) end [2025-02-02 23:30:19] Production.INFO: ProcessCDR(1,14389053,1,1,2) [2025-02-02 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389053', 'tblTempUsageDetail_20' ) start [2025-02-02 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389053', 'tblTempUsageDetail_20' ) end [2025-02-02 23:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:30:23] Production.INFO: ==23579== Releasing lock... [2025-02-02 23:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:30:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-02 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:31:05 [end_date_ymd] => 2025-02-02 23:31:05 [RateCDR] => 1 ) [2025-02-02 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-02 20:31:05' and `end` < '2025-02-02 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-02 23:31:18] Production.INFO: count ==911 [2025-02-02 23:31:19] Production.ERROR: pbx CDR StartTime 2025-02-02 20:31:05 - End Time 2025-02-02 23:31:05 [2025-02-02 23:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389059', 'tblTempUsageDetail_20' ) start [2025-02-02 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389059', 'tblTempUsageDetail_20' ) end [2025-02-02 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389059', 'tblTempVendorCDR_20' ) start [2025-02-02 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389059', 'tblTempVendorCDR_20' ) end [2025-02-02 23:31:19] Production.INFO: ProcessCDR(1,14389059,1,1,2) [2025-02-02 23:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389059', 'tblTempUsageDetail_20' ) start [2025-02-02 23:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389059', 'tblTempUsageDetail_20' ) end [2025-02-02 23:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:31:23] Production.INFO: ==23658== Releasing lock... [2025-02-02 23:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:31:23] Production.INFO: 35 MB #Memory Used# [2025-02-02 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:32:05 [end_date_ymd] => 2025-02-02 23:32:05 [RateCDR] => 1 ) [2025-02-02 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-02 20:32:05' and `end` < '2025-02-02 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-02 23:32:18] Production.INFO: count ==910 [2025-02-02 23:32:18] Production.ERROR: pbx CDR StartTime 2025-02-02 20:32:05 - End Time 2025-02-02 23:32:05 [2025-02-02 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389064', 'tblTempUsageDetail_20' ) start [2025-02-02 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389064', 'tblTempUsageDetail_20' ) end [2025-02-02 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389064', 'tblTempVendorCDR_20' ) start [2025-02-02 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389064', 'tblTempVendorCDR_20' ) end [2025-02-02 23:32:18] Production.INFO: ProcessCDR(1,14389064,1,1,2) [2025-02-02 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389064', 'tblTempUsageDetail_20' ) start [2025-02-02 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389064', 'tblTempUsageDetail_20' ) end [2025-02-02 23:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:32:21] Production.INFO: ==23776== Releasing lock... [2025-02-02 23:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:32:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-02 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:33:05 [end_date_ymd] => 2025-02-02 23:33:05 [RateCDR] => 1 ) [2025-02-02 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-02 20:33:05' and `end` < '2025-02-02 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-02 23:33:17] Production.INFO: count ==907 [2025-02-02 23:33:18] Production.ERROR: pbx CDR StartTime 2025-02-02 20:33:05 - End Time 2025-02-02 23:33:05 [2025-02-02 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389069', 'tblTempUsageDetail_20' ) start [2025-02-02 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389069', 'tblTempUsageDetail_20' ) end [2025-02-02 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389069', 'tblTempVendorCDR_20' ) start [2025-02-02 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389069', 'tblTempVendorCDR_20' ) end [2025-02-02 23:33:18] Production.INFO: ProcessCDR(1,14389069,1,1,2) [2025-02-02 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389069', 'tblTempUsageDetail_20' ) start [2025-02-02 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389069', 'tblTempUsageDetail_20' ) end [2025-02-02 23:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:33:22] Production.INFO: ==23852== Releasing lock... [2025-02-02 23:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:33:22] Production.INFO: 35 MB #Memory Used# [2025-02-02 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:34:05 [end_date_ymd] => 2025-02-02 23:34:05 [RateCDR] => 1 ) [2025-02-02 23:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 20:34:05' and `end` < '2025-02-02 23:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 23:34:20] Production.INFO: count ==909 [2025-02-02 23:34:20] Production.ERROR: pbx CDR StartTime 2025-02-02 20:34:05 - End Time 2025-02-02 23:34:05 [2025-02-02 23:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389074', 'tblTempUsageDetail_20' ) start [2025-02-02 23:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389074', 'tblTempUsageDetail_20' ) end [2025-02-02 23:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389074', 'tblTempVendorCDR_20' ) start [2025-02-02 23:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389074', 'tblTempVendorCDR_20' ) end [2025-02-02 23:34:20] Production.INFO: ProcessCDR(1,14389074,1,1,2) [2025-02-02 23:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389074', 'tblTempUsageDetail_20' ) start [2025-02-02 23:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389074', 'tblTempUsageDetail_20' ) end [2025-02-02 23:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:34:24] Production.INFO: ==23935== Releasing lock... [2025-02-02 23:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:34:24] Production.INFO: 34.75 MB #Memory Used# [2025-02-02 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:35:05 [end_date_ymd] => 2025-02-02 23:35:05 [RateCDR] => 1 ) [2025-02-02 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-02 20:35:05' and `end` < '2025-02-02 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-02 23:35:17] Production.INFO: count ==909 [2025-02-02 23:35:18] Production.ERROR: pbx CDR StartTime 2025-02-02 20:35:05 - End Time 2025-02-02 23:35:05 [2025-02-02 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389079', 'tblTempUsageDetail_20' ) start [2025-02-02 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389079', 'tblTempUsageDetail_20' ) end [2025-02-02 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389079', 'tblTempVendorCDR_20' ) start [2025-02-02 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389079', 'tblTempVendorCDR_20' ) end [2025-02-02 23:35:18] Production.INFO: ProcessCDR(1,14389079,1,1,2) [2025-02-02 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389079', 'tblTempUsageDetail_20' ) start [2025-02-02 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389079', 'tblTempUsageDetail_20' ) end [2025-02-02 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:35:21] Production.INFO: ==24011== Releasing lock... [2025-02-02 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:35:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-02 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:36:05 [end_date_ymd] => 2025-02-02 23:36:05 [RateCDR] => 1 ) [2025-02-02 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-02 20:36:05' and `end` < '2025-02-02 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-02 23:36:19] Production.INFO: count ==908 [2025-02-02 23:36:19] Production.ERROR: pbx CDR StartTime 2025-02-02 20:36:05 - End Time 2025-02-02 23:36:05 [2025-02-02 23:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389084', 'tblTempUsageDetail_20' ) start [2025-02-02 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389084', 'tblTempUsageDetail_20' ) end [2025-02-02 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389084', 'tblTempVendorCDR_20' ) start [2025-02-02 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389084', 'tblTempVendorCDR_20' ) end [2025-02-02 23:36:19] Production.INFO: ProcessCDR(1,14389084,1,1,2) [2025-02-02 23:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389084', 'tblTempUsageDetail_20' ) start [2025-02-02 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389084', 'tblTempUsageDetail_20' ) end [2025-02-02 23:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:36:22] Production.INFO: ==24088== Releasing lock... [2025-02-02 23:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:36:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-02 23:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:37:06 [end_date_ymd] => 2025-02-02 23:37:06 [RateCDR] => 1 ) [2025-02-02 23:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 20:37:06' and `end` < '2025-02-02 23:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 23:37:19] Production.INFO: count ==908 [2025-02-02 23:37:19] Production.ERROR: pbx CDR StartTime 2025-02-02 20:37:06 - End Time 2025-02-02 23:37:06 [2025-02-02 23:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389089', 'tblTempUsageDetail_20' ) start [2025-02-02 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389089', 'tblTempUsageDetail_20' ) end [2025-02-02 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389089', 'tblTempVendorCDR_20' ) start [2025-02-02 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389089', 'tblTempVendorCDR_20' ) end [2025-02-02 23:37:19] Production.INFO: ProcessCDR(1,14389089,1,1,2) [2025-02-02 23:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389089', 'tblTempUsageDetail_20' ) start [2025-02-02 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389089', 'tblTempUsageDetail_20' ) end [2025-02-02 23:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:37:22] Production.INFO: ==24166== Releasing lock... [2025-02-02 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:37:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-02 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:38:05 [end_date_ymd] => 2025-02-02 23:38:05 [RateCDR] => 1 ) [2025-02-02 23:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 20:38:05' and `end` < '2025-02-02 23:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 23:38:18] Production.INFO: count ==908 [2025-02-02 23:38:18] Production.ERROR: pbx CDR StartTime 2025-02-02 20:38:05 - End Time 2025-02-02 23:38:05 [2025-02-02 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389094', 'tblTempUsageDetail_20' ) start [2025-02-02 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389094', 'tblTempUsageDetail_20' ) end [2025-02-02 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389094', 'tblTempVendorCDR_20' ) start [2025-02-02 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389094', 'tblTempVendorCDR_20' ) end [2025-02-02 23:38:18] Production.INFO: ProcessCDR(1,14389094,1,1,2) [2025-02-02 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389094', 'tblTempUsageDetail_20' ) start [2025-02-02 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389094', 'tblTempUsageDetail_20' ) end [2025-02-02 23:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:38:21] Production.INFO: ==24244== Releasing lock... [2025-02-02 23:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:38:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-02 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:39:05 [end_date_ymd] => 2025-02-02 23:39:05 [RateCDR] => 1 ) [2025-02-02 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-02 20:39:05' and `end` < '2025-02-02 23:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 23:39:18] Production.INFO: count ==908 [2025-02-02 23:39:18] Production.ERROR: pbx CDR StartTime 2025-02-02 20:39:05 - End Time 2025-02-02 23:39:05 [2025-02-02 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389099', 'tblTempUsageDetail_20' ) start [2025-02-02 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389099', 'tblTempUsageDetail_20' ) end [2025-02-02 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389099', 'tblTempVendorCDR_20' ) start [2025-02-02 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389099', 'tblTempVendorCDR_20' ) end [2025-02-02 23:39:18] Production.INFO: ProcessCDR(1,14389099,1,1,2) [2025-02-02 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389099', 'tblTempUsageDetail_20' ) start [2025-02-02 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389099', 'tblTempUsageDetail_20' ) end [2025-02-02 23:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:39:21] Production.INFO: ==24321== Releasing lock... [2025-02-02 23:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:39:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-02 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:40:06 [end_date_ymd] => 2025-02-02 23:40:06 [RateCDR] => 1 ) [2025-02-02 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-02 20:40:06' and `end` < '2025-02-02 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-02 23:40:19] Production.INFO: count ==908 [2025-02-02 23:40:19] Production.ERROR: pbx CDR StartTime 2025-02-02 20:40:06 - End Time 2025-02-02 23:40:06 [2025-02-02 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389104', 'tblTempUsageDetail_20' ) start [2025-02-02 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389104', 'tblTempUsageDetail_20' ) end [2025-02-02 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389104', 'tblTempVendorCDR_20' ) start [2025-02-02 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389104', 'tblTempVendorCDR_20' ) end [2025-02-02 23:40:19] Production.INFO: ProcessCDR(1,14389104,1,1,2) [2025-02-02 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389104', 'tblTempUsageDetail_20' ) start [2025-02-02 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389104', 'tblTempUsageDetail_20' ) end [2025-02-02 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:40:22] Production.INFO: ==24401== Releasing lock... [2025-02-02 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:40:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-02 23:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:41:04 [end_date_ymd] => 2025-02-02 23:41:04 [RateCDR] => 1 ) [2025-02-02 23: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-02 20:41:04' and `end` < '2025-02-02 23: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-02 23:41:18] Production.INFO: count ==883 [2025-02-02 23:41:18] Production.ERROR: pbx CDR StartTime 2025-02-02 20:41:04 - End Time 2025-02-02 23:41:04 [2025-02-02 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389110', 'tblTempUsageDetail_20' ) start [2025-02-02 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389110', 'tblTempUsageDetail_20' ) end [2025-02-02 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389110', 'tblTempVendorCDR_20' ) start [2025-02-02 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389110', 'tblTempVendorCDR_20' ) end [2025-02-02 23:41:18] Production.INFO: ProcessCDR(1,14389110,1,1,2) [2025-02-02 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389110', 'tblTempUsageDetail_20' ) start [2025-02-02 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389110', 'tblTempUsageDetail_20' ) end [2025-02-02 23:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:41:21] Production.INFO: ==24482== Releasing lock... [2025-02-02 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:41:21] Production.INFO: 35 MB #Memory Used# [2025-02-02 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:42:05 [end_date_ymd] => 2025-02-02 23:42:05 [RateCDR] => 1 ) [2025-02-02 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-02 20:42:05' and `end` < '2025-02-02 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-02 23:42:18] Production.INFO: count ==876 [2025-02-02 23:42:18] Production.ERROR: pbx CDR StartTime 2025-02-02 20:42:05 - End Time 2025-02-02 23:42:05 [2025-02-02 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389115', 'tblTempUsageDetail_20' ) start [2025-02-02 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389115', 'tblTempUsageDetail_20' ) end [2025-02-02 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389115', 'tblTempVendorCDR_20' ) start [2025-02-02 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389115', 'tblTempVendorCDR_20' ) end [2025-02-02 23:42:18] Production.INFO: ProcessCDR(1,14389115,1,1,2) [2025-02-02 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389115', 'tblTempUsageDetail_20' ) start [2025-02-02 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389115', 'tblTempUsageDetail_20' ) end [2025-02-02 23:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:42:21] Production.INFO: ==24559== Releasing lock... [2025-02-02 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:42:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-02 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:43:05 [end_date_ymd] => 2025-02-02 23:43:05 [RateCDR] => 1 ) [2025-02-02 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-02 20:43:05' and `end` < '2025-02-02 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-02 23:43:19] Production.INFO: count ==877 [2025-02-02 23:43:19] Production.ERROR: pbx CDR StartTime 2025-02-02 20:43:05 - End Time 2025-02-02 23:43:05 [2025-02-02 23:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389120', 'tblTempUsageDetail_20' ) start [2025-02-02 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389120', 'tblTempUsageDetail_20' ) end [2025-02-02 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389120', 'tblTempVendorCDR_20' ) start [2025-02-02 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389120', 'tblTempVendorCDR_20' ) end [2025-02-02 23:43:19] Production.INFO: ProcessCDR(1,14389120,1,1,2) [2025-02-02 23:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389120', 'tblTempUsageDetail_20' ) start [2025-02-02 23:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389120', 'tblTempUsageDetail_20' ) end [2025-02-02 23:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:43:23] Production.INFO: ==24638== Releasing lock... [2025-02-02 23:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:43:23] Production.INFO: 34.5 MB #Memory Used# [2025-02-02 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:44:05 [end_date_ymd] => 2025-02-02 23:44:05 [RateCDR] => 1 ) [2025-02-02 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-02 20:44:05' and `end` < '2025-02-02 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-02 23:44:19] Production.INFO: count ==877 [2025-02-02 23:44:20] Production.ERROR: pbx CDR StartTime 2025-02-02 20:44:05 - End Time 2025-02-02 23:44:05 [2025-02-02 23:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389125', 'tblTempUsageDetail_20' ) start [2025-02-02 23:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389125', 'tblTempUsageDetail_20' ) end [2025-02-02 23:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389125', 'tblTempVendorCDR_20' ) start [2025-02-02 23:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389125', 'tblTempVendorCDR_20' ) end [2025-02-02 23:44:20] Production.INFO: ProcessCDR(1,14389125,1,1,2) [2025-02-02 23:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389125', 'tblTempUsageDetail_20' ) start [2025-02-02 23:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389125', 'tblTempUsageDetail_20' ) end [2025-02-02 23:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:44:24] Production.INFO: ==24721== Releasing lock... [2025-02-02 23:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:44:24] Production.INFO: 34.5 MB #Memory Used# [2025-02-02 23:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:45:06 [end_date_ymd] => 2025-02-02 23:45:06 [RateCDR] => 1 ) [2025-02-02 23: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-02 20:45:06' and `end` < '2025-02-02 23: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-02 23:45:18] Production.INFO: count ==877 [2025-02-02 23:45:19] Production.ERROR: pbx CDR StartTime 2025-02-02 20:45:06 - End Time 2025-02-02 23:45:06 [2025-02-02 23:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389130', 'tblTempUsageDetail_20' ) start [2025-02-02 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389130', 'tblTempUsageDetail_20' ) end [2025-02-02 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389130', 'tblTempVendorCDR_20' ) start [2025-02-02 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389130', 'tblTempVendorCDR_20' ) end [2025-02-02 23:45:19] Production.INFO: ProcessCDR(1,14389130,1,1,2) [2025-02-02 23:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389130', 'tblTempUsageDetail_20' ) start [2025-02-02 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389130', 'tblTempUsageDetail_20' ) end [2025-02-02 23:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:45:22] Production.INFO: ==24801== Releasing lock... [2025-02-02 23:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:45:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-02 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:46:05 [end_date_ymd] => 2025-02-02 23:46:05 [RateCDR] => 1 ) [2025-02-02 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-02 20:46:05' and `end` < '2025-02-02 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-02 23:46:18] Production.INFO: count ==921 [2025-02-02 23:46:18] Production.ERROR: pbx CDR StartTime 2025-02-02 20:46:05 - End Time 2025-02-02 23:46:05 [2025-02-02 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389135', 'tblTempUsageDetail_20' ) start [2025-02-02 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389135', 'tblTempUsageDetail_20' ) end [2025-02-02 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389135', 'tblTempVendorCDR_20' ) start [2025-02-02 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389135', 'tblTempVendorCDR_20' ) end [2025-02-02 23:46:18] Production.INFO: ProcessCDR(1,14389135,1,1,2) [2025-02-02 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389135', 'tblTempUsageDetail_20' ) start [2025-02-02 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389135', 'tblTempUsageDetail_20' ) end [2025-02-02 23:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:46:21] Production.INFO: ==24879== Releasing lock... [2025-02-02 23:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:46:21] Production.INFO: 35 MB #Memory Used# [2025-02-02 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:47:05 [end_date_ymd] => 2025-02-02 23:47:05 [RateCDR] => 1 ) [2025-02-02 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-02 20:47:05' and `end` < '2025-02-02 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-02 23:47:18] Production.INFO: count ==946 [2025-02-02 23:47:18] Production.ERROR: pbx CDR StartTime 2025-02-02 20:47:05 - End Time 2025-02-02 23:47:05 [2025-02-02 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389140', 'tblTempUsageDetail_20' ) start [2025-02-02 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389140', 'tblTempUsageDetail_20' ) end [2025-02-02 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389140', 'tblTempVendorCDR_20' ) start [2025-02-02 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389140', 'tblTempVendorCDR_20' ) end [2025-02-02 23:47:18] Production.INFO: ProcessCDR(1,14389140,1,1,2) [2025-02-02 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389140', 'tblTempUsageDetail_20' ) start [2025-02-02 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389140', 'tblTempUsageDetail_20' ) end [2025-02-02 23:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:47:21] Production.INFO: ==24995== Releasing lock... [2025-02-02 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:47:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-02 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:48:05 [end_date_ymd] => 2025-02-02 23:48:05 [RateCDR] => 1 ) [2025-02-02 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-02 20:48:05' and `end` < '2025-02-02 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-02 23:48:18] Production.INFO: count ==961 [2025-02-02 23:48:18] Production.ERROR: pbx CDR StartTime 2025-02-02 20:48:05 - End Time 2025-02-02 23:48:05 [2025-02-02 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389145', 'tblTempUsageDetail_20' ) start [2025-02-02 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389145', 'tblTempUsageDetail_20' ) end [2025-02-02 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389145', 'tblTempVendorCDR_20' ) start [2025-02-02 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389145', 'tblTempVendorCDR_20' ) end [2025-02-02 23:48:18] Production.INFO: ProcessCDR(1,14389145,1,1,2) [2025-02-02 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389145', 'tblTempUsageDetail_20' ) start [2025-02-02 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389145', 'tblTempUsageDetail_20' ) end [2025-02-02 23:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:48:21] Production.INFO: ==25072== Releasing lock... [2025-02-02 23:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:48:21] Production.INFO: 36 MB #Memory Used# [2025-02-02 23:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:49:06 [end_date_ymd] => 2025-02-02 23:49:06 [RateCDR] => 1 ) [2025-02-02 23: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-02 20:49:06' and `end` < '2025-02-02 23: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-02 23:49:18] Production.INFO: count ==960 [2025-02-02 23:49:18] Production.ERROR: pbx CDR StartTime 2025-02-02 20:49:06 - End Time 2025-02-02 23:49:06 [2025-02-02 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389150', 'tblTempUsageDetail_20' ) start [2025-02-02 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389150', 'tblTempUsageDetail_20' ) end [2025-02-02 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389150', 'tblTempVendorCDR_20' ) start [2025-02-02 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389150', 'tblTempVendorCDR_20' ) end [2025-02-02 23:49:19] Production.INFO: ProcessCDR(1,14389150,1,1,2) [2025-02-02 23:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389150', 'tblTempUsageDetail_20' ) start [2025-02-02 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389150', 'tblTempUsageDetail_20' ) end [2025-02-02 23:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:49:22] Production.INFO: ==25160== Releasing lock... [2025-02-02 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:49:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-02 23:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:50:05 [end_date_ymd] => 2025-02-02 23:50:05 [RateCDR] => 1 ) [2025-02-02 23:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 20:50:05' and `end` < '2025-02-02 23:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 23:50:18] Production.INFO: count ==1030 [2025-02-02 23:50:18] Production.ERROR: pbx CDR StartTime 2025-02-02 20:50:05 - End Time 2025-02-02 23:50:05 [2025-02-02 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389156', 'tblTempUsageDetail_20' ) start [2025-02-02 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389156', 'tblTempUsageDetail_20' ) end [2025-02-02 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389156', 'tblTempVendorCDR_20' ) start [2025-02-02 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389156', 'tblTempVendorCDR_20' ) end [2025-02-02 23:50:18] Production.INFO: ProcessCDR(1,14389156,1,1,2) [2025-02-02 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389156', 'tblTempUsageDetail_20' ) start [2025-02-02 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389156', 'tblTempUsageDetail_20' ) end [2025-02-02 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:50:22] Production.INFO: ==25252== Releasing lock... [2025-02-02 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:50:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:51:05 [end_date_ymd] => 2025-02-02 23:51:05 [RateCDR] => 1 ) [2025-02-02 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-02 20:51:05' and `end` < '2025-02-02 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-02 23:51:18] Production.INFO: count ==1001 [2025-02-02 23:51:18] Production.ERROR: pbx CDR StartTime 2025-02-02 20:51:05 - End Time 2025-02-02 23:51:05 [2025-02-02 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389161', 'tblTempUsageDetail_20' ) start [2025-02-02 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389161', 'tblTempUsageDetail_20' ) end [2025-02-02 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389161', 'tblTempVendorCDR_20' ) start [2025-02-02 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389161', 'tblTempVendorCDR_20' ) end [2025-02-02 23:51:18] Production.INFO: ProcessCDR(1,14389161,1,1,2) [2025-02-02 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389161', 'tblTempUsageDetail_20' ) start [2025-02-02 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389161', 'tblTempUsageDetail_20' ) end [2025-02-02 23:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:51:21] Production.INFO: ==25346== Releasing lock... [2025-02-02 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:51:21] Production.INFO: 36 MB #Memory Used# [2025-02-02 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:52:05 [end_date_ymd] => 2025-02-02 23:52:05 [RateCDR] => 1 ) [2025-02-02 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-02 20:52:05' and `end` < '2025-02-02 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-02 23:52:17] Production.INFO: count ==1035 [2025-02-02 23:52:18] Production.ERROR: pbx CDR StartTime 2025-02-02 20:52:05 - End Time 2025-02-02 23:52:05 [2025-02-02 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389166', 'tblTempUsageDetail_20' ) start [2025-02-02 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389166', 'tblTempUsageDetail_20' ) end [2025-02-02 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389166', 'tblTempVendorCDR_20' ) start [2025-02-02 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389166', 'tblTempVendorCDR_20' ) end [2025-02-02 23:52:18] Production.INFO: ProcessCDR(1,14389166,1,1,2) [2025-02-02 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389166', 'tblTempUsageDetail_20' ) start [2025-02-02 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389166', 'tblTempUsageDetail_20' ) end [2025-02-02 23:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:52:21] Production.INFO: ==25432== Releasing lock... [2025-02-02 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:52:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:53:05 [end_date_ymd] => 2025-02-02 23:53:05 [RateCDR] => 1 ) [2025-02-02 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-02 20:53:05' and `end` < '2025-02-02 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-02 23:53:18] Production.INFO: count ==1035 [2025-02-02 23:53:19] Production.ERROR: pbx CDR StartTime 2025-02-02 20:53:05 - End Time 2025-02-02 23:53:05 [2025-02-02 23:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389171', 'tblTempUsageDetail_20' ) start [2025-02-02 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389171', 'tblTempUsageDetail_20' ) end [2025-02-02 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389171', 'tblTempVendorCDR_20' ) start [2025-02-02 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389171', 'tblTempVendorCDR_20' ) end [2025-02-02 23:53:19] Production.INFO: ProcessCDR(1,14389171,1,1,2) [2025-02-02 23:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389171', 'tblTempUsageDetail_20' ) start [2025-02-02 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389171', 'tblTempUsageDetail_20' ) end [2025-02-02 23:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:53:22] Production.INFO: ==25517== Releasing lock... [2025-02-02 23:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:53:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:54:05 [end_date_ymd] => 2025-02-02 23:54:05 [RateCDR] => 1 ) [2025-02-02 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-02 20:54:05' and `end` < '2025-02-02 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-02 23:54:18] Production.INFO: count ==1033 [2025-02-02 23:54:18] Production.ERROR: pbx CDR StartTime 2025-02-02 20:54:05 - End Time 2025-02-02 23:54:05 [2025-02-02 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389176', 'tblTempUsageDetail_20' ) start [2025-02-02 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389176', 'tblTempUsageDetail_20' ) end [2025-02-02 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389176', 'tblTempVendorCDR_20' ) start [2025-02-02 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389176', 'tblTempVendorCDR_20' ) end [2025-02-02 23:54:18] Production.INFO: ProcessCDR(1,14389176,1,1,2) [2025-02-02 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389176', 'tblTempUsageDetail_20' ) start [2025-02-02 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389176', 'tblTempUsageDetail_20' ) end [2025-02-02 23:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:54:21] Production.INFO: ==25607== Releasing lock... [2025-02-02 23:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:54:21] Production.INFO: 37 MB #Memory Used# [2025-02-02 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:55:05 [end_date_ymd] => 2025-02-02 23:55:05 [RateCDR] => 1 ) [2025-02-02 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-02 20:55:05' and `end` < '2025-02-02 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-02 23:55:18] Production.INFO: count ==1033 [2025-02-02 23:55:18] Production.ERROR: pbx CDR StartTime 2025-02-02 20:55:05 - End Time 2025-02-02 23:55:05 [2025-02-02 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389181', 'tblTempUsageDetail_20' ) start [2025-02-02 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389181', 'tblTempUsageDetail_20' ) end [2025-02-02 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389181', 'tblTempVendorCDR_20' ) start [2025-02-02 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389181', 'tblTempVendorCDR_20' ) end [2025-02-02 23:55:18] Production.INFO: ProcessCDR(1,14389181,1,1,2) [2025-02-02 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389181', 'tblTempUsageDetail_20' ) start [2025-02-02 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389181', 'tblTempUsageDetail_20' ) end [2025-02-02 23:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:55:21] Production.INFO: ==25694== Releasing lock... [2025-02-02 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:55:21] Production.INFO: 37 MB #Memory Used# [2025-02-02 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:56:05 [end_date_ymd] => 2025-02-02 23:56:05 [RateCDR] => 1 ) [2025-02-02 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-02 20:56:05' and `end` < '2025-02-02 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-02 23:56:18] Production.INFO: count ==1033 [2025-02-02 23:56:18] Production.ERROR: pbx CDR StartTime 2025-02-02 20:56:05 - End Time 2025-02-02 23:56:05 [2025-02-02 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389186', 'tblTempUsageDetail_20' ) start [2025-02-02 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389186', 'tblTempUsageDetail_20' ) end [2025-02-02 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389186', 'tblTempVendorCDR_20' ) start [2025-02-02 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389186', 'tblTempVendorCDR_20' ) end [2025-02-02 23:56:18] Production.INFO: ProcessCDR(1,14389186,1,1,2) [2025-02-02 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389186', 'tblTempUsageDetail_20' ) start [2025-02-02 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389186', 'tblTempUsageDetail_20' ) end [2025-02-02 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:56:22] Production.INFO: ==25774== Releasing lock... [2025-02-02 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:56:22] Production.INFO: 37 MB #Memory Used# [2025-02-02 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:57:05 [end_date_ymd] => 2025-02-02 23:57:05 [RateCDR] => 1 ) [2025-02-02 23:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 20:57:05' and `end` < '2025-02-02 23:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-02 23:57:17] Production.INFO: count ==1062 [2025-02-02 23:57:18] Production.ERROR: pbx CDR StartTime 2025-02-02 20:57:05 - End Time 2025-02-02 23:57:05 [2025-02-02 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389191', 'tblTempUsageDetail_20' ) start [2025-02-02 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389191', 'tblTempUsageDetail_20' ) end [2025-02-02 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389191', 'tblTempVendorCDR_20' ) start [2025-02-02 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389191', 'tblTempVendorCDR_20' ) end [2025-02-02 23:57:18] Production.INFO: ProcessCDR(1,14389191,1,1,2) [2025-02-02 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389191', 'tblTempUsageDetail_20' ) start [2025-02-02 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389191', 'tblTempUsageDetail_20' ) end [2025-02-02 23:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:57:21] Production.INFO: ==25850== Releasing lock... [2025-02-02 23:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:57:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:58:05 [end_date_ymd] => 2025-02-02 23:58:05 [RateCDR] => 1 ) [2025-02-02 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-02 20:58:05' and `end` < '2025-02-02 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-02 23:58:19] Production.INFO: count ==1062 [2025-02-02 23:58:20] Production.ERROR: pbx CDR StartTime 2025-02-02 20:58:05 - End Time 2025-02-02 23:58:05 [2025-02-02 23:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389196', 'tblTempUsageDetail_20' ) start [2025-02-02 23:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389196', 'tblTempUsageDetail_20' ) end [2025-02-02 23:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389196', 'tblTempVendorCDR_20' ) start [2025-02-02 23:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389196', 'tblTempVendorCDR_20' ) end [2025-02-02 23:58:20] Production.INFO: ProcessCDR(1,14389196,1,1,2) [2025-02-02 23:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389196', 'tblTempUsageDetail_20' ) start [2025-02-02 23:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389196', 'tblTempUsageDetail_20' ) end [2025-02-02 23:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:58:23] Production.INFO: ==25928== Releasing lock... [2025-02-02 23:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:58:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-02 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 20:59:05 [end_date_ymd] => 2025-02-02 23:59:05 [RateCDR] => 1 ) [2025-02-02 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-02 20:59:05' and `end` < '2025-02-02 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-02 23:59:18] Production.INFO: count ==1062 [2025-02-02 23:59:18] Production.ERROR: pbx CDR StartTime 2025-02-02 20:59:05 - End Time 2025-02-02 23:59:05 [2025-02-02 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-02 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389201', 'tblTempUsageDetail_20' ) start [2025-02-02 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389201', 'tblTempUsageDetail_20' ) end [2025-02-02 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389201', 'tblTempVendorCDR_20' ) start [2025-02-02 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389201', 'tblTempVendorCDR_20' ) end [2025-02-02 23:59:18] Production.INFO: ProcessCDR(1,14389201,1,1,2) [2025-02-02 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-02 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-02 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389201', 'tblTempUsageDetail_20' ) start [2025-02-02 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389201', 'tblTempUsageDetail_20' ) end [2025-02-02 23:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-02 23:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-02 23:59:22] Production.INFO: ==26007== Releasing lock... [2025-02-02 23:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-02 23:59:22] Production.INFO: 36.75 MB #Memory Used#